1 package org.jruby.ast; 2 3 import java.util.List ; 4 5 import org.jruby.ast.visitor.NodeVisitor; 6 import org.jruby.evaluator.Instruction; 7 import org.jruby.lexer.yacc.ISourcePosition; 8 9 public class ArgsPushNode extends Node { 10 private static final long serialVersionUID = 6442216183136232451L; 11 private Node node1; 12 private Node node2; 13 14 public ArgsPushNode(ISourcePosition position, Node node1, Node node2) { 15 super(position, NodeTypes.ARGSPUSHNODE); 16 this.node1 = node1; 17 this.node2 = node2; 18 } 19 20 public Instruction accept(NodeVisitor visitor) { 21 return visitor.visitArgsPushNode(this); 22 } 23 24 public Node getFirstNode() { 25 return node1; 26 } 27 28 public Node getSecondNode() { 29 return node2; 30 } 31 32 public List childNodes() { 33 return EMPTY_LIST; 34 } 35 36 } 37 | Popular Tags |