Class Nodes.AlternationPatternNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.AlternationPatternNode
- Enclosing class:
Nodes
Represents an alternation pattern in pattern matching.
foo => bar | baz
^^^^^^^^^
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Nodes.NodeRepresents the left side of the expression.final Nodes.NodeRepresents the right side of the expression.Fields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionAlternationPatternNode(int startOffset, int length, Nodes.Node left, Nodes.Node right) -
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
-
left
Represents the left side of the expression. foo => bar | baz ^^^ -
right
Represents the right side of the expression. foo => bar | baz ^^^
-
-
Constructor Details
-
AlternationPatternNode
-
-
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
-