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> Taccept(AbstractNodeVisitor<T> visitor) booleanvoidsetNewLineFlag(Nodes.Source source, boolean[] newlineMarked) protected String<T> voidvisitChildNodes(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:
setNewLineFlagin classNodes.Node
-
visitChildNodes
- Specified by:
visitChildNodesin classNodes.Node
-
childNodes
- Specified by:
childNodesin classNodes.Node
-
accept
- Specified by:
acceptin classNodes.Node
-
toString
- Specified by:
toStringin classNodes.Node
-