Class CallGraphSearchUtil
java.lang.Object
com.ibm.wala.ipa.callgraph.util.CallGraphSearchUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic CGNode
Find the main method in a call graphstatic CGNode
findMethod
(CallGraph cg, Descriptor d, Atom name) Find a method in a call graphstatic CGNode
findMethod
(CallGraph cg, String name) Find method with some name in a call graph
-
Method Details
-
findMainMethod
Find the main method in a call graph- Parameters:
cg
- call graph- Returns:
- CGNode for the main method
- Throws:
UnimplementedError
- if no main method is not found
-
findMethod
Find a method in a call graph- Parameters:
cg
- the call graphd
- descriptor for the desired methodname
- name of the desired method- Returns:
- the corresponding CGNode. If multiple CGNodes exist for the descriptor and name, returns one of them arbitrarily
- Throws:
UnimplementedError
- if no matching CGNode is found
-
findMethod
Find method with some name in a call graph- Parameters:
cg
- the call graphname
- desired method name- Returns:
- matching
CGNode
- Throws:
UnimplementedError
- if no matching CGNode is found
-