public interface CfaNode<CfaEdgeT extends CfaEdge,SignatureT extends Signature>
Cfa
parametrized by its edges CfaEdgeT
.
A CFA node corresponds to a program point before the instruction at a specific offset.Modifier and Type | Field and Description |
---|---|
static int |
EXCEPTION_EXIT_NODE_OFFSET |
static int |
RETURN_EXIT_NODE_OFFSET |
Modifier and Type | Method and Description |
---|---|
java.util.List<CfaEdgeT> |
getEnteringEdges()
Returns a list of entering edges.
|
java.util.List<CfaEdgeT> |
getLeavingEdges()
Returns a list of leaving edges.
|
int |
getOffset()
Returns the instruction offset.
|
SignatureT |
getSignature()
Returns the function signature it belongs to.
|
boolean |
isEntryNode()
Checks whether the node is a function entry.
|
default boolean |
isExceptionExitNode()
Returns true if the node is the return location of the function (offset ==
EXCEPTION_EXIT_NODE_OFFSET ). |
boolean |
isExitNode()
Checks whether the node is a function exit.
|
default boolean |
isReturnExitNode()
Returns true if the node is the return location of the function (offset ==
RETURN_EXIT_NODE_OFFSET ). |
default boolean |
isUnknownNode()
Returns true if the location of the node is unknown.
|
static final int RETURN_EXIT_NODE_OFFSET
static final int EXCEPTION_EXIT_NODE_OFFSET
java.util.List<CfaEdgeT> getLeavingEdges()
java.util.List<CfaEdgeT> getEnteringEdges()
boolean isEntryNode()
boolean isExitNode()
SignatureT getSignature()
int getOffset()
default boolean isReturnExitNode()
RETURN_EXIT_NODE_OFFSET
).default boolean isExceptionExitNode()
EXCEPTION_EXIT_NODE_OFFSET
).default boolean isUnknownNode()