Package org.prism
Class Nodes.UntilNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.UntilNode
- Enclosing class:
- Nodes
Represents the use of the `until` keyword, either in the block form or the modifier form. bar until foo ^^^^^^^^^^^^^ until foo do bar end ^^^^^^^^^^^^^^^^^^^^
-
Field Summary
FieldsFields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, nodeId, startOffset
-
Constructor Summary
ConstructorsConstructorDescriptionUntilNode
(int nodeId, int startOffset, int length, short flags, Nodes.Node predicate, Nodes.StatementsNode statements) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(AbstractNodeVisitor<T> visitor) boolean
void
setNewLineFlag
(Nodes.Source source, boolean[] newlineMarked) protected String
<T> void
visitChildNodes
(AbstractNodeVisitor<T> visitor) Methods inherited from class org.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, toString
-
Field Details
-
flags
public final short flags -
predicate
-
statements
-
-
Constructor Details
-
UntilNode
public UntilNode(int nodeId, int startOffset, int length, short flags, Nodes.Node predicate, Nodes.StatementsNode statements)
-
-
Method Details
-
isBeginModifier
public boolean isBeginModifier() -
setNewLineFlag
- Overrides:
setNewLineFlag
in classNodes.Node
-
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
-