Enum Class OperatorPrecedence
- All Implemented Interfaces:
Serializable, Comparable<OperatorPrecedence>, Constable
The precedence for an operator kind in the
com.sun.source.tree
API.
As documented at: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic OperatorPrecedence
boolean
isHigher
(OperatorPrecedence other) static Optional
<OperatorPrecedence> optionallyFrom
(Tree.Kind kind) static OperatorPrecedence
Returns the enum constant of this class with the specified name.static OperatorPrecedence[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POSTFIX
-
UNARY
-
CAST
-
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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isHigher
-
from
-
optionallyFrom
-