Class Nodes.BeginNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.BeginNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Nodes.ElseNodeRepresents the else clause within the begin block.final Nodes.EnsureNodeRepresents the ensure clause within the begin block.final Nodes.RescueNodeRepresents the rescue clause within the begin block.final Nodes.StatementsNodeRepresents the statements within the begin block.Fields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionBeginNode(int startOffset, int length, Nodes.StatementsNode statements, Nodes.RescueNode rescue_clause, Nodes.ElseNode else_clause, Nodes.EnsureNode ensure_clause) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor) voidsetNewLineFlag(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
-
statements
Represents the statements within the begin block. begin x end ^ -
rescue_clause
Represents the rescue clause within the begin block. begin x; rescue y; end ^^^^^^^^ -
else_clause
Represents the else clause within the begin block. begin x; rescue y; else z; end ^^^^^^ -
ensure_clause
Represents the ensure clause within the begin block. begin x; ensure y; end ^^^^^^^^
-
-
Constructor Details
-
BeginNode
public BeginNode(int startOffset, int length, Nodes.StatementsNode statements, Nodes.RescueNode rescue_clause, Nodes.ElseNode else_clause, Nodes.EnsureNode ensure_clause)
-
-
Method Details
-
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
-