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 38 public class SplatNode extends Node { 39 static final long serialVersionUID = -1649004231006940340L; 40 41 private final Node node; 42 43 public SplatNode(ISourcePosition position, Node node) { 44 super(position, NodeTypes.SPLATNODE); 45 this.node = node; 46 } 47 48 public Instruction accept(NodeVisitor visitor) { 49 return visitor.visitSplatNode(this); 50 } 51 52 public Node getValue() { 53 return node; 54 } 55 56 public List childNodes() { 57 return createList(node); 58 } 59 60 } 61 | Popular Tags |