Package org.jruby.ast
Class WhenNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.WhenNode
- Direct Known Subclasses:
WhenOneArgNode
Represents a when condition
-
Field Summary
FieldsFields 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 bodyNode.Get the expressionNode(s).Gets the next case node (if any).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
-
Field Details
-
expressionNodes
-
bodyNode
-
-
Constructor Details
-
WhenNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getBodyNode
Gets the bodyNode.- Returns:
- Returns a INode
-
getNextCase
Gets the next case node (if any). -
getExpressionNodes
Get the expressionNode(s). -
childNodes
- Specified by:
childNodes
in classNode
-