public class WhenNode extends Node
Modifier and Type | Field and Description |
---|---|
protected Node |
bodyNode |
CallSite |
eqq |
protected Node |
expressionNodes |
ASSIGNMENT_BYTELIST, CLASS_VARIABLE_BYTELIST, CONSTANT_BYTELIST, EXPRESSION_BYTELIST, FALSE_BYTELIST, GLOBAL_VARIABLE_BYTELIST, INSTANCE_VARIABLE_BYTELIST, LOCAL_VARIABLE_BYTELIST, LOCAL_VARIABLE_IN_BLOCK_BYTELIST, METHOD_BYTELIST, NIL_BYTELIST, SELF_BYTELIST, SUPER_BYTELIST, TRUE_BYTELIST, YIELD_BYTELIST
Constructor and Description |
---|
WhenNode(ISourcePosition position,
Node expressionNodes,
Node bodyNode,
Node nextCase) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
java.util.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, isInvisible, 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 java.lang.Object accept(NodeVisitor iVisitor)
public Node getBodyNode()
public Node getNextCase()
public Node getExpressionNodes()
public java.util.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 © 2002-2009 JRuby Team. All Rights Reserved.