Package com.aparapi.internal.instruction
Enum InstructionSet.Operator
- java.lang.Object
-
- java.lang.Enum<InstructionSet.Operator>
-
- com.aparapi.internal.instruction.InstructionSet.Operator
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InstructionSet.Operator>
- Enclosing class:
- InstructionSet
public static enum InstructionSet.Operator extends java.lang.Enum<InstructionSet.Operator>
Represents an Operator
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Add
ArithmeticRightShift
BitwiseAnd
BitwiseOr
BitwiseXor
D2FCast
D2ICast
D2LCast
Div
Equal
EqualNULL
F2DCast
F2ICast
F2LCast
GreaterThan
GreaterThanOrEqual
I2BCast
I2CCast
I2DCast
I2FCast
I2LCast
I2SCast
L2DCast
L2FCast
L2ICast
LeftShift
LessThan
LessThanOrEqual
LogicalAnd
LogicalOr
LogicalRightShift
Mul
Neg
NONE
NotEqual
NotEqualNULL
Pos
Rem
Sub
-
Field Summary
Fields Modifier and Type Field Description private boolean
binary
private InstructionSet.Operator
compliment
private java.lang.String
text
-
Constructor Summary
Constructors Modifier Constructor Description private
Operator()
private
Operator(boolean _binary, java.lang.String _text)
private
Operator(boolean _binary, java.lang.String _text, InstructionSet.Operator _c)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstructionSet.Operator
getCompliment()
java.lang.String
getText()
java.lang.String
getText(boolean _invert)
boolean
isBinary()
boolean
isUnary()
static InstructionSet.Operator
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InstructionSet.Operator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final InstructionSet.Operator NONE
-
LogicalOr
public static final InstructionSet.Operator LogicalOr
-
LogicalAnd
public static final InstructionSet.Operator LogicalAnd
-
Equal
public static final InstructionSet.Operator Equal
-
NotEqual
public static final InstructionSet.Operator NotEqual
-
LessThan
public static final InstructionSet.Operator LessThan
-
GreaterThanOrEqual
public static final InstructionSet.Operator GreaterThanOrEqual
-
GreaterThan
public static final InstructionSet.Operator GreaterThan
-
LessThanOrEqual
public static final InstructionSet.Operator LessThanOrEqual
-
EqualNULL
public static final InstructionSet.Operator EqualNULL
-
NotEqualNULL
public static final InstructionSet.Operator NotEqualNULL
-
BitwiseOr
public static final InstructionSet.Operator BitwiseOr
-
BitwiseAnd
public static final InstructionSet.Operator BitwiseAnd
-
BitwiseXor
public static final InstructionSet.Operator BitwiseXor
-
LeftShift
public static final InstructionSet.Operator LeftShift
-
ArithmeticRightShift
public static final InstructionSet.Operator ArithmeticRightShift
-
LogicalRightShift
public static final InstructionSet.Operator LogicalRightShift
-
Add
public static final InstructionSet.Operator Add
-
Sub
public static final InstructionSet.Operator Sub
-
Div
public static final InstructionSet.Operator Div
-
Rem
public static final InstructionSet.Operator Rem
-
Mul
public static final InstructionSet.Operator Mul
-
Neg
public static final InstructionSet.Operator Neg
-
Pos
public static final InstructionSet.Operator Pos
-
I2FCast
public static final InstructionSet.Operator I2FCast
-
I2LCast
public static final InstructionSet.Operator I2LCast
-
I2DCast
public static final InstructionSet.Operator I2DCast
-
L2ICast
public static final InstructionSet.Operator L2ICast
-
L2FCast
public static final InstructionSet.Operator L2FCast
-
L2DCast
public static final InstructionSet.Operator L2DCast
-
F2ICast
public static final InstructionSet.Operator F2ICast
-
F2LCast
public static final InstructionSet.Operator F2LCast
-
F2DCast
public static final InstructionSet.Operator F2DCast
-
D2ICast
public static final InstructionSet.Operator D2ICast
-
D2LCast
public static final InstructionSet.Operator D2LCast
-
D2FCast
public static final InstructionSet.Operator D2FCast
-
I2BCast
public static final InstructionSet.Operator I2BCast
-
I2CCast
public static final InstructionSet.Operator I2CCast
-
I2SCast
public static final InstructionSet.Operator I2SCast
-
-
Field Detail
-
text
private final java.lang.String text
-
binary
private final boolean binary
-
compliment
private InstructionSet.Operator compliment
-
-
Constructor Detail
-
Operator
private Operator(boolean _binary, java.lang.String _text)
-
Operator
private Operator(boolean _binary, java.lang.String _text, InstructionSet.Operator _c)
-
Operator
private Operator()
-
-
Method Detail
-
values
public static InstructionSet.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 (InstructionSet.Operator c : InstructionSet.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 InstructionSet.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()
-
getCompliment
public InstructionSet.Operator getCompliment()
-
getText
public java.lang.String getText(boolean _invert)
-
isBinary
public boolean isBinary()
-
isUnary
public boolean isUnary()
-
-