net.sf.jexpel.internal.parser
Enum OperatorType
java.lang.Object
java.lang.Enum<OperatorType>
net.sf.jexpel.internal.parser.OperatorType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<OperatorType>
public enum OperatorType
- extends java.lang.Enum<OperatorType>
Field Summary |
java.lang.String |
name
|
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 |
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
name
public final java.lang.String name
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)