|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OperatorETIR.Operator>
org.norecess.citkit.tir.expressions.OperatorETIR.Operator
public static enum OperatorETIR.Operator
Represents an operator like addition or multiplication. See the enumerated constants for possible values.
Each operator has punctuation associated with it (e.g., ADD
has
"+"
associated with it). Enum.toString()
still returns
the raw name (e.g., "ADD"
); use getPunctuation()
to get the punctuation. convertPunctuation(String)
can be used
to turn punctuation (like "+"
) into an
OperatorETIR.Operator
.
Enum Constant Summary | |
---|---|
ADD
|
|
AND
|
|
DIVIDE
|
|
EQUALS
|
|
GREATER_EQUALS
|
|
GREATER_THAN
|
|
LESS_EQUALS
|
|
LESS_THAN
|
|
MODULUS
|
|
MULTIPLY
|
|
NOT_EQUALS
|
|
OR
|
|
SUBTRACT
|
Method Summary | |
---|---|
static OperatorETIR.Operator |
convertPunctuation(java.lang.String punctuation)
Converts the standard C/C++/Java punctuation strings into operators. |
java.lang.String |
getPunctuation()
Gets the standard punctuation for the operator. |
static OperatorETIR.Operator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OperatorETIR.Operator[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final OperatorETIR.Operator ADD
public static final OperatorETIR.Operator SUBTRACT
public static final OperatorETIR.Operator MULTIPLY
public static final OperatorETIR.Operator DIVIDE
public static final OperatorETIR.Operator MODULUS
public static final OperatorETIR.Operator EQUALS
public static final OperatorETIR.Operator NOT_EQUALS
public static final OperatorETIR.Operator LESS_THAN
public static final OperatorETIR.Operator LESS_EQUALS
public static final OperatorETIR.Operator GREATER_EQUALS
public static final OperatorETIR.Operator GREATER_THAN
public static final OperatorETIR.Operator AND
public static final OperatorETIR.Operator OR
Method Detail |
---|
public static OperatorETIR.Operator[] values()
for (OperatorETIR.Operator c : OperatorETIR.Operator.values()) System.out.println(c);
public static OperatorETIR.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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getPunctuation()
getPunctuation
in interface IOperatorETIR.IOperator
public static OperatorETIR.Operator convertPunctuation(java.lang.String punctuation)
"+"
becomes an ADD
.
punctuation
- the punctuation for the operator.
OperatorETIR.Operator
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |