Package org.jruby.ast
Class CaseNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.CaseNode
A Case statement. Represents a complete case statement, including the body with its
when statements.
-
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 caseNode.getCases()
void
setElseNode
(Node elseNode) 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
-
CaseNode
-
-
Method Details
-
setElseNode
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getCaseNode
Gets the caseNode. caseNode is the case expression- Returns:
- caseNode
-
getCases
-
getElseNode
-
childNodes
- Specified by:
childNodes
in classNode
-