|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uka.ipd.sdq.ByCounter.parsing.CallGraph
public final class CallGraph
The static call graph where the nodes are methods. Two methods m1, m2 are connected if m1 contains instructions to call m2.
Constructor Summary | |
---|---|
CallGraph()
Creates a CallGraph with only a root node. |
Method Summary | |
---|---|
void |
addMethodCall(CallGraphMethod m1,
CallGraphMethod m2)
Adds a link from method m1 to method m2. |
void |
addParsedClass(java.lang.String parsedClass)
Add a class to the set of parsed classes. |
CallGraphMethod |
findMethod(MethodDescriptor method)
Find the specified method in the graph. |
java.util.HashSet<java.lang.String> |
getParsedClasses()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallGraph()
CallGraph
with only a root node.
Method Detail |
---|
public void addMethodCall(CallGraphMethod m1, CallGraphMethod m2)
m1
- Caller method.m2
- Callee method.public void addParsedClass(java.lang.String parsedClass)
parsedClass
- The canonical name of a class that has been parsed
into the call tree.getParsedClasses()
public java.util.HashSet<java.lang.String> getParsedClasses()
addParsedClass(String)
public CallGraphMethod findMethod(MethodDescriptor method)
method
- A MethodDescriptor
for the method to search.
CallGraphMethod
node in the graph if method was found.
Null otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |