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
FieldsModifier and TypeFieldDescriptionprotected final NodeFinal CFG node corresponding to the lambda expression body.protected final ExpressionTreeTree for the lambda expression body. -
Constructor Summary
ConstructorsConstructorDescriptionLambdaResultExpressionNode(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.booleanReturns the final node of the CFG corresponding to the lambda expression body (seegetTree()).getTree()Returns theExpressionTreecorresponding to the body of a lambda expression with an expression body (e.g.inthashCode()toString()Methods inherited from class org.checkerframework.dataflow.cfg.node.Node
getBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setBlock, setInSource, setLValue, toStringDebugMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 theExpressionTreecorresponding 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:
getTreein classNode- Returns:
- the
ExpressionTreecorresponding to the body of a lambda expression with an expression body
-
accept
Description copied from class:NodeAccept method of the visitor pattern. -
toString
-
equals
-
hashCode
public int hashCode() -
getOperands
Description copied from class:Node- Specified by:
getOperandsin classNode- Returns:
- a collection containing all of the operand
Nodes of thisNode
-