org.jruby.ast
Class ForNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.IterNode
org.jruby.ast.ForNode
- All Implemented Interfaces:
- java.io.Serializable, InstructionContext, ISourcePositionHolder
public class ForNode
- extends IterNode
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
,
Serialized Form
Methods inherited from class org.jruby.ast.Node |
addComment, addComments, createList, createList, createList, createList, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, setPosition, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ForNode
public ForNode(ISourcePosition position,
Node varNode,
Node bodyNode,
Node iterNode)
getIterNode
public Node getIterNode()
accept
public Instruction accept(NodeVisitor iVisitor)
- Accept for the visitor pattern.
- Overrides:
accept
in class IterNode
- Parameters:
iVisitor
- the visitor
childNodes
public java.util.List childNodes()
- Overrides:
childNodes
in class IterNode
Copyright © 2002-2007 JRuby Team. All Rights Reserved.