org.jpox.query.expression
Class BooleanExpression

java.lang.Object
  extended by org.jpox.query.expression.Expression
      extended by org.jpox.query.expression.BooleanExpression

public class BooleanExpression
extends Expression


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jpox.query.expression.Expression
Expression.DyadicOperator, Expression.MonadicOperator, Expression.Operator
 
Field Summary
 
Fields inherited from class org.jpox.query.expression.Expression
left, LOCALISER, lowestOperator, op, OP_ADD, OP_AND, OP_BETWEEN, OP_COM, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_OR, OP_SUB, right, symbol
 
Constructor Summary
BooleanExpression(Expression.MonadicOperator op, Expression operand)
          Perform a function op on operand
BooleanExpression(Expression operand1, Expression.DyadicOperator op, Expression operand2)
          Performs a function on two arguments.
 
Method Summary
 Symbol bind()
           
 java.lang.Object evaluate(ExpressionEvaluator eval)
           
 
Methods inherited from class org.jpox.query.expression.Expression
getLeft, getOperator, getRight, getSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanExpression

public BooleanExpression(Expression.MonadicOperator op,
                         Expression operand)
Perform a function op on operand

Parameters:
op - operator
operand - operand

BooleanExpression

public BooleanExpression(Expression operand1,
                         Expression.DyadicOperator op,
                         Expression operand2)
Performs a function on two arguments. op(operand1,operand2) operand1 op operand2

Parameters:
operand1 - the first expression
op - the operator between operands
operand2 - the second expression
Method Detail

evaluate

public java.lang.Object evaluate(ExpressionEvaluator eval)
Specified by:
evaluate in class Expression

bind

public Symbol bind()
Specified by:
bind in class Expression


Copyright © -2008 . All Rights Reserved.