1 31 package org.jruby.ast; 32 33 import java.util.List ; 34 35 import org.jruby.ast.types.INameNode; 36 import org.jruby.ast.visitor.NodeVisitor; 37 import org.jruby.evaluator.Instruction; 38 import org.jruby.lexer.yacc.ISourcePosition; 39 40 49 public class BlockArgNode extends Node implements INameNode { 50 static final long serialVersionUID = 8374824536805365398L; 51 52 private final int count; 53 private String name; 54 55 public BlockArgNode(ISourcePosition position, int count, String name) { 56 super(position, NodeTypes.BLOCKARGNODE); 57 this.count = count; 58 this.name = name; 59 } 60 61 65 public Instruction accept(NodeVisitor iVisitor) { 66 return iVisitor.visitBlockArgNode(this); 67 } 68 69 73 public int getCount() { 74 return count; 75 } 76 77 82 public String getName() { 83 return name; 84 } 85 86 public void setName(String name) { 87 this.name = name; 88 } 89 90 public List childNodes() { 91 return EMPTY_LIST; 92 } 93 94 } 95 | Popular Tags |