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 SummaryFieldsModifier and TypeFieldDescriptionprotected final NodeFinal CFG node corresponding to the lambda expression body.protected final ExpressionTreeTree for the lambda expression body.
- 
Constructor SummaryConstructorsConstructorDescriptionLambdaResultExpressionNode(ExpressionTree t, Node result) Creates a LambdaResultExpressionNode.
- 
Method SummaryModifier 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.NodegetBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setBlock, setInSource, setLValue, toStringDebugMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.plumelib.util.UniqueIdgetClassAndUid
- 
Field Details- 
treeTree for the lambda expression body.
- 
resultFinal CFG node corresponding to the lambda expression body.
 
- 
- 
Constructor Details- 
LambdaResultExpressionNodeCreates a LambdaResultExpressionNode.- Parameters:
- t- tree for the lambda expression body
- result- final CFG node corresponding to the lambda expression body
 
 
- 
- 
Method Details- 
getResultReturns 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
 
- 
getTreeReturns 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 class- Node
- Returns:
- the ExpressionTreecorresponding to the body of a lambda expression with an expression body
 
- 
acceptDescription copied from class:NodeAccept method of the visitor pattern.
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
- 
getOperandsDescription copied from class:Node- Specified by:
- getOperandsin class- Node
- Returns:
- a collection containing all of the operand Nodes of thisNode
 
 
-