Class DeconstructorPatternNode
java.lang.Object
org.checkerframework.dataflow.cfg.node.Node
org.checkerframework.dataflow.cfg.node.DeconstructorPatternNode
- All Implemented Interfaces:
- org.plumelib.util.UniqueId
A node for a deconstrutor pattern.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected @MonotonicNonNull List<LocalVariableNode>A list of nested binding variables.protected final TreeTheDeconstructorPatternTree, declared asTreeto permit this file to compile under JDK 20 and earlier.A list of nested pattern nodes.
- 
Constructor SummaryConstructorsConstructorDescriptionDeconstructorPatternNode(TypeMirror type, Tree deconstructorPattern, List<Node> nestedPatterns) Creates aDeconstructorPatternNode.
- 
Method SummaryModifier and TypeMethodDescription<R,P> R accept(NodeVisitor<R, P> visitor, P p) Accept method of the visitor pattern.Return all the binding variables in this pattern.Returns the nested patterns.getTree()Returns theTreein the abstract syntax tree, ornullif no corresponding tree exists.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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.plumelib.util.UniqueIdgetClassAndUid
- 
Field Details- 
deconstructorPatternTheDeconstructorPatternTree, declared asTreeto permit this file to compile under JDK 20 and earlier.
- 
nestedPatternsA list of nested pattern nodes.
- 
bindingVariablesA list of nested binding variables. This is lazily initialized and should only be accessed bygetBindingVariables().
 
- 
- 
Constructor Details- 
DeconstructorPatternNodepublic DeconstructorPatternNode(TypeMirror type, Tree deconstructorPattern, List<Node> nestedPatterns) Creates aDeconstructorPatternNode.- Parameters:
- type- the type of the node
- deconstructorPattern- the- DeconstructorPatternTree
- nestedPatterns- a list of nested pattern nodes
 
 
- 
- 
Method Details- 
getTreeDescription copied from class:NodeReturns theTreein the abstract syntax tree, ornullif no corresponding tree exists. For instance, this is the case for anImplicitThisNode.
- 
getNestedPatternsReturns the nested patterns.- Returns:
- the nested patterns
 
- 
acceptDescription copied from class:NodeAccept method of the visitor pattern.
- 
getOperandsDescription copied from class:Node- Specified by:
- getOperandsin class- Node
- Returns:
- a collection containing all of the operand Nodes of thisNode
 
- 
getBindingVariablesReturn all the binding variables in this pattern.- Returns:
- all the binding variables in this pattern
 
 
-