|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.query.expression.Expression
public abstract class Expression
A Scalar expression in a Query. Used to compute values with a resulting type
| Nested Class Summary | |
|---|---|
protected static class |
Expression.DyadicOperator
"Dyadic" operator performs operation on one or two operands |
protected static class |
Expression.MonadicOperator
"Monadic" operator performs a function on one operand. |
protected static class |
Expression.Operator
Inner class representing an Operator |
| Constructor Summary | |
|---|---|
protected |
Expression()
Constructor. |
protected |
Expression(Expression.MonadicOperator op,
Expression operand)
Perform a function op on operand |
protected |
Expression(Expression operand1,
Expression.DyadicOperator op,
Expression operand2)
Performs a function on two arguments. |
| Method Summary | |
|---|---|
abstract Symbol |
bind()
|
abstract java.lang.Object |
evaluate(ExpressionEvaluator eval)
|
Expression |
getLeft()
|
Expression.Operator |
getOperator()
|
Expression |
getRight()
|
Symbol |
getSymbol()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Localiser LOCALISER
protected Expression.Operator op
protected Expression left
protected Expression right
protected Symbol symbol
public static final Expression.DyadicOperator OP_OR
public static final Expression.DyadicOperator OP_AND
public static final Expression.MonadicOperator OP_NOT
public static final Expression.DyadicOperator OP_EQ
public static final Expression.DyadicOperator OP_NOTEQ
public static final Expression.DyadicOperator OP_LT
public static final Expression.DyadicOperator OP_LTEQ
public static final Expression.DyadicOperator OP_GT
public static final Expression.DyadicOperator OP_GTEQ
public static final Expression.DyadicOperator OP_LIKE
public static final Expression.DyadicOperator OP_BETWEEN
public static final Expression.DyadicOperator OP_IS
public static final Expression.DyadicOperator OP_ISNOT
public static final Expression.DyadicOperator OP_IN
public static final Expression.DyadicOperator OP_ADD
public static final Expression.DyadicOperator OP_SUB
public static final Expression.DyadicOperator OP_CONCAT
public static final Expression.DyadicOperator OP_MUL
public static final Expression.DyadicOperator OP_DIV
public static final Expression.DyadicOperator OP_MOD
public static final Expression.MonadicOperator OP_NEG
public static final Expression.MonadicOperator OP_COM
protected Expression.Operator lowestOperator
| Constructor Detail |
|---|
protected Expression()
qs - The Query Expression
protected Expression(Expression.MonadicOperator op,
Expression operand)
op on operand
op - operatoroperand - operand
protected Expression(Expression operand1,
Expression.DyadicOperator op,
Expression operand2)
operand1 - the first expressionop - the operator between operandsoperand2 - the second expression| Method Detail |
|---|
public abstract java.lang.Object evaluate(ExpressionEvaluator eval)
public Expression.Operator getOperator()
public Expression getLeft()
public Expression getRight()
public Symbol getSymbol()
public abstract Symbol bind()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||