|
||||||||||
| 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.YieldNode
public class YieldNode
Represents a yield statement.
| Constructor Summary | |
|---|---|
YieldNode(ISourcePosition position,
Node argsNode,
boolean expandedArguments)
Construct a new YieldNode. |
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern. |
java.util.List<Node> |
childNodes()
|
java.lang.String |
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)
|
| Methods inherited from class org.jruby.ast.Node |
|---|
assign, createList, 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 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 (expandArguments = true) versus
yield [1, 2, 3] (expandArguments = false).| Method Detail |
|---|
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor iVisitor)
accept in class NodeiVisitor - the visitorpublic Node getArgsNode()
@Deprecated public boolean getCheckState()
public boolean getExpandArguments()
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
public java.lang.String definition(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
definition in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||