Package org.prism
Class Nodes.ConstantPathOrWriteNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.ConstantPathOrWriteNode
- Enclosing class:
- Nodes
Represents the use of the `||=` operator for assignment to a constant path. Parent::Child ||= value ^^^^^^^^^^^^^^^^^^^^^^^
-
Field Summary
FieldsFields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, nodeId, startOffset
-
Constructor Summary
ConstructorsConstructorDescriptionConstantPathOrWriteNode
(int nodeId, int startOffset, int length, Nodes.ConstantPathNode target, Nodes.Node value) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(AbstractNodeVisitor<T> visitor) protected String
<T> void
visitChildNodes
(AbstractNodeVisitor<T> visitor) Methods inherited from class org.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, setNewLineFlag, toString
-
Field Details
-
target
-
value
-
-
Constructor Details
-
ConstantPathOrWriteNode
public ConstantPathOrWriteNode(int nodeId, int startOffset, int length, Nodes.ConstantPathNode target, Nodes.Node value)
-
-
Method Details
-
visitChildNodes
- Specified by:
visitChildNodes
in classNodes.Node
-
childNodes
- Specified by:
childNodes
in classNodes.Node
-
accept
- Specified by:
accept
in classNodes.Node
-
toString
- Specified by:
toString
in classNodes.Node
-