1 31 package org.jruby.ast; 32 33 import org.jruby.ast.visitor.NodeVisitor; 34 import org.jruby.evaluator.Instruction; 35 import org.jruby.lexer.yacc.ISourcePosition; 36 37 43 public class ForNode extends IterNode { 44 static final long serialVersionUID = -8319863477790150586L; 45 private Node iterNode; 46 47 public ForNode(ISourcePosition position, Node varNode, Node bodyNode, Node iterNode) { 48 super(position, varNode, null, bodyNode, NodeTypes.FORNODE); 53 54 this.iterNode = iterNode; 55 } 56 57 public Node getIterNode() { 58 return iterNode; 59 } 60 61 65 public Instruction accept(NodeVisitor iVisitor) { 66 return iVisitor.visitForNode(this); 67 } 68 } 69 | Popular Tags |