Package org.prism
Class Nodes.LocalVariableOrWriteNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.LocalVariableOrWriteNode
- Enclosing class:
- Nodes
Represents the use of the `||=` operator for assignment to a local variable.
target ||= value
^^^^^^^^^^^^^^^^
-
Field Summary
FieldsFields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, nodeId, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionLocalVariableOrWriteNode(int nodeId, int startOffset, int length, Nodes.Node value, String name, int depth) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor) protected String<T> voidvisitChildNodes(AbstractNodeVisitor<T> visitor) Methods inherited from class org.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, setNewLineFlag, toString
-
Field Details
-
value
-
name
-
depth
public final int depth
-
-
Constructor Details
-
LocalVariableOrWriteNode
public LocalVariableOrWriteNode(int nodeId, int startOffset, int length, Nodes.Node value, String name, int depth)
-
-
Method Details
-
visitChildNodes
- Specified by:
visitChildNodesin classNodes.Node
-
childNodes
- Specified by:
childNodesin classNodes.Node
-
accept
- Specified by:
acceptin classNodes.Node
-
toString
- Specified by:
toStringin classNodes.Node
-