Package org.jruby.ast
Class YieldNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.YieldNode
Represents a yield statement.
-
Field Summary
FieldsFields inherited from class org.jruby.ast.Node
containsVariableAssignment, EMPTY_LIST, newline -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(NodeVisitor<T> iVisitor) Accept for the visitor pattern.Gets the argsNode.Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Field Details
-
argsNode
-
-
Constructor Details
-
YieldNode
Construct a new YieldNode.- Parameters:
line- position of the node in the sourceargsNode- the arguments to the yield (null == no args)
-
-
Method Details
-
getNodeType
- Specified by:
getNodeTypein classNode- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getArgsNode
Gets the argsNode.- Returns:
- Returns a Node
-
childNodes
- Specified by:
childNodesin classNode
-