public enum Precedence extends java.lang.Enum<Precedence>
Enum Constant and Description |
---|
ADD_SUB |
ASSIGNMENT |
BIT_AND |
BIT_OR |
BIT_XOR |
BITWISE_SHIFT |
CONDITIONAL |
HIGHEST |
LAMBDA |
LOG_AND |
LOG_OR |
MUL_DIV_MOD |
PAREN_SUB_MEMBER |
REL_CMP_INSTANCEOF |
REL_EQ |
UNARY_OTHER |
UNARY_POST |
WEAKEST |
Modifier and Type | Field and Description |
---|---|
private boolean |
commute |
private boolean |
isLtoR |
Modifier and Type | Method and Description |
---|---|
boolean |
isCommutative() |
boolean |
isLtoR() |
static Precedence |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Precedence[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Precedence HIGHEST
public static final Precedence PAREN_SUB_MEMBER
public static final Precedence LAMBDA
public static final Precedence UNARY_POST
public static final Precedence UNARY_OTHER
public static final Precedence MUL_DIV_MOD
public static final Precedence ADD_SUB
public static final Precedence BITWISE_SHIFT
public static final Precedence REL_CMP_INSTANCEOF
public static final Precedence REL_EQ
public static final Precedence BIT_AND
public static final Precedence BIT_XOR
public static final Precedence BIT_OR
public static final Precedence LOG_AND
public static final Precedence LOG_OR
public static final Precedence CONDITIONAL
public static final Precedence ASSIGNMENT
public static final Precedence WEAKEST
public static Precedence[] values()
for (Precedence c : Precedence.values()) System.out.println(c);
public static Precedence valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isLtoR()
public boolean isCommutative()