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 44 public class SelfNode extends Node implements INameNode { 45 static final long serialVersionUID = 7003057726029491707L; 46 47 48 public SelfNode(ISourcePosition position) { 49 super(position, NodeTypes.SELFNODE); 50 } 51 52 56 public Instruction accept(NodeVisitor iVisitor) { 57 return iVisitor.visitSelfNode(this); 58 } 59 60 63 public String getName() { 64 return "self"; 65 } 66 67 public List childNodes() { 68 return EMPTY_LIST; 69 } 70 71 } 72 | Popular Tags |