1 32 package org.jruby.ast; 33 34 import java.util.List ; 35 36 import org.jruby.ast.visitor.NodeVisitor; 37 import org.jruby.evaluator.Instruction; 38 import org.jruby.lexer.yacc.ISourcePosition; 39 40 44 public class DotNode extends Node { 45 static final long serialVersionUID = 2763797850980107429L; 46 47 private final Node beginNode; 48 private final Node endNode; 49 private final boolean exclusive; 50 51 public DotNode(ISourcePosition position, Node beginNode, Node endNode, boolean exclusive) { 52 super(position, NodeTypes.DOTNODE); 53 this.beginNode = beginNode; 54 this.endNode = endNode; 55 this.exclusive = exclusive; 56 } 57 58 62 public Instruction accept(NodeVisitor iVisitor) { 63 return iVisitor.visitDotNode(this); 64 } 65 66 70 public Node getBeginNode() { 71 return beginNode; 72 } 73 74 78 public Node getEndNode() { 79 return endNode; 80 } 81 82 86 public boolean isExclusive() { 87 return exclusive; 88 } 89 90 public List childNodes() { 91 return Node.createList(beginNode, endNode); 92 } 93 94 } 95 | Popular Tags |