N - Nodes in the CFG, typically Unit or BlockM - Method representationpublic interface ObservableICFG<N,M>
CalleeListener and CallerListener. Can be used for demand-driven call graph generation.| Modifier and Type | Method and Description |
|---|---|
void |
addCalleeListener(CalleeListener<N,M> listener)
Registers a listener that will be notified whenever a callee is added
|
void |
addCallerListener(CallerListener<N,M> listener)
Registers a listener that will be notified whenever a caller is added.
|
void |
addEdges(CallGraph.Edge e) |
void |
computeFallback() |
Collection<N> |
getEndPointsOf(M flowReaches) |
int |
getNumberOfEdgesTakenFromPrecomputedGraph() |
Collection<N> |
getStartPointsOf(M callee) |
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 |
isStartPoint(N stmt)
Returns true is this is a method's start statement.
|
void |
resetCallGraph()
Resets the call graph.
|
void addCalleeListener(CalleeListener<N,M> listener)
void addCallerListener(CallerListener<N,M> listener)
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)
int getNumberOfEdgesTakenFromPrecomputedGraph()
void resetCallGraph()
Collection<N> getStartPointsOf(M callee)
Collection<N> getEndPointsOf(M flowReaches)
void computeFallback()
void addEdges(CallGraph.Edge e)
Copyright © 2024. All rights reserved.