public class LambdaResultExpressionNode extends Node
Modifier and Type | Field and Description |
---|---|
protected @Nullable Node |
result |
protected ExpressionTree |
tree |
Constructor and Description |
---|
LambdaResultExpressionNode(ExpressionTree t,
@Nullable Node result,
Types types) |
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(NodeVisitor<R,P> visitor,
P p)
Accept method of the visitor pattern.
|
boolean |
equals(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() |
getAssignmentContext, getBlock, getInSource, getTransitiveOperands, getType, isLValue, setAssignmentContext, setBlock, setInSource, setLValue
protected final ExpressionTree tree
public LambdaResultExpressionNode(ExpressionTree t, @Nullable Node result, Types types)
public 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).public <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Node
public Collection<Node> getOperands()
getOperands
in class Node
Node
s of this Node
.