net.esper.type
Enum RelationalOpEnum

java.lang.Object
  extended by java.lang.Enum<RelationalOpEnum>
      extended by net.esper.type.RelationalOpEnum
All Implemented Interfaces:
Serializable, Comparable<RelationalOpEnum>

public enum RelationalOpEnum
extends Enum<RelationalOpEnum>

Enum representing relational types of operation.


Nested Class Summary
static interface RelationalOpEnum.Computer
          Computer for relational op.
static class RelationalOpEnum.GEDoubleComputer
          Computer for relational op compare.
static class RelationalOpEnum.GELongComputer
          Computer for relational op compare.
static class RelationalOpEnum.GEStringComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTDoubleComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTLongComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTStringComputer
          Computer for relational op compare.
static class RelationalOpEnum.LEDoubleComputer
          Computer for relational op compare.
static class RelationalOpEnum.LELongComputer
          Computer for relational op compare.
static class RelationalOpEnum.LEStringComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTDoubleComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTLongComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTStringComputer
          Computer for relational op compare.
 
Enum Constant Summary
GE
          Greater equals.
GT
          Greater then.
LE
          Lesser equals.
LT
          Lesser then.
 
Method Summary
 RelationalOpEnum.Computer getComputer(Class coercedType)
          Returns the computer to use for the relational operation based on the coercion type.
 String getExpressionText()
          Returns string rendering of enum.
static RelationalOpEnum parse(String op)
          Parses the operator and returns an enum for the operator.
static RelationalOpEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RelationalOpEnum[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GT

public static final RelationalOpEnum GT
Greater then.


GE

public static final RelationalOpEnum GE
Greater equals.


LT

public static final RelationalOpEnum LT
Lesser then.


LE

public static final RelationalOpEnum LE
Lesser equals.

Method Detail

values

public static final RelationalOpEnum[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(RelationalOpEnum c : RelationalOpEnum.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static RelationalOpEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

parse

public static RelationalOpEnum parse(String op)
Parses the operator and returns an enum for the operator.

Parameters:
op - to parse
Returns:
enum representing relational operation

getComputer

public RelationalOpEnum.Computer getComputer(Class coercedType)
Returns the computer to use for the relational operation based on the coercion type.

Parameters:
coercedType - is the object type
Returns:
computer for performing the relational op

getExpressionText

public String getExpressionText()
Returns string rendering of enum.

Returns:
relational op string