Enum Operator
- java.lang.Object
-
- java.lang.Enum<Operator>
-
- ru.ispras.microtesk.translator.nml.ir.expr.Operator
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AND
BIT_AND
BIT_NOT
BIT_OR
BIT_XOR
CAST
COERCE
CONCAT
DIV
EQ
EXTRACT
FLOAT_TO_FLOAT
FLOAT_TO_INT
GEQ
GREATER
INT_TO_FLOAT
IS_NAN
IS_SIGN_NAN
ITE
L_ROTATE
L_SHIFT
LEQ
LESS
MINUS
MOD
MUL
NOT
NOT_EQ
OR
PLUS
POW
R_ROTATE
R_SHIFT
REPEAT
ROUND
SIGN_EXTEND
SQRT
UMINUS
UPLUS
ZERO_EXTEND
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Operator
forText(java.lang.String text)
static ru.ispras.fortress.data.DataType
getDataType(ru.ispras.fortress.expression.Node node)
ru.ispras.fortress.expression.StandardOperation
getFortressOperator(ru.ispras.fortress.data.DataTypeId dataTypeId)
ru.ispras.fortress.expression.StandardOperation
getFortressOperator(TypeId typeId)
int
getOperandCount()
java.lang.String
getText()
boolean
isBoolean()
boolean
isShift()
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
-
EXTRACT
public static final Operator EXTRACT
-
CONCAT
public static final Operator CONCAT
-
REPEAT
public static final Operator REPEAT
-
ITE
public static final Operator ITE
-
SQRT
public static final Operator SQRT
-
ROUND
public static final Operator ROUND
-
IS_NAN
public static final Operator IS_NAN
-
IS_SIGN_NAN
public static final Operator IS_SIGN_NAN
-
SIGN_EXTEND
public static final Operator SIGN_EXTEND
-
ZERO_EXTEND
public static final Operator ZERO_EXTEND
-
COERCE
public static final Operator COERCE
-
CAST
public static final Operator CAST
-
INT_TO_FLOAT
public static final Operator INT_TO_FLOAT
-
FLOAT_TO_INT
public static final Operator FLOAT_TO_INT
-
FLOAT_TO_FLOAT
public static final Operator FLOAT_TO_FLOAT
-
-
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
-
forText
public static Operator forText(java.lang.String text)
-
getDataType
public static ru.ispras.fortress.data.DataType getDataType(ru.ispras.fortress.expression.Node node)
-
getText
public java.lang.String getText()
-
getOperandCount
public int getOperandCount()
-
isBoolean
public boolean isBoolean()
-
isShift
public boolean isShift()
-
getFortressOperator
public ru.ispras.fortress.expression.StandardOperation getFortressOperator(ru.ispras.fortress.data.DataTypeId dataTypeId)
-
getFortressOperator
public ru.ispras.fortress.expression.StandardOperation getFortressOperator(TypeId typeId)
-
-