Interface CallGraph<CallSite,Method>
- Type Parameters:
CallSite
- type of call sitesMethod
- type of methods
- All Superinterfaces:
Graph<Method>
,Iterable<Method>
,Serializable
,StmtResult<Set<Method>>
- All Known Implementing Classes:
AbstractCallGraph
,CSCallGraph
,DefaultCallGraph
Representation of call graph.
-
Method Summary
Modifier and TypeMethodDescriptioncallSitesIn
(Method method) boolean
edges()
edgesOutOf
(CallSite callSite) getCalleesOf
(CallSite callSite) getCalleesOfM
(Method caller) getCallersOf
(Method callee) getCallSitesIn
(Method method) getContainerOf
(CallSite callSite) int
int
Methods inherited from interface pascal.taie.util.graph.Graph
getInDegreeOf, getInEdgesOf, getNodes, getNumberOfNodes, getOutDegreeOf, getOutEdgesOf, getPredsOf, getSuccsOf, hasEdge, hasEdge, hasNode, iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface pascal.taie.analysis.StmtResult
getResult, isRelevant
-
Method Details
-
getCallersOf
- Returns:
- the call sites that invoke the given method.
-
getCalleesOf
- Returns:
- the methods that are called by the given call site.
-
getCalleesOfM
- Returns:
- the methods that are called by all call sites in the given method.
-
getContainerOf
- Returns:
- the method that contains the given call site.
-
getCallSitesIn
- Returns:
- the call sites within the given method.
-
callSitesIn
- Returns:
- the call sites within the given method.
-
edgesOutOf
- Returns:
- the call edges out of the given call site.
-
edgesInTo
- Returns:
- the call edges targeting to the given method.
-
edges
- Returns:
- all call edges in this call graph.
-
getNumberOfEdges
int getNumberOfEdges()- Returns:
- the number of call graph edges in this call graph.
-
entryMethods
- Returns:
- the entry methods of this call graph.
-
reachableMethods
- Returns:
- all reachable methods in this call graph.
-
getNumberOfMethods
int getNumberOfMethods()- Returns:
- the number of reachable methods in this call graph.
-
contains
- Returns:
- true if this call graph contains the given method, otherwise false.
-