public enum Operator extends java.lang.Enum<Operator> implements Token
Operator
denotes the nonterminal symbol Operator, as defined by the Java Language Specification.
If the Java Language Specification is updated in a way that affects any operators, this enum may be updated to reflect those changes. This means that new elements could be added. This happened between Java 7 and Java 8.
Enum Constant and Description |
---|
ADDITION
An
Operator with a String representation that equals the String literal "+" . |
ADDITION_ASSIGNMENT
An
Operator with a String representation that equals the String literal "+=" . |
ARROW
An
Operator with a String representation that equals the String literal "->" . |
ASSIGNMENT
An
Operator with a String representation that equals the String literal "=" . |
BITWISE_AND
An
Operator with a String representation that equals the String literal "&" . |
BITWISE_AND_ASSIGNMENT
An
Operator with a String representation that equals the String literal "&=" . |
BITWISE_EXCLUSIVE_OR
An
Operator with a String representation that equals the String literal "^" . |
BITWISE_EXCLUSIVE_OR_ASSIGNMENT
An
Operator with a String representation that equals the String literal "^=" . |
BITWISE_INCLUSIVE_OR
An
Operator with a String representation that equals the String literal "|" . |
BITWISE_INCLUSIVE_OR_ASSIGNMENT
An
Operator with a String representation that equals the String literal "|=" . |
CONDITIONAL_AND
An
Operator with a String representation that equals the String literal "&&" . |
CONDITIONAL_OR
An
Operator with a String representation that equals the String literal "||" . |
DECREMENT
An
Operator with a String representation that equals the String literal "--" . |
DIVISION
An
Operator with a String representation that equals the String literal "/" . |
DIVISION_ASSIGNMENT
An
Operator with a String representation that equals the String literal "/=" . |
EQUAL_TO
An
Operator with a String representation that equals the String literal "==" . |
GREATER_THAN
An
Operator with a String representation that equals the String literal ">" . |
GREATER_THAN_OR_EQUAL_TO
An
Operator with a String representation that equals the String literal ">=" . |
INCREMENT
An
Operator with a String representation that equals the String literal "++" . |
LESS_THAN
An
Operator with a String representation that equals the String literal "<" . |
LESS_THAN_OR_EQUAL_TO
An
Operator with a String representation that equals the String literal "<=" . |
LOGICAL_COMPLEMENT
An
Operator with a String representation that equals the String literal "!" . |
MULTIPLICATION
An
Operator with a String representation that equals the String literal "*" . |
MULTIPLICATION_ASSIGNMENT
An
Operator with a String representation that equals the String literal "*=" . |
NOT_EQUAL_TO
An
Operator with a String representation that equals the String literal {@code "! |
REMAINDER
An
Operator with a String representation that equals the String literal "%" . |
REMAINDER_ASSIGNMENT
An
Operator with a String representation that equals the String literal "%=" . |
SIGNED_LEFT_SHIFT
An
Operator with a String representation that equals the String literal "<<" . |
SIGNED_LEFT_SHIFT_ASSIGNMENT
An
Operator with a String representation that equals the String literal "<<=" . |
SIGNED_RIGHT_SHIFT
An
Operator with a String representation that equals the String literal ">>" . |
SIGNED_RIGHT_SHIFT_ASSIGNMENT
An
Operator with a String representation that equals the String literal ">>=" . |
SUBTRACTION
An
Operator with a String representation that equals the String literal "-" . |
SUBTRACTION_ASSIGNMENT
An
Operator with a String representation that equals the String literal "-=" . |
TERNARY_COLON
An
Operator with a String representation that equals the String literal ":" . |
TERNARY_QUESTION_MARK
An
Operator with a String representation that equals the String literal "?" . |
UNARY_BITWISE_COMPLEMENT
An
Operator with a String representation that equals the String literal "~" . |
UNSIGNED_RIGHT_SHIFT
An
Operator with a String representation that equals the String literal ">>>" . |
UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
An
Operator with a String representation that equals the String literal ">>>=" . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a
String representation of this Operator instance. |
static Operator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operator ADDITION
Operator
with a String
representation that equals the String
literal "+"
.public static final Operator ADDITION_ASSIGNMENT
Operator
with a String
representation that equals the String
literal "+="
.public static final Operator ARROW
Operator
with a String
representation that equals the String
literal "->"
.public static final Operator ASSIGNMENT
Operator
with a String
representation that equals the String
literal "="
.public static final Operator BITWISE_AND
Operator
with a String
representation that equals the String
literal "&"
.public static final Operator BITWISE_AND_ASSIGNMENT
Operator
with a String
representation that equals the String
literal "&="
.public static final Operator BITWISE_EXCLUSIVE_OR
Operator
with a String
representation that equals the String
literal "^"
.public static final Operator BITWISE_EXCLUSIVE_OR_ASSIGNMENT
Operator
with a String
representation that equals the String
literal "^="
.public static final Operator BITWISE_INCLUSIVE_OR
Operator
with a String
representation that equals the String
literal "|"
.public static final Operator BITWISE_INCLUSIVE_OR_ASSIGNMENT
Operator
with a String
representation that equals the String
literal "|="
.public static final Operator CONDITIONAL_AND
Operator
with a String
representation that equals the String
literal "&&"
.public static final Operator CONDITIONAL_OR
Operator
with a String
representation that equals the String
literal "||"
.public static final Operator DECREMENT
Operator
with a String
representation that equals the String
literal "--"
.public static final Operator DIVISION
Operator
with a String
representation that equals the String
literal "/"
.public static final Operator DIVISION_ASSIGNMENT
Operator
with a String
representation that equals the String
literal "/="
.public static final Operator EQUAL_TO
Operator
with a String
representation that equals the String
literal "=="
.public static final Operator GREATER_THAN
Operator
with a String
representation that equals the String
literal ">"
.public static final Operator GREATER_THAN_OR_EQUAL_TO
Operator
with a String
representation that equals the String
literal ">="
.public static final Operator INCREMENT
Operator
with a String
representation that equals the String
literal "++"
.public static final Operator LESS_THAN
Operator
with a String
representation that equals the String
literal "<"
.public static final Operator LESS_THAN_OR_EQUAL_TO
Operator
with a String
representation that equals the String
literal "<="
.public static final Operator LOGICAL_COMPLEMENT
Operator
with a String
representation that equals the String
literal "!"
.public static final Operator MULTIPLICATION
Operator
with a String
representation that equals the String
literal "*"
.public static final Operator MULTIPLICATION_ASSIGNMENT
Operator
with a String
representation that equals the String
literal "*="
.public static final Operator NOT_EQUAL_TO
Operator
with a String
representation that equals the String
literal "!="
.public static final Operator REMAINDER
Operator
with a String
representation that equals the String
literal "%"
.public static final Operator REMAINDER_ASSIGNMENT
Operator
with a String
representation that equals the String
literal "%="
.public static final Operator SIGNED_LEFT_SHIFT
Operator
with a String
representation that equals the String
literal "<<"
.public static final Operator SIGNED_LEFT_SHIFT_ASSIGNMENT
Operator
with a String
representation that equals the String
literal "<<="
.public static final Operator SIGNED_RIGHT_SHIFT
Operator
with a String
representation that equals the String
literal ">>"
.public static final Operator SIGNED_RIGHT_SHIFT_ASSIGNMENT
Operator
with a String
representation that equals the String
literal ">>="
.public static final Operator SUBTRACTION
Operator
with a String
representation that equals the String
literal "-"
.public static final Operator SUBTRACTION_ASSIGNMENT
Operator
with a String
representation that equals the String
literal "-="
.public static final Operator TERNARY_COLON
Operator
with a String
representation that equals the String
literal ":"
.public static final Operator TERNARY_QUESTION_MARK
Operator
with a String
representation that equals the String
literal "?"
.public static final Operator UNARY_BITWISE_COMPLEMENT
Operator
with a String
representation that equals the String
literal "~"
.public static final Operator UNSIGNED_RIGHT_SHIFT
Operator
with a String
representation that equals the String
literal ">>>"
.public static final Operator UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
Operator
with a String
representation that equals the String
literal ">>>="
.public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
String
representation of this Operator
instance.toString
in class java.lang.Enum<Operator>
String
representation of this Operator
instance