Class LambdaResultExpressionNode
java.lang.Object
org.checkerframework.dataflow.cfg.node.Node
org.checkerframework.dataflow.cfg.node.LambdaResultExpressionNode
- All Implemented Interfaces:
org.plumelib.util.UniqueId
A node for the single expression body of a single-expression lambda.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Node
Final CFG node corresponding to the lambda expression body.protected final ExpressionTree
Tree for the lambda expression body. -
Constructor Summary
ConstructorDescriptionLambdaResultExpressionNode
(ExpressionTree t, Node result) Creates a LambdaResultExpressionNode. -
Method Summary
Modifier and TypeMethodDescription<R,
P> R accept
(NodeVisitor<R, P> visitor, P p) Accept method of the visitor pattern.boolean
Returns the final node of the CFG corresponding to the lambda expression body (seegetTree()
).getTree()
Returns theExpressionTree
corresponding to the body of a lambda expression with an expression body (e.g.int
hashCode()
toString()
Methods inherited from class org.checkerframework.dataflow.cfg.node.Node
getBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setBlock, setInSource, setLValue, toStringDebug
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.plumelib.util.UniqueId
getClassAndUid
-
Field Details
-
tree
Tree for the lambda expression body. -
result
Final CFG node corresponding to the lambda expression body.
-
-
Constructor Details
-
LambdaResultExpressionNode
Creates a LambdaResultExpressionNode.- Parameters:
t
- tree for the lambda expression bodyresult
- final CFG node corresponding to the lambda expression body
-
-
Method Details
-
getResult
Returns the final node of the CFG corresponding to the lambda expression body (seegetTree()
).- Returns:
- the final node of the CFG corresponding to the lambda expression body
-
getTree
Returns theExpressionTree
corresponding to the body of a lambda expression with an expression body (e.g. X for (o -> X
) where X is an expression and not a {...} block).- Specified by:
getTree
in classNode
- Returns:
- the
ExpressionTree
corresponding to the body of a lambda expression with an expression body
-
accept
Description copied from class:Node
Accept method of the visitor pattern. -
toString
-
equals
-
hashCode
public int hashCode() -
getOperands
Description copied from class:Node
- Specified by:
getOperands
in classNode
- Returns:
- a collection containing all of the operand
Node
s of thisNode
-