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 public class ArgsCatNode extends Node { 40 private static final long serialVersionUID = 3906082365066327860L; 41 42 private final Node firstNode; 43 private final Node secondNode; 44 45 public ArgsCatNode(ISourcePosition position, Node firstNode, Node secondNode) { 46 super(position, NodeTypes.ARGSCATNODE); 47 this.firstNode = firstNode; 48 this.secondNode = secondNode; 49 } 50 51 public Instruction accept(NodeVisitor visitor) { 52 return visitor.visitArgsCatNode(this); 53 } 54 55 public Node getFirstNode() { 56 return firstNode; 57 } 58 59 public Node getSecondNode() { 60 return secondNode; 61 } 62 63 public List childNodes() { 64 return Node.createList(firstNode, secondNode); 65 } 66 67 } 68 | Popular Tags |