Package com.google.turbine.tree
Enum TurbineOperatorKind.Precedence
- java.lang.Object
-
- java.lang.Enum<TurbineOperatorKind.Precedence>
-
- com.google.turbine.tree.TurbineOperatorKind.Precedence
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TurbineOperatorKind.Precedence>
- Enclosing class:
- TurbineOperatorKind
public static enum TurbineOperatorKind.Precedence extends java.lang.Enum<TurbineOperatorKind.Precedence>
Operator precedence groups.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITIVEANDASSIGNMENTBIT_ANDBIT_IORBIT_XORCASTEQUALITYMULTIPLICATIVEORPOSTFIXRELATIONALSHIFTTERNARYUNARY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intrank()static TurbineOperatorKind.PrecedencevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TurbineOperatorKind.Precedence[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CAST
public static final TurbineOperatorKind.Precedence CAST
-
POSTFIX
public static final TurbineOperatorKind.Precedence POSTFIX
-
UNARY
public static final TurbineOperatorKind.Precedence UNARY
-
MULTIPLICATIVE
public static final TurbineOperatorKind.Precedence MULTIPLICATIVE
-
ADDITIVE
public static final TurbineOperatorKind.Precedence ADDITIVE
-
SHIFT
public static final TurbineOperatorKind.Precedence SHIFT
-
RELATIONAL
public static final TurbineOperatorKind.Precedence RELATIONAL
-
EQUALITY
public static final TurbineOperatorKind.Precedence EQUALITY
-
BIT_AND
public static final TurbineOperatorKind.Precedence BIT_AND
-
BIT_XOR
public static final TurbineOperatorKind.Precedence BIT_XOR
-
BIT_IOR
public static final TurbineOperatorKind.Precedence BIT_IOR
-
AND
public static final TurbineOperatorKind.Precedence AND
-
OR
public static final TurbineOperatorKind.Precedence OR
-
TERNARY
public static final TurbineOperatorKind.Precedence TERNARY
-
ASSIGNMENT
public static final TurbineOperatorKind.Precedence ASSIGNMENT
-
-
Method Detail
-
values
public static TurbineOperatorKind.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 (TurbineOperatorKind.Precedence c : TurbineOperatorKind.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 TurbineOperatorKind.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
-
rank
public int rank()
-
-