1 31 package org.jruby.ast; 32 33 import java.util.List ; 34 35 import org.jruby.ast.types.IArityNode; 36 import org.jruby.ast.visitor.NodeVisitor; 37 import org.jruby.evaluator.Instruction; 38 import org.jruby.lexer.yacc.ISourcePosition; 39 import org.jruby.runtime.Arity; 40 41 44 public class ZSuperNode extends Node implements IArityNode, BlockAcceptingNode { 45 static final long serialVersionUID = 6109129030317216863L; 46 private Node iterNode; 47 48 public ZSuperNode(ISourcePosition position) { 49 super(position, NodeTypes.ZSUPERNODE); 50 } 51 52 56 public Instruction accept(NodeVisitor iVisitor) { 57 return iVisitor.visitZSuperNode(this); 58 } 59 60 63 public Arity getArity() { 64 return Arity.optional(); 65 } 66 67 public List childNodes() { 68 return EMPTY_LIST; 69 } 70 71 public Node getIterNode() { 72 return iterNode; 73 } 74 75 public void setIterNode(Node iterNode) { 76 this.iterNode = iterNode; 77 } 78 } 79 | Popular Tags |