public class IterNode extends Node implements DefNode
containsVariableAssignment, newline
Constructor and Description |
---|
IterNode(ISourcePosition position,
ArgsNode args,
Node body,
StaticScope scope,
int endLine)
Used for all non-for types of blocks.
|
IterNode(ISourcePosition position,
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, getPosition, isNewline, isNil, needsDefinitionCheck, setNewline, setPosition, toString, toString, toStringInternal
public IterNode(ISourcePosition position, Node args, StaticScope scope, Node body, int endLine)
public IterNode(ISourcePosition position, ArgsNode args, Node body, StaticScope scope, int endLine)
public NodeType getNodeType()
getNodeType
in class Node
public <T> T accept(NodeVisitor<T> iVisitor)
public ArgsNode getArgsNode()
DefNode
getArgsNode
in interface DefNode
public StaticScope getScope()
DefNode
public Node getBodyNode()
getBodyNode
in interface DefNode
public Node getVarNode()
public java.util.List<Node> childNodes()
childNodes
in class Node
public int getEndLine()
DefNode
getEndLine
in interface DefNode
Copyright © 2001-2021 JRuby. All Rights Reserved.