Package gw.lang.ir.expression
Enum IRArithmeticExpression.Operation
- java.lang.Object
-
- java.lang.Enum<IRArithmeticExpression.Operation>
-
- gw.lang.ir.expression.IRArithmeticExpression.Operation
-
- All Implemented Interfaces:
Serializable
,Comparable<IRArithmeticExpression.Operation>
- Enclosing class:
- IRArithmeticExpression
public static enum IRArithmeticExpression.Operation extends Enum<IRArithmeticExpression.Operation>
The operation being performed.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Addition
BitwiseAnd
BitwiseOr
BitwiseXor
Division
Multiplication
Remainder
ShiftLeft
ShiftRight
Subtraction
UnsignedShiftRight
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IRArithmeticExpression.Operation
fromString(String op)
static IRArithmeticExpression.Operation
valueOf(String name)
Returns the enum constant of this type with the specified name.static IRArithmeticExpression.Operation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Addition
public static final IRArithmeticExpression.Operation Addition
-
Subtraction
public static final IRArithmeticExpression.Operation Subtraction
-
Multiplication
public static final IRArithmeticExpression.Operation Multiplication
-
Division
public static final IRArithmeticExpression.Operation Division
-
Remainder
public static final IRArithmeticExpression.Operation Remainder
-
ShiftLeft
public static final IRArithmeticExpression.Operation ShiftLeft
-
ShiftRight
public static final IRArithmeticExpression.Operation ShiftRight
-
UnsignedShiftRight
public static final IRArithmeticExpression.Operation UnsignedShiftRight
-
BitwiseAnd
public static final IRArithmeticExpression.Operation BitwiseAnd
-
BitwiseOr
public static final IRArithmeticExpression.Operation BitwiseOr
-
BitwiseXor
public static final IRArithmeticExpression.Operation BitwiseXor
-
-
Method Detail
-
values
public static IRArithmeticExpression.Operation[] 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 (IRArithmeticExpression.Operation c : IRArithmeticExpression.Operation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IRArithmeticExpression.Operation valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
public static IRArithmeticExpression.Operation fromString(String op)
-
-