1 31 package org.jruby.ast; 32 33 import java.util.List ; 34 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 HashNode extends Node { 46 static final long serialVersionUID = -7554050553303344025L; 47 48 private final ListNode listNode; 49 50 public HashNode(ISourcePosition position, ListNode listNode) { 51 super(position, NodeTypes.HASHNODE); 52 this.listNode = listNode; 53 } 54 55 59 public Instruction accept(NodeVisitor iVisitor) { 60 return iVisitor.visitHashNode(this); 61 } 62 63 67 public ListNode getListNode() { 68 return listNode; 69 } 70 71 public List childNodes() { 72 return createList(listNode); 73 } 74 75 } 76 | Popular Tags |