public class CallGraph extends Object
Constructor and Description |
---|
CallGraph() |
Modifier and Type | Method and Description |
---|---|
void |
addCallerMethod(JMethod callerMethod,
Collection<JMethod> calleeMethods)
Add a caller method and its callee methods to the call graph.
|
void |
buildCallGraph(JProgram program)
Build the call graph of a JProgram.
|
Set<JMethod> |
getAllCallees()
Return all the callee methods in the call graph.
|
Set<JMethod> |
getCallees(Collection<JMethod> callerMethods)
Return all the callees of a set of caller methods.
|
Set<JMethod> |
getCallers(Collection<JMethod> calleeMethods)
Return all the callers of a set of callee methods.
|
Set<JMethod> |
removeCalleeMethod(JMethod calleeMethod)
Remove a callee method and all its caller methods in both
calleeCallersPairs and callerCalleesPairs . |
Set<JMethod> |
removeCallerMethod(JMethod callerMethod)
Remove a caller method and all its callee methods in both
callerCalleesPairs and calleeCallersPairs . |
void |
resetCallGraph() |
void |
updateCallGraphOfMethod(JMethod method,
CallGraph deletedSubCallGraph,
CallGraph addedSubCallGraph)
Update call graph of a JMethod.
|
public void addCallerMethod(JMethod callerMethod, Collection<JMethod> calleeMethods)
public void buildCallGraph(JProgram program)
public Set<JMethod> getCallees(Collection<JMethod> callerMethods)
public Set<JMethod> getCallers(Collection<JMethod> calleeMethods)
public Set<JMethod> removeCalleeMethod(JMethod calleeMethod)
calleeCallersPairs
and callerCalleesPairs
.
Return its caller methods.public Set<JMethod> removeCallerMethod(JMethod callerMethod)
callerCalleesPairs
and calleeCallersPairs
.
Return its callee methods.public void resetCallGraph()
Copyright © 2018. All rights reserved.