1 22 23 package org.xquark.extractor.algebra; 24 25 import org.xquark.extractor.common.SqlWrapperException; 26 import org.xquark.extractor.sql.SqlExpression; 27 28 public final class BinOpCompareAny extends BinaryAtomicOp 29 { 30 31 private static final String RCSRevision = "$Revision: 1.3 $"; 32 private static final String RCSName = "$Name: $"; 33 34 private int _operator; 35 36 42 public BinOpCompareAny(int operator, Expression scalar, Expression subquery ) 43 { 44 super (scalar, subquery) ; 45 _operator = operator ; 46 } 47 48 52 public int getOperator() 53 { 54 return _operator ; 55 } 56 57 public String pprint() 58 { 59 return getLeftOperand().pprint() + " " + Constants.COMPOPSSTRINGS[_operator] + " ANY " + getRightOperand().pprint(); 60 } 61 62 public SqlExpression accept (GenSqlVisitor visitor) throws SqlWrapperException 63 { 64 return visitor.visit(this); 65 } 66 67 public void accept (AlgebraVisitor visitor) throws SqlWrapperException 68 { 69 visitor.visit(this); 70 } 71 } 72 | Popular Tags |