N
- Nodes in the CFG, typically Unit
or Block
M
- Method representationpublic interface InterproceduralCFG<N,M>
Modifier and Type | Method and Description |
---|---|
java.util.Set<N> |
allNonCallStartNodes()
Returns the set of all nodes that are neither call nor start nodes.
|
java.util.Collection<M> |
getCalleesOfCallAt(N n)
Returns all callee methods for a given call.
|
java.util.Collection<N> |
getCallersOf(M m)
Returns all caller statements/nodes of a given method.
|
java.util.Set<N> |
getCallsFromWithin(M m)
Returns all call sites within a given method.
|
M |
getMethodOf(N n)
Returns the method containing a node.
|
java.util.List<N> |
getPredsOf(N u) |
java.util.Collection<N> |
getReturnSitesOfCallAt(N n)
Returns all statements to which a call could return.
|
java.util.Collection<N> |
getStartPointsOf(M m)
Returns all start points of a given method.
|
java.util.List<N> |
getSuccsOf(N n)
Returns the successor nodes.
|
boolean |
isBranchTarget(N stmt,
N succ)
Returns whether succ is a branch target of stmt.
|
boolean |
isCallStmt(N stmt)
Returns
true if the given statement is a call site. |
boolean |
isExitStmt(N stmt)
Returns
true if the given statement leads to a method return
(exceptional or not). |
boolean |
isFallThroughSuccessor(N stmt,
N succ)
Returns whether succ is the fall-through successor of stmt,
i.e., the unique successor that is be reached when stmt
does not branch.
|
boolean |
isStartPoint(N stmt)
Returns true is this is a method's start statement.
|
M getMethodOf(N n)
n
- The node for which to get the parent methodjava.util.Collection<M> getCalleesOfCallAt(N n)
java.util.Collection<N> getCallersOf(M m)
java.util.Set<N> getCallsFromWithin(M m)
java.util.Collection<N> getStartPointsOf(M m)
java.util.Collection<N> getReturnSitesOfCallAt(N n)
boolean isCallStmt(N stmt)
true
if the given statement is a call site.boolean isExitStmt(N stmt)
true
if the given statement leads to a method return
(exceptional or not). For backward analyses may also be start statements.boolean isStartPoint(N stmt)
java.util.Set<N> allNonCallStartNodes()
boolean isFallThroughSuccessor(N stmt, N succ)