1 31 package org.jruby.ast; 32 33 34 import org.jruby.ast.types.ILiteralNode; 35 import org.jruby.ast.visitor.NodeVisitor; 36 import org.jruby.evaluator.Instruction; 37 import org.jruby.lexer.yacc.ISourcePosition; 38 39 45 public class ArrayNode extends ListNode implements ILiteralNode { 46 static final long serialVersionUID = 6279246130032958596L; 47 48 public ArrayNode(ISourcePosition position, Node firstNode) { 49 super(position, NodeTypes.ARRAYNODE, firstNode); 50 } 51 52 public ArrayNode(ISourcePosition position) { 53 super(position, NodeTypes.ARRAYNODE); 54 } 55 56 60 public Instruction accept(NodeVisitor iVisitor) { 61 return iVisitor.visitArrayNode(this); 62 } 63 } 64 | Popular Tags |