Top Description Fields Constructors Methods
org.jruby.ast

public Class ForNode

extends IterNode
Class Inheritance
Imports
java.util.List, org.jruby.ast.visitor.NodeVisitor, org.jruby.parser.StaticScope

A 'for' statement. This is implemented using iter and that is how MRI does things, but 'for's do not have their own stack, so doing this way is mildly painful.
See Also
IterNode

Field Summary

Modifier and TypeField and Description
private Node

Constructor Summary

AccessConstructor and Description
public
ForNode(int line, Node varNode, Node bodyNode, Node iterNode, StaticScope scope, int endLine)

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(NodeVisitor<T>
the visitor
iVisitor
)

Overrides org.jruby.ast.IterNode.accept.

Accept for the visitor pattern.

public List<Node>
public ArgsNode
public Node
public NodeType
Inherited from org.jruby.ast.IterNode:
getBodyNodegetEndLinegetScopegetVarNode

Field Detail

iterNodeback to summary
private Node iterNode

Constructor Detail

ForNodeback to summary
public ForNode(int line, Node varNode, Node bodyNode, Node iterNode, StaticScope scope, int endLine)

Method Detail

acceptback to summary
public <T> T accept(NodeVisitor<T> iVisitor)

Overrides org.jruby.ast.IterNode.accept.

Accept for the visitor pattern.

Parameters
iVisitor:NodeVisitor<T>

the visitor

Annotations
@Override
childNodesback to summary
public List<Node> childNodes()

Overrides org.jruby.ast.IterNode.childNodes.

Annotations
@Override
getArgsNodeback to summary
public ArgsNode getArgsNode()

Overrides org.jruby.ast.IterNode.getArgsNode.

Implements org.jruby.ast.DefNode.getArgsNode.

Doc from org.jruby.ast.DefNode.getArgsNode.

Gets the argsNode.

Returns:ArgsNode

Returns a Node

getIterNodeback to summary
public Node getIterNode()
getNodeTypeback to summary
public NodeType getNodeType()

Overrides org.jruby.ast.IterNode.getNodeType.

Returns:NodeType

Doc from org.jruby.ast.Node.getNodeType.

the nodeId

Annotations
@Override