public class WhenNode extends Node
| Modifier and Type | Field and Description |
|---|---|
protected Node |
bodyNode |
CallSite |
eqq |
protected Node |
expressionNodes |
| Constructor and Description |
|---|
WhenNode(ISourcePosition position,
Node expressionNodes,
Node bodyNode,
Node nextCase) |
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
List<Node> |
childNodes() |
Node |
getBodyNode()
Gets the bodyNode.
|
Node |
getExpressionNodes()
Get the expressionNode(s).
|
Node |
getNextCase()
Gets the next case node (if any).
|
NodeType |
getNodeType() |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
IRubyObject |
when(IRubyObject value,
ThreadContext context,
Ruby runtime,
IRubyObject self,
Block aBlock) |
assign, createList, definition, getNodeName, getPosition, setPosition, toStringprotected final Node expressionNodes
protected final Node bodyNode
public final CallSite eqq
public WhenNode(ISourcePosition position, Node expressionNodes, Node bodyNode, Node nextCase)
public NodeType getNodeType()
getNodeType in class Nodepublic Object accept(NodeVisitor iVisitor)
public Node getBodyNode()
public Node getNextCase()
public Node getExpressionNodes()
public List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
public IRubyObject when(IRubyObject value, ThreadContext context, Ruby runtime, IRubyObject self, Block aBlock)
Copyright © 2001-2013 JRuby. All Rights Reserved.