org.jruby.ast
Class ForNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.IterNode
org.jruby.ast.ForNode
- All Implemented Interfaces:
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
callAdapter
public final CallSite callAdapter
ForNode
public ForNode(ISourcePosition position,
Node varNode,
Node bodyNode,
Node iterNode)
getNodeType
public NodeType getNodeType()
- Overrides:
getNodeType
in class IterNode
- Returns:
- the nodeId
getIterNode
public Node getIterNode()
accept
public java.lang.Object accept(NodeVisitor iVisitor)
- Accept for the visitor pattern.
- Overrides:
accept
in class IterNode
- Parameters:
iVisitor
- the visitor
childNodes
public java.util.List<Node> childNodes()
- Overrides:
childNodes
in class IterNode
interpret
public IRubyObject interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
- Overrides:
interpret
in class IterNode
Copyright © 2002-2009 JRuby Team. All Rights Reserved.