avrora.actions
Class CFGAction
java.lang.Object
avrora.util.help.HelpCategory
avrora.actions.Action
avrora.actions.CFGAction
- All Implemented Interfaces:
- HelpItem
- public class CFGAction
- extends Action
The CFGAction
is an Avrora action that allows a control flow graph to be generated and output
to the terminal or to a file.
Constructor Summary |
CFGAction()
The default constructor of the CFGAction class simply creates an empty instance with the
appropriate name and help string. |
Method Summary |
void |
run(java.lang.String[] args)
The run() method starts the control flow graph utility. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HELP
public static final java.lang.String HELP
- See Also:
- Constant Field Values
COLOR_PROCEDURES
public final Option.Bool COLOR_PROCEDURES
GROUP_PROCEDURES
public final Option.Bool GROUP_PROCEDURES
COLLAPSE_PROCEDURES
public final Option.Bool COLLAPSE_PROCEDURES
OUTPUT
public final Option.Str OUTPUT
FILE
public final Option.Str FILE
pmap
protected ProcedureMap pmap
cfg
protected ControlFlowGraph cfg
program
protected Program program
CFGAction
public CFGAction()
- The default constructor of the
CFGAction
class simply creates an empty instance with the
appropriate name and help string.
run
public void run(java.lang.String[] args)
throws java.lang.Exception
- The
run()
method starts the control flow graph utility. The arguments passed
are the name of the file(s) that contain the program. The program is loaded, its control
flow graph is built, and it is output to the console in one of two textual formats; the
output supported by the dot tool, and a simple colored textual format.
- Specified by:
run
in class Action
- Parameters:
args
- the command line arguments to the control flow graph utility
- Throws:
java.lang.Exception