net.sf.jexpel.internal.parser
Enum OperatorType

java.lang.Object
  extended by java.lang.Enum<OperatorType>
      extended by net.sf.jexpel.internal.parser.OperatorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OperatorType>

public enum OperatorType
extends java.lang.Enum<OperatorType>


Enum Constant Summary
AND
           
BITAND
           
BITNOT
           
BITOR
           
BITXOR
           
COMMA
           
COND_ELSE
           
COND_THEN
           
DIV
           
EQ
           
GE
           
GT
           
LBRACKET
           
LE
           
LPARENS
           
LSHIFT
           
LT
           
MEMBER
           
MINUS
           
MULTIPLY
           
NEWCLASS
           
NOT
           
NOTEQUAL
           
OR
           
PLUS
           
RBRACKET
           
REMAINDER
           
RPARENS
           
RSHIFT
           
UMINUS
           
URSHIFT
           
 
Field Summary
 java.lang.String name
           
 
Method Summary
static int getPriority(OperatorType op)
           
static boolean isPrior(OperatorType op1, OperatorType op2)
           
static OperatorType parse(java.lang.String token)
           
static OperatorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OperatorType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NOT

public static final OperatorType NOT

NOTEQUAL

public static final OperatorType NOTEQUAL

REMAINDER

public static final OperatorType REMAINDER

BITAND

public static final OperatorType BITAND

AND

public static final OperatorType AND

LPARENS

public static final OperatorType LPARENS

RPARENS

public static final OperatorType RPARENS

MULTIPLY

public static final OperatorType MULTIPLY

PLUS

public static final OperatorType PLUS

COMMA

public static final OperatorType COMMA

MINUS

public static final OperatorType MINUS

UMINUS

public static final OperatorType UMINUS

MEMBER

public static final OperatorType MEMBER

DIV

public static final OperatorType DIV

COND_ELSE

public static final OperatorType COND_ELSE

LT

public static final OperatorType LT

LSHIFT

public static final OperatorType LSHIFT

LE

public static final OperatorType LE

EQ

public static final OperatorType EQ

GT

public static final OperatorType GT

GE

public static final OperatorType GE

RSHIFT

public static final OperatorType RSHIFT

URSHIFT

public static final OperatorType URSHIFT

COND_THEN

public static final OperatorType COND_THEN

LBRACKET

public static final OperatorType LBRACKET

RBRACKET

public static final OperatorType RBRACKET

BITXOR

public static final OperatorType BITXOR

BITOR

public static final OperatorType BITOR

OR

public static final OperatorType OR

BITNOT

public static final OperatorType BITNOT

NEWCLASS

public static final OperatorType NEWCLASS
Field Detail

name

public final java.lang.String name
Method Detail

values

public static final OperatorType[] 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(OperatorType c : OperatorType.values())
        System.out.println(c);

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

valueOf

public static OperatorType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

parse

public static OperatorType parse(java.lang.String token)

isPrior

public static final boolean isPrior(OperatorType op1,
                                    OperatorType op2)

getPriority

public static final int getPriority(OperatorType op)