|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.analysis.CallGraph
public class CallGraph
A static call graph for the program.
| Nested Class Summary | |
|---|---|
class |
CallGraph.Caller
|
class |
CallGraph.Node
|
| Constructor Summary | |
|---|---|
CallGraph(Program program)
Creates a call graph for the program. |
|
| Method Summary | |
|---|---|
boolean |
callsSelf(Procedure proc)
|
java.util.HashMap |
getCallGraph()
Access the graph directly as a hash map. |
CallGraph.Node |
getRoot()
Access the root node of the graph. |
java.util.List<Procedure> |
getTopologicalCallList()
|
boolean |
isLeaf(Procedure proc)
Determines if the procedure is a leaf of the call graph. |
boolean |
isRecursive(Procedure proc)
|
void |
print(java.io.OutputStream stream)
Prints the graph to a stream in graphviz format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CallGraph(Program program)
program - The program for which to create the call graph.| Method Detail |
|---|
public boolean callsSelf(Procedure proc)
public java.util.HashMap getCallGraph()
public CallGraph.Node getRoot()
public boolean isLeaf(Procedure proc)
proc - A Procedure appearing in the call graph.
public boolean isRecursive(Procedure proc)
public void print(java.io.OutputStream stream)
stream - The stream on which to print the graph.public java.util.List<Procedure> getTopologicalCallList()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||