public class YieldNode extends Node
| Constructor and Description |
|---|
YieldNode(ISourcePosition position,
Node argsNode,
boolean expandedArguments)
Construct a new YieldNode.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
List<Node> |
childNodes() |
RubyString |
definition(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
Node |
getArgsNode()
Gets the argsNode.
|
boolean |
getCheckState()
Deprecated.
|
boolean |
getExpandArguments() |
NodeType |
getNodeType() |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
assign, createList, createList, createList, createList, getNodeName, getPosition, isNil, setPosition, toStringpublic YieldNode(ISourcePosition position, Node argsNode, boolean expandedArguments)
position - position of the node in the sourceargsNode - the arguments to the yieldexpandedArguments - whether the arguments should be treated as directly-passed args
as in yield 1, 2, 3 (expandedArguments = true) versus
yield [1, 2, 3] (expandedArguments = false).public NodeType getNodeType()
getNodeType in class Nodepublic Object accept(NodeVisitor iVisitor)
public Node getArgsNode()
@Deprecated public boolean getCheckState()
public boolean getExpandArguments()
public List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
public RubyString definition(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
definition in class NodeCopyright © 2001-2014 JRuby. All Rights Reserved.