org.safs.expression
Class Operator

java.lang.Object
  |
  +--org.safs.expression.Operator

public class Operator
extends java.lang.Object


Field Summary
static java.lang.String ADDITION
          +
static java.lang.String ASSIGNMENT
          =
static java.lang.String BRACKET_CLOSE
          ]
static java.lang.String BRACKET_OPEN
          [
static java.lang.String CONCATENATE
          &
static java.lang.String DIVISION
          /
static java.lang.String DOUBLE_QUOTE
          "
static java.lang.String GREATER_THAN
          >
static java.lang.String GROUP_CLOSE
          )
static java.lang.String GROUP_OPEN
          (
static java.lang.String LESS_THAN
          <
static java.lang.String MODULUS
          %
static java.lang.String MULTIPLICATION
           
static java.lang.String NOT
          !
static java.lang.String OPERATORS
          active and reserved operators
static java.lang.String OR
          |
static java.lang.String PRECEDENCE
           
static java.lang.String SUBTRACTION
          -
static java.lang.String SUPPORTED_OPERATORS
          active/supported operators only
static java.lang.String UNSUPPORTED_OPERATORS
          reserved/unsupported operators only
static java.lang.String VARIABLE_PREFIX
          ^
 
Constructor Summary
Operator()
           
 
Method Summary
static boolean isOperator(int chvalue)
          returns true if the provided value is a reserved operator value.
static boolean isOperator(java.lang.String strvalue)
          returns true if the provided value is a reserved operator value.
static boolean isSupportedOperator(int chvalue)
          returns true if the provided value is a supported operator value.
static boolean isSupportedOperator(java.lang.String strvalue)
          returns true if the provided value is a supported operator value.
static boolean isUnsupportedOperator(int chvalue)
          returns true if the provided value is a reserved but unsupported operator value.
static boolean isUnsupportedOperator(java.lang.String strvalue)
          returns true if the provided value is a reserved but unsupported operator value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VARIABLE_PREFIX

public static final java.lang.String VARIABLE_PREFIX
^

DOUBLE_QUOTE

public static final java.lang.String DOUBLE_QUOTE
"

ASSIGNMENT

public static final java.lang.String ASSIGNMENT
=

CONCATENATE

public static final java.lang.String CONCATENATE
&

ADDITION

public static final java.lang.String ADDITION
+

SUBTRACTION

public static final java.lang.String SUBTRACTION
-

MULTIPLICATION

public static final java.lang.String MULTIPLICATION

DIVISION

public static final java.lang.String DIVISION
/

MODULUS

public static final java.lang.String MODULUS
%

GROUP_OPEN

public static final java.lang.String GROUP_OPEN
(

GROUP_CLOSE

public static final java.lang.String GROUP_CLOSE
)

BRACKET_OPEN

public static final java.lang.String BRACKET_OPEN
[

BRACKET_CLOSE

public static final java.lang.String BRACKET_CLOSE
]

LESS_THAN

public static final java.lang.String LESS_THAN
<

GREATER_THAN

public static final java.lang.String GREATER_THAN
>

NOT

public static final java.lang.String NOT
!

OR

public static final java.lang.String OR
|

OPERATORS

public static final java.lang.String OPERATORS
active and reserved operators

SUPPORTED_OPERATORS

public static final java.lang.String SUPPORTED_OPERATORS
active/supported operators only

UNSUPPORTED_OPERATORS

public static final java.lang.String UNSUPPORTED_OPERATORS
reserved/unsupported operators only

PRECEDENCE

public static final java.lang.String PRECEDENCE
Constructor Detail

Operator

public Operator()
Method Detail

isOperator

public static boolean isOperator(java.lang.String strvalue)
returns true if the provided value is a reserved operator value. This includes reserved but unsupported operators.

isOperator

public static boolean isOperator(int chvalue)
returns true if the provided value is a reserved operator value. This includes reserved but unsupported operators.

isSupportedOperator

public static boolean isSupportedOperator(java.lang.String strvalue)
returns true if the provided value is a supported operator value. This does not include reserved but unsupported operators.

isSupportedOperator

public static boolean isSupportedOperator(int chvalue)
returns true if the provided value is a supported operator value. This does not include reserved but unsupported operators.

isUnsupportedOperator

public static boolean isUnsupportedOperator(java.lang.String strvalue)
returns true if the provided value is a reserved but unsupported operator value.

isUnsupportedOperator

public static boolean isUnsupportedOperator(int chvalue)
returns true if the provided value is a reserved but unsupported operator value.