public final class CallGraph.Callsite
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Node |
astNode |
private CallGraph.Function |
containingFunction |
private boolean |
hasExternTarget |
private boolean |
hasUnknownTarget |
private java.util.Collection<CallGraph.Function> |
possibleTargets |
Modifier | Constructor and Description |
---|---|
private |
Callsite(Node callsiteAstNode) |
Modifier and Type | Method and Description |
---|---|
private void |
addPossibleTarget(CallGraph.Function target) |
Node |
getAstNode() |
CallGraph.Function |
getContainingFunction() |
java.util.Collection<CallGraph.Function> |
getPossibleTargets()
Returns the possible target functions that this callsite could call.
|
boolean |
hasExternTarget()
If true, then this callsite could target a function defined in the
externs.
|
boolean |
hasUnknownTarget()
If true, then DefinitionProvider used in callgraph construction
was unable find all target functions of this callsite.
|
private final Node astNode
private boolean hasUnknownTarget
private boolean hasExternTarget
private CallGraph.Function containingFunction
private java.util.Collection<CallGraph.Function> possibleTargets
private Callsite(Node callsiteAstNode)
public Node getAstNode()
public CallGraph.Function getContainingFunction()
public java.util.Collection<CallGraph.Function> getPossibleTargets()
computeForwardGraph
false
.private void addPossibleTarget(CallGraph.Function target)
public boolean hasUnknownTarget()
public boolean hasExternTarget()