jrun.ejb.ejbql
Class NaryOperator

java.lang.Object
  |
  +--jrun.ejb.ejbql.OperatorBase
        |
        +--jrun.ejb.ejbql.NaryOperator
All Implemented Interfaces:
Element, Operator

public abstract class NaryOperator
extends OperatorBase

An operator that takes an arbitrary number of operands.

Author:
Enrique Duvos

Field Summary
static NaryOperator AND
           
static NaryOperator BETWEEN
           
static NaryOperator LIKE
           
static NaryOperator LOCATE
           
static NaryOperator NOT_BETWEEN
           
static NaryOperator NOT_LIKE
           
static NaryOperator OR
           
static NaryOperator STRING_AGGREGATOR
           
static NaryOperator SUBSTRING
           
 
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
 
Fields inherited from interface jrun.ejb.ejbql.Element
UNSPECIFIED_TRAVERSAL_ORDER
 
Constructor Summary
NaryOperator()
           
 
Method Summary
protected  java.util.Iterator buildPrintStrings(java.lang.String printString, int num)
          Convenience utility used for n-ary operators with only one print string.
 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 isNary()
           
 
Methods inherited from class jrun.ejb.ejbql.OperatorBase
accept, acceptOperatorExpression, equals, getChildren, hasBooleanType, hasDoubleType, hasFloatType, hasIntegerType, hasLongType, hasNumericType, hasSmallerNumericType, hasStringType, isBinary, isFunction, isUnary
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jrun.ejb.ejbql.Operator
getPrintStrings, operatesOn
 

Field Detail

LIKE

public static final NaryOperator LIKE

NOT_LIKE

public static final NaryOperator NOT_LIKE

AND

public static final NaryOperator AND

OR

public static final NaryOperator OR

BETWEEN

public static final NaryOperator BETWEEN

NOT_BETWEEN

public static final NaryOperator NOT_BETWEEN

LOCATE

public static final NaryOperator LOCATE

SUBSTRING

public static final NaryOperator SUBSTRING

STRING_AGGREGATOR

public static final NaryOperator STRING_AGGREGATOR
Constructor Detail

NaryOperator

public NaryOperator()
Method Detail

isNary

public boolean isNary()
Overrides:
isNary in class OperatorBase

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.

buildPrintStrings

protected java.util.Iterator buildPrintStrings(java.lang.String printString,
                                               int num)
Convenience utility used for n-ary operators with only one print string.


Copyright � 2002 Macromedia Corporation. All Rights Reserved.