1 29 package org.jruby.ast; 30 31 import java.util.List ; 32 33 import org.jruby.ast.visitor.NodeVisitor; 34 import org.jruby.evaluator.Instruction; 35 import org.jruby.lexer.yacc.ISourcePosition; 36 37 public class SValueNode extends Node { 38 private static final long serialVersionUID = 3834587720830891576L; 39 40 private final Node node; 41 42 public SValueNode(ISourcePosition position, Node node) { 43 super(position, NodeTypes.SVALUENODE); 44 this.node = node; 45 } 46 47 public Instruction accept(NodeVisitor visitor) { 48 return visitor.visitSValueNode(this); 49 } 50 51 public Node getValue() { 52 return node; 53 } 54 55 public List childNodes() { 56 return createList(node); 57 } 58 59 } 60 | Popular Tags |