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, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toString
protected 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 Node
public Object accept(NodeVisitor iVisitor)
public Node getBodyNode()
public Node getNextCase()
public Node getExpressionNodes()
public List<Node> childNodes()
childNodes
in class Node
public 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-2015 JRuby. All Rights Reserved.