public class IterNode extends Node implements DefNode
containsVariableAssignment, newline| Constructor and Description |
|---|
IterNode(int line,
ArgsNode args,
Node body,
StaticScope scope,
int endLine)
Used for all non-for types of blocks.
|
IterNode(int line,
Node args,
StaticScope scope,
Node body,
int endLine)
Used by ForNode only.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
ArgsNode |
getArgsNode()
Gets the argsNode.
|
Node |
getBodyNode()
Gets the bodyNode.
|
int |
getEndLine()
Which line if the end keyword located
|
NodeType |
getNodeType() |
StaticScope |
getScope()
Get the static scoping information.
|
Node |
getVarNode()
Gets the varNode.
|
containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewlinepublic IterNode(int line,
Node args,
StaticScope scope,
Node body,
int endLine)
public IterNode(int line,
ArgsNode args,
Node body,
StaticScope scope,
int endLine)
public NodeType getNodeType()
getNodeType in class Nodepublic <T> T accept(NodeVisitor<T> iVisitor)
public ArgsNode getArgsNode()
DefNodegetArgsNode in interface DefNodepublic StaticScope getScope()
DefNodepublic Node getBodyNode()
getBodyNode in interface DefNodepublic Node getVarNode()
public java.util.List<Node> childNodes()
childNodes in class Nodepublic int getEndLine()
DefNodegetEndLine in interface DefNodeCopyright © 2001-2022 JRuby. All Rights Reserved.