Package org.jruby.ast
Class NextNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.NextNode
- All Implemented Interfaces:
NonLocalControlFlowNode
Represents a 'next' statement.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.Gets the valueNode.boolean
hasValue()
Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
NextNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getValueNode
Gets the valueNode.- Specified by:
getValueNode
in interfaceNonLocalControlFlowNode
- Returns:
- Returns a Node
-
hasValue
public boolean hasValue()- Specified by:
hasValue
in interfaceNonLocalControlFlowNode
-
childNodes
- Specified by:
childNodes
in classNode
-