org.jrubyparser.ast
Class ForNode
java.lang.Object
org.jrubyparser.ast.Node
org.jrubyparser.ast.IterNode
org.jrubyparser.ast.ForNode
- All Implemented Interfaces:
- IBlockScope, IParameterScope, IScope, 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 org.jrubyparser.ast.Node |
adopt, adopt, adoptUsingNodesPosition, childNodes, comparePositionWith, createList, getClosestIScope, getClosestModule, getGrandParent, getInlineComment, getInnermostIter, getMethodFor, getNodeAt, getNodeName, getOutermostIter, getParent, getPosition, getPositionIncludingComments, getPreviousComments, insertAfter, insertAll, insertBefore, insertNode, isBlockParameter, isDescendentOf, isLeaf, isMethodParameter, setParent, setPosition, toString |
ForNode
public ForNode(SourcePosition position,
Node varNode,
Node bodyNode,
Node iterNode,
StaticScope scope)
isSame
public boolean isSame(Node node)
- Checks node for 'sameness' for diffing.
- Overrides:
isSame in class IterNode
- Parameters:
node - to be compared to
- Returns:
- Returns a boolean
getNodeType
public NodeType getNodeType()
- Overrides:
getNodeType in class IterNode
- Returns:
- the nodeId
getIter
public Node getIter()
getIterNode
@Deprecated
public Node getIterNode()
- Deprecated.
accept
public Object accept(NodeVisitor iVisitor)
- Accept for the visitor pattern.
- Overrides:
accept in class IterNode
- Parameters:
iVisitor - the visitor
Copyright © 2013. All Rights Reserved.