public enum Precedence extends Enum<Precedence>
| Enum Constant and Description |
|---|
OPERATOR_PRECEDENCE_ADDITIVE
Additive operators precedence: + and -
|
OPERATOR_PRECEDENCE_AND
And operator precedence: &&
|
OPERATOR_PRECEDENCE_COMPARISON
Comparative operators precedence: <, >, <=, >=
|
OPERATOR_PRECEDENCE_EQUALITY
Equality operators precedence: =, ==, !
|
OPERATOR_PRECEDENCE_MULTIPLICATIVE
Multiplicative operators precedence: *, /, %
|
OPERATOR_PRECEDENCE_OR
Or operator precedence: ||
|
OPERATOR_PRECEDENCE_POWER
Power operator precedence: ^
|
OPERATOR_PRECEDENCE_UNARY
Unary operators precedence: + and - as prefix
|
| Modifier and Type | Method and Description |
|---|---|
int |
value() |
static Precedence |
valueOf(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 OPERATOR_PRECEDENCE_OR
public static final Precedence OPERATOR_PRECEDENCE_AND
public static final Precedence OPERATOR_PRECEDENCE_EQUALITY
public static final Precedence OPERATOR_PRECEDENCE_COMPARISON
public static final Precedence OPERATOR_PRECEDENCE_ADDITIVE
public static final Precedence OPERATOR_PRECEDENCE_MULTIPLICATIVE
public static final Precedence OPERATOR_PRECEDENCE_POWER
public static final Precedence OPERATOR_PRECEDENCE_UNARY
public static Precedence[] values()
for (Precedence c : Precedence.values()) System.out.println(c);
public static Precedence valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int value()
Copyright © 2024. All rights reserved.