1 32 package org.jruby.ast; 33 34 import java.util.List ; 35 36 import org.jruby.ast.types.IArityNode; 37 import org.jruby.ast.visitor.NodeVisitor; 38 import org.jruby.evaluator.Instruction; 39 import org.jruby.lexer.yacc.ISourcePosition; 40 import org.jruby.runtime.Arity; 41 42 51 public class ZeroArgNode extends Node implements IArityNode { 52 static final long serialVersionUID = 6596791950608957025L; 53 54 public ZeroArgNode(ISourcePosition position) { 55 super(position, NodeTypes.ZEROARGNODE); 56 } 57 58 61 public Instruction accept(NodeVisitor visitor) { 62 return null; } 64 65 68 public Arity getArity() { 69 return Arity.noArguments(); 70 } 71 72 public List childNodes() { 73 return EMPTY_LIST; 74 } 75 } 76 | Popular Tags |