|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttom.library.bytecode.CFGViewer
public class CFGViewer
A dot control flow graph exporter. This class generates a control flow graph for each method of a class.
| Nested Class Summary | |
|---|---|
static class |
CFGViewer.AllCfg
|
static class |
CFGViewer.Assign
Assign the current instruction node to the given InsWrapper. |
static class |
CFGViewer.BuildLabelMap
|
static class |
CFGViewer.IsMarked
|
static class |
CFGViewer.Mark
|
static class |
CFGViewer.OneCfg
|
static class |
CFGViewer.PrintDotLink
Prints a link from the `parent' instruction to the current node instruction. |
static class |
CFGViewer.PrintDotNode
Prints the current instruction node with a suitable label. |
static class |
CFGViewer.UnMark
|
| Constructor Summary | |
|---|---|
CFGViewer()
|
|
| Method Summary | |
|---|---|
static void |
classToDot(ClassNode ast)
Generates a control flow graph for each method of the given class. |
static void |
main(String[] args)
Generates the dot control flow graphs for each method of the specified class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CFGViewer()
| Method Detail |
|---|
public static void classToDot(ClassNode ast)
throws VisitFailure
ast - the gom-term subject representing the class.
VisitFailurepublic static void main(String[] args)
args - args[0] : the class name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||