1 32 package org.jruby.ast; 33 34 import java.io.IOException ; 35 import java.util.List ; 36 37 import org.jruby.ast.types.INameNode; 38 import org.jruby.ast.visitor.NodeVisitor; 39 import org.jruby.evaluator.Instruction; 40 import org.jruby.lexer.yacc.ISourcePosition; 41 42 47 public class VCallNode extends Node implements INameNode { 48 static final long serialVersionUID = -7678578490000574578L; 49 50 private String name; 51 52 public VCallNode(ISourcePosition position, String name) { 53 super(position, NodeTypes.VCALLNODE); 54 this.name = name.intern(); 55 } 56 57 private void readObject(java.io.ObjectInputStream in) throws IOException , ClassNotFoundException { 58 in.defaultReadObject(); 59 60 name = name.intern(); 62 } 63 64 68 public Instruction accept(NodeVisitor iVisitor) { 69 return iVisitor.visitVCallNode(this); 70 } 71 72 76 public String getName() { 77 return name; 78 } 79 80 public List childNodes() { 81 return EMPTY_LIST; 82 } 83 84 } 85 | Popular Tags |