Enum Operator
- java.lang.Object
-
- java.lang.Enum<Operator>
-
- org.jparsec.examples.java.ast.expression.Operator
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AAND
ADIV
ALSHIFT
AMINUS
AMOD
AMUL
AND
AOR
APLUS
ARSHIFT
ASSIGNMENT
AXOR
BITWISE_AND
BITWISE_NOT
BITWISE_OR
BITWISE_XOR
DEC
DIV
EQ
GE
GT
INC
LE
LSHIFT
LT
MINUS
MOD
MUL
NE
NEGATIVE
NOT
OR
PLUS
POSITIVE
POST_DEC
POST_INC
RSHIFT
UNSIGNED_ARSHIFT
UNSIGNED_RSHIFT
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
Operator(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
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.
-
-
-
Enum Constant Detail
-
POST_INC
public static final Operator POST_INC
-
POST_DEC
public static final Operator POST_DEC
-
INC
public static final Operator INC
-
DEC
public static final Operator DEC
-
POSITIVE
public static final Operator POSITIVE
-
NEGATIVE
public static final Operator NEGATIVE
-
NOT
public static final Operator NOT
-
BITWISE_NOT
public static final Operator BITWISE_NOT
-
MUL
public static final Operator MUL
-
DIV
public static final Operator DIV
-
MOD
public static final Operator MOD
-
PLUS
public static final Operator PLUS
-
MINUS
public static final Operator MINUS
-
LSHIFT
public static final Operator LSHIFT
-
RSHIFT
public static final Operator RSHIFT
-
UNSIGNED_RSHIFT
public static final Operator UNSIGNED_RSHIFT
-
LT
public static final Operator LT
-
GT
public static final Operator GT
-
LE
public static final Operator LE
-
GE
public static final Operator GE
-
EQ
public static final Operator EQ
-
NE
public static final Operator NE
-
BITWISE_AND
public static final Operator BITWISE_AND
-
BITWISE_XOR
public static final Operator BITWISE_XOR
-
BITWISE_OR
public static final Operator BITWISE_OR
-
AND
public static final Operator AND
-
OR
public static final Operator OR
-
ASSIGNMENT
public static final Operator ASSIGNMENT
-
APLUS
public static final Operator APLUS
-
AMINUS
public static final Operator AMINUS
-
AMUL
public static final Operator AMUL
-
ADIV
public static final Operator ADIV
-
AMOD
public static final Operator AMOD
-
AAND
public static final Operator AAND
-
AOR
public static final Operator AOR
-
AXOR
public static final Operator AXOR
-
ALSHIFT
public static final Operator ALSHIFT
-
ARSHIFT
public static final Operator ARSHIFT
-
UNSIGNED_ARSHIFT
public static final Operator UNSIGNED_ARSHIFT
-
-
Method Detail
-
values
public static Operator[] 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 (Operator c : Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Operator 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Operator>
-
-