jrun.ejb.ejbql
Class UnaryOperator
java.lang.Object
|
+--jrun.ejb.ejbql.OperatorBase
|
+--jrun.ejb.ejbql.UnaryOperator
- All Implemented Interfaces:
- Element, Operator
- Direct Known Subclasses:
- NavigationOperator
- public abstract class UnaryOperator
- extends OperatorBase
An operator that takes 1 operand.
- Author:
- Enrique Duvos
| Fields inherited from class jrun.ejb.ejbql.OperatorBase |
BOOLEAN_OBJECT_TYPE_NAME, BOOLEAN_PRIMITIVE_TYPE_NAME, DOUBLE_OBJECT_TYPE_NAME, DOUBLE_PRIMITIVE_TYPE_NAME, FLOAT_OBJECT_TYPE_NAME, FLOAT_PRIMITIVE_TYPE_NAME, INTEGER_OBJECT_TYPE_NAME, INTEGER_PRIMITIVE_TYPE_NAME, LONG_OBJECT_TYPE_NAME, LONG_PRIMITIVE_TYPE_NAME, STRING_TYPE_NAME |
|
Method Summary |
abstract java.lang.String |
getPrintString()
|
java.util.Iterator |
getPrintStrings(java.util.Vector expressions)
Return the operator strings to be used to print out
the entire expression. |
abstract java.lang.String |
getResultType(Expression expression)
|
java.lang.String |
getResultType(java.util.Vector expressions)
The stringified version of the java Class type that results
from applying the operator to the given set of expressions. |
boolean |
isPostOperator()
|
boolean |
isPreOperator()
|
boolean |
isUnary()
|
abstract boolean |
operatesOn(Expression expression)
|
boolean |
operatesOn(java.util.Vector expressions)
True if an operator can be applied to a given
set of expressions. |
| Methods inherited from class jrun.ejb.ejbql.OperatorBase |
accept, acceptOperatorExpression, equals, getChildren, hasBooleanType, hasDoubleType, hasFloatType, hasIntegerType, hasLongType, hasNumericType, hasSmallerNumericType, hasStringType, isBinary, isFunction, isNary |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ESCAPE
public static final UnaryOperator ESCAPE
NOT
public static final UnaryOperator NOT
PLUS
public static final UnaryOperator PLUS
MINUS
public static final UnaryOperator MINUS
IS_NULL
public static final UnaryOperator IS_NULL
IS_NOT_NULL
public static final UnaryOperator IS_NOT_NULL
IS_EMPTY
public static final UnaryOperator IS_EMPTY
IS_NOT_EMPTY
public static final UnaryOperator IS_NOT_EMPTY
LENGTH
public static final UnaryOperator LENGTH
ABS
public static final UnaryOperator ABS
SQRT
public static final UnaryOperator SQRT
SELECT_ALL
public static final UnaryOperator SELECT_ALL
UnaryOperator
protected UnaryOperator(boolean preOperator)
UnaryOperator
protected UnaryOperator()
isUnary
public boolean isUnary()
- Overrides:
isUnary in class OperatorBase
operatesOn
public boolean operatesOn(java.util.Vector expressions)
- Description copied from interface:
Operator
- True if an operator can be applied to a given
set of expressions.
E.g. The Plus operator can only operate on exactly two
expressions, each of which has numeric type.
operatesOn
public abstract boolean operatesOn(Expression expression)
getResultType
public java.lang.String getResultType(java.util.Vector expressions)
- Description copied from interface:
Operator
- The stringified version of the java Class type that results
from applying the operator to the given set of expressions.
getResultType
public abstract java.lang.String getResultType(Expression expression)
isPreOperator
public boolean isPreOperator()
isPostOperator
public boolean isPostOperator()
getPrintStrings
public java.util.Iterator getPrintStrings(java.util.Vector expressions)
- Description copied from interface:
Operator
- Return the operator strings to be used to print out
the entire expression. Might be multiple strings,
e.g. Expr1 BETWEEN Expr2 AND Expr3
print strings = { "BETWEEN", "AND" }
getPrintString
public abstract java.lang.String getPrintString()
Copyright � 2002 Macromedia Corporation. All Rights Reserved.