|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Operator>
de.cau.cs.kieler.krep.compiler.lustre.Operator
public enum Operator
Implement binary operators.
Enum Constant Summary | |
---|---|
ADD
Add. |
|
AND
logical and. |
|
DIV
divide. |
|
EQ
equal. |
|
GE
greater than or equal. |
|
GT
greater than. |
|
IMPL
logical imply. |
|
LE
less than or equal. |
|
LT
less than. |
|
MOD
modulo operator. |
|
MUL
Multiply. |
|
NEQ
not equal. |
|
OR
logical or. |
|
SUB
Sub. |
|
XOR
logical exclusive or. |
Method Summary | |
---|---|
static int |
eval(int a1,
int a2,
Operator op)
static evaluation. |
String |
toKlp()
|
String |
toString()
|
static Operator |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Operator ADD
public static final Operator SUB
public static final Operator MUL
public static final Operator DIV
public static final Operator MOD
public static final Operator AND
public static final Operator OR
public static final Operator XOR
public static final Operator IMPL
public static final Operator LT
public static final Operator LE
public static final Operator EQ
public static final Operator GE
public static final Operator GT
public static final Operator NEQ
Method Detail |
---|
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<Operator>
public String toKlp()
public static int eval(int a1, int a2, Operator op)
a1
- first parametera2
- second parameterop
- operator to eval
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |