|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrubyparser.ast.Node
org.jrubyparser.ast.YieldNode
public class YieldNode
Represents a yield statement.
| Constructor Summary | |
|---|---|
YieldNode(SourcePosition position,
Node argsNode,
boolean expandedArguments)
Construct a new YieldNode. |
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern. |
Node |
getArgs()
|
Node |
getArgsNode()
Deprecated. |
boolean |
getExpandArguments()
|
NodeType |
getNodeType()
|
boolean |
hasParens()
|
boolean |
isSame(Node other)
Checks node for 'sameness' for diffing. |
void |
setArgs(Node args)
|
void |
setHasParens(boolean hasParens)
|
| Methods inherited from class org.jrubyparser.ast.Node |
|---|
adopt, adopt, adoptUsingNodesPosition, childNodes, comparePositionWith, createList, getClosestIScope, getClosestModule, getGrandParent, getInlineComment, getInnermostIter, getMethodFor, getNodeAt, getNodeName, getOutermostIter, getParent, getPosition, getPositionIncludingComments, getPreviousComments, insertAfter, insertAll, insertBefore, insertNode, isBlockParameter, isDescendentOf, isLeaf, isMethodParameter, setParent, setPosition, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public YieldNode(SourcePosition 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 boolean isSame(Node other)
Node
isSame in class Nodeother - The node to be compared to.
public NodeType getNodeType()
getNodeType in class Nodepublic Object accept(NodeVisitor iVisitor)
accept in class NodeiVisitor - the visitor@Deprecated public Node getArgsNode()
public Node getArgs()
getArgs in interface IArgumentNodepublic void setArgs(Node args)
setArgs in interface IArgumentNodepublic boolean getExpandArguments()
public boolean hasParens()
hasParens in interface IArgumentNodepublic void setHasParens(boolean hasParens)
setHasParens in interface IArgumentNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||