Class Nodes.WhenNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.WhenNode
- Enclosing class:
Nodes
Represents the use of the `when` keyword within a case statement.
case true
when true
^^^^^^^^^
end
-
Field Summary
FieldsFields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionWhenNode(int startOffset, int length, Nodes.Node[] conditions, Nodes.StatementsNode statements) -
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
-
conditions
-
statements
-
-
Constructor Details
-
WhenNode
public WhenNode(int startOffset, int length, Nodes.Node[] conditions, Nodes.StatementsNode statements)
-
-
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
-