1 22 23 package org.xquark.mediator.plan ; 24 25 26 import org.xquark.mediator.runtime.MediatorException; 27 import org.xquark.xquery.parser.XQueryExpression; 28 29 30 35 public abstract class OpBin extends OpMult { 36 private static final String RCSRevision = "$Revision: 1.3 $"; 40 private static final String RCSName = "$Name: $"; 41 45 65 public OpBin(ExecutionPlan plan, XQueryExpression expression, Operator left, Operator right) throws MediatorException { 66 super(plan, expression, left, right) ; 67 } 68 69 public OpBin(ExecutionPlan plan, XQueryExpression expression, Operator[] operators) throws MediatorException { 70 super(plan, expression,operators) ; 71 if (operators.length != 2) throw new MediatorException("AlgBinOp must have two elements"); 72 } 73 74 78 public void accept(OperatorVisitor visitor) throws MediatorException { 79 visitor.visit(this); 80 } 81 82 91 93 101 public Operator getLeftAlgebra() { return childrenOperator[0]; } 102 103 108 public Operator getRightAlgebra() { return childrenOperator[1]; } 109 110 122 124 134 136 143 145 152 154 160 162 168 170 174 176 } 177 | Popular Tags |