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 |
---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
List<Node> |
childNodes() |
Node |
getArgsNode()
Gets the argsNode.
|
boolean |
getExpandArguments() |
NodeType |
getNodeType() |
createList, createList, createList, createList, findFirstChild, getNodeName, getPosition, isNil, needsDefinitionCheck, setPosition, toString, toString
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 (expandedArguments = true) versus
yield [1, 2, 3] (expandedArguments = false).public NodeType getNodeType()
getNodeType
in class Node
public <T> T accept(NodeVisitor<T> iVisitor)
public Node getArgsNode()
public boolean getExpandArguments()
public List<Node> childNodes()
childNodes
in class Node
Copyright © 2001-2015 JRuby. All Rights Reserved.