public class CaseNode extends Node
| Modifier and Type | Field and Description |
|---|---|
private Node |
caseNode
the case expression.
|
private ListNode |
cases
A list of all choices including else
|
private Node |
elseNode |
EMPTY_LIST| Constructor and Description |
|---|
CaseNode(ISourcePosition position,
Node caseNode,
ListNode cases) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
Node |
getCaseNode()
Gets the caseNode.
|
ListNode |
getCases() |
Node |
getElseNode() |
Node |
getFirstWhenNode()
Deprecated.
|
NodeType |
getNodeType() |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
void |
setElseNode(Node elseNode) |
assign, createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringprivate final Node caseNode
private final ListNode cases
private Node elseNode
public CaseNode(ISourcePosition position, Node caseNode, ListNode cases)
public void setElseNode(Node elseNode)
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor iVisitor)
public Node getCaseNode()
public ListNode getCases()
public Node getElseNode()
@Deprecated public Node getFirstWhenNode()
public java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)