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 43 public class Match3Node extends Node { 44 static final long serialVersionUID = -6147075329935023633L; 45 46 private final Node receiverNode; 47 private final Node valueNode; 48 49 public Match3Node(ISourcePosition position, Node receiverNode, Node valueNode) { 50 super(position, NodeTypes.MATCH3NODE); 51 52 this.receiverNode = receiverNode; 53 this.valueNode = valueNode; 54 } 55 56 60 public Instruction accept(NodeVisitor iVisitor) { 61 return iVisitor.visitMatch3Node(this); 62 } 63 64 68 public Node getReceiverNode() { 69 return receiverNode; 70 } 71 72 76 public Node getValueNode() { 77 return valueNode; 78 } 79 80 public List childNodes() { 81 return Node.createList(receiverNode, valueNode); 82 } 83 84 } 85 | Popular Tags |