public enum OperatorPrecedence extends Enum<OperatorPrecedence>
com.sun.source.tree
API.
As documented at: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html
Enum Constant and Description |
---|
ADDITIVE |
AND |
ASSIGNMENT |
CONDITIONAL_AND |
CONDITIONAL_OR |
EQUALITY |
MULTIPLICATIVE |
OR |
POSTFIX |
RELATIONAL |
SHIFT |
TERNARY |
UNARY |
XOR |
Modifier and Type | Method and 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.
|
public static final OperatorPrecedence POSTFIX
public static final OperatorPrecedence UNARY
public static final OperatorPrecedence MULTIPLICATIVE
public static final OperatorPrecedence ADDITIVE
public static final OperatorPrecedence SHIFT
public static final OperatorPrecedence RELATIONAL
public static final OperatorPrecedence EQUALITY
public static final OperatorPrecedence AND
public static final OperatorPrecedence XOR
public static final OperatorPrecedence OR
public static final OperatorPrecedence CONDITIONAL_AND
public static final OperatorPrecedence CONDITIONAL_OR
public static final OperatorPrecedence TERNARY
public static final OperatorPrecedence ASSIGNMENT
public static OperatorPrecedence[] values()
for (OperatorPrecedence c : OperatorPrecedence.values()) System.out.println(c);
public static OperatorPrecedence 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 boolean isHigher(OperatorPrecedence other)
public static OperatorPrecedence from(com.sun.source.tree.Tree.Kind kind)
Copyright © 2017. All rights reserved.