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 ToAryNode extends Node { 38 private static final long serialVersionUID = 3256723961709802546L; 39 40 private final Node node; 41 42 public ToAryNode(ISourcePosition position, Node node) { 43 super(position, NodeTypes.TOARYNODE); 44 45 this.node = node; 46 } 47 48 public Instruction accept(NodeVisitor visitor) { 49 return visitor.visitToAryNode(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 |