Enum Operator
- java.lang.Object
-
- java.lang.Enum<Operator>
-
- ru.ispras.microtesk.mmu.translator.Operator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Operator
fromText(java.lang.String text)
java.lang.String
getText()
ru.ispras.fortress.expression.StandardOperation
toFortressFor(ru.ispras.fortress.data.DataTypeId typeId)
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
-
OR
public static final Operator OR
-
AND
public static final Operator AND
-
BIT_OR
public static final Operator BIT_OR
-
BIT_XOR
public static final Operator BIT_XOR
-
BIT_AND
public static final Operator BIT_AND
-
EQ
public static final Operator EQ
-
NOT_EQ
public static final Operator NOT_EQ
-
LEQ
public static final Operator LEQ
-
GEQ
public static final Operator GEQ
-
LESS
public static final Operator LESS
-
GREATER
public static final Operator GREATER
-
L_SHIFT
public static final Operator L_SHIFT
-
R_SHIFT
public static final Operator R_SHIFT
-
L_ROTATE
public static final Operator L_ROTATE
-
R_ROTATE
public static final Operator R_ROTATE
-
PLUS
public static final Operator PLUS
-
MINUS
public static final Operator MINUS
-
MUL
public static final Operator MUL
-
DIV
public static final Operator DIV
-
MOD
public static final Operator MOD
-
POW
public static final Operator POW
-
UPLUS
public static final Operator UPLUS
-
UMINUS
public static final Operator UMINUS
-
BIT_NOT
public static final Operator BIT_NOT
-
NOT
public static final Operator NOT
-
-
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
-
getText
public java.lang.String getText()
-
fromText
public static Operator fromText(java.lang.String text)
-
toFortressFor
public ru.ispras.fortress.expression.StandardOperation toFortressFor(ru.ispras.fortress.data.DataTypeId typeId)
-
-