de.pannenleiter.db.expr
Class BinaryExpression

java.lang.Object
  |
  +--de.pannenleiter.db.expr.Expression
        |
        +--de.pannenleiter.db.expr.BinaryExpression

public class BinaryExpression
extends Expression


Field Summary
protected  int operator
           
protected  Expression p1
           
protected  Expression p2
           
 
Constructor Summary
BinaryExpression(Expression p1, int op, Expression p2)
          Create a binary expression identifying the two operands and the operator
 
Method Summary
 void dump(java.lang.String indent)
           
 java.lang.String toString()
           
 
Methods inherited from class de.pannenleiter.db.expr.Expression
toSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

p1

protected Expression p1

p2

protected Expression p2

operator

protected int operator
Constructor Detail

BinaryExpression

public BinaryExpression(Expression p1,
                        int op,
                        Expression p2)
Create a binary expression identifying the two operands and the operator
Parameters:
p1 - the left-hand operand
op - the operator, as a token returned by the Tokenizer (e.g. Tokenizer.AND)
p2 - the right-hand operand
Method Detail

dump

public void dump(java.lang.String indent)
Overrides:
dump in class Expression

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object