public class LambdaResultExpressionNode extends Node
Modifier and Type | Field and Description |
---|---|
protected Node |
result
Final CFG node corresponding to the lambda expression body.
|
protected ExpressionTree |
tree
Tree for the lambda expression body.
|
Constructor and Description |
---|
LambdaResultExpressionNode(ExpressionTree t,
Node result)
Creates a LambdaResultExpressionNode.
|
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(NodeVisitor<R,P> visitor,
P p)
Accept method of the visitor pattern.
|
boolean |
equals(@Nullable Object obj) |
Collection<Node> |
getOperands()
|
Node |
getResult()
Returns the final node of the CFG corresponding to the lambda expression body (see
getTree() ). |
ExpressionTree |
getTree()
Returns the
ExpressionTree corresponding to the body of a lambda expression with an
expression body (e.g. |
int |
hashCode() |
String |
toString() |
getBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setBlock, setInSource, setLValue, toStringDebug
protected final ExpressionTree tree
protected final Node result
public LambdaResultExpressionNode(ExpressionTree t, Node result)
t
- tree for the lambda expression bodyresult
- final CFG node corresponding to the lambda expression bodypublic Node getResult()
getTree()
).public ExpressionTree getTree()
ExpressionTree
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).getTree
in class Node
ExpressionTree
corresponding to the body of a lambda expression with an
expression bodypublic <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Node
public Collection<Node> getOperands()
Node
getOperands
in class Node
Node
s of this Node