Package com.google.errorprone.util
Enum OperatorPrecedence
- All Implemented Interfaces:
Serializable
,Comparable<OperatorPrecedence>
,java.lang.constant.Constable
public enum OperatorPrecedence extends Enum<OperatorPrecedence>
The precedence for an operator kind in the
com.sun.source.tree
API.
As documented at: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITIVE
AND
ASSIGNMENT
CONDITIONAL_AND
CONDITIONAL_OR
EQUALITY
MULTIPLICATIVE
OR
POSTFIX
RELATIONAL
SHIFT
TERNARY
UNARY
XOR
-
Method Summary
Modifier and Type Method Description static OperatorPrecedence
from(com.sun.source.tree.Tree.Kind kind)
boolean
isHigher(OperatorPrecedence other)
static OperatorPrecedence
valueOf(String name)
Returns the enum constant of this type with the specified name.static OperatorPrecedence[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
POSTFIX
-
UNARY
-
MULTIPLICATIVE
-
ADDITIVE
-
SHIFT
-
RELATIONAL
-
EQUALITY
-
AND
-
XOR
-
OR
-
CONDITIONAL_AND
-
CONDITIONAL_OR
-
TERNARY
-
ASSIGNMENT
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isHigher
-
from
-