Enum Precedence
- java.lang.Object
-
- java.lang.Enum<Precedence>
-
- org.benf.cfr.reader.bytecode.analysis.parse.expression.misc.Precedence
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Precedence>
public enum Precedence extends java.lang.Enum<Precedence>
-
-
Enum Constant Summary
Enum Constants Enum Constant 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
-
Constructor Summary
Constructors Modifier Constructor Description private
Precedence(boolean ltoR)
private
Precedence(boolean ltoR, boolean commute)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
HIGHEST
public static final Precedence HIGHEST
-
PAREN_SUB_MEMBER
public static final Precedence PAREN_SUB_MEMBER
-
LAMBDA
public static final Precedence LAMBDA
-
UNARY_POST
public static final Precedence UNARY_POST
-
UNARY_OTHER
public static final Precedence UNARY_OTHER
-
MUL_DIV_MOD
public static final Precedence MUL_DIV_MOD
-
ADD_SUB
public static final Precedence ADD_SUB
-
BITWISE_SHIFT
public static final Precedence BITWISE_SHIFT
-
REL_CMP_INSTANCEOF
public static final Precedence REL_CMP_INSTANCEOF
-
REL_EQ
public static final Precedence REL_EQ
-
BIT_AND
public static final Precedence BIT_AND
-
BIT_XOR
public static final Precedence BIT_XOR
-
BIT_OR
public static final Precedence BIT_OR
-
LOG_AND
public static final Precedence LOG_AND
-
LOG_OR
public static final Precedence LOG_OR
-
CONDITIONAL
public static final Precedence CONDITIONAL
-
ASSIGNMENT
public static final Precedence ASSIGNMENT
-
WEAKEST
public static final Precedence WEAKEST
-
-
Method Detail
-
values
public static Precedence[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Precedence c : Precedence.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Precedence 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 namejava.lang.NullPointerException
- if the argument is null
-
isLtoR
public boolean isLtoR()
-
isCommutative
public boolean isCommutative()
-
-