Interface NodeResult<Node,Fact>
- Type Parameters:
Node
- type of graph nodesFact
- type of data-flow facts
- All Superinterfaces:
StmtResult<Fact>
- All Known Implementing Classes:
DataflowResult
An interface for querying data-flow results.
-
Method Summary
Modifier and TypeMethodDescriptiongetOutFact
(Node node) default Fact
NodeResult
is designed to be compatible with CFGs of both stmt nodes and block nodes.default boolean
isRelevant
(Stmt stmt) Typically, allstmt
s are relevant inNodeResult
.
-
Method Details
-
getInFact
- Returns:
- the flowing-in fact of given node.
-
getOutFact
- Returns:
- the flowing-out fact of given node.
-
isRelevant
Typically, allstmt
s are relevant inNodeResult
.- Specified by:
isRelevant
in interfaceStmtResult<Node>
- Returns:
true
.
-
getResult
NodeResult
is designed to be compatible with CFGs of both stmt nodes and block nodes. When the node result instance represent results of stmt nodes, it can be used as aStmtResult
.- Specified by:
getResult
in interfaceStmtResult<Node>
- Returns:
- out fact as the analysis result for given stmt.
-