|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.ast.Node
org.jruby.ast.CaseNode
public class CaseNode
A Case statement. Represents a complete case statement, including the body with its when statements.
| Constructor Summary | |
|---|---|
CaseNode(ISourcePosition position,
Node caseNode,
ListNode cases)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.jruby.ast.Node |
|---|
assign, createList, definition, getNodeName, getPosition, isInvisible, setPosition, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CaseNode(ISourcePosition position,
Node caseNode,
ListNode cases)
| Method Detail |
|---|
public void setElseNode(Node elseNode)
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor iVisitor)
accept in class NodeiVisitor - the visitorpublic Node getCaseNode()
public ListNode getCases()
public Node getElseNode()
@Deprecated public Node getFirstWhenNode()
public java.util.List<Node> childNodes()
childNodes in class Node
public IRubyObject interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
interpret in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||