01: package org.jruby.ast;
02:
03: import java.util.List;
04:
05: import org.jruby.ast.visitor.NodeVisitor;
06: import org.jruby.evaluator.Instruction;
07: import org.jruby.lexer.yacc.ISourcePosition;
08:
09: 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: }
|