Enum BitVectorMath.Operations
- java.lang.Object
-
- java.lang.Enum<BitVectorMath.Operations>
-
- ru.ispras.fortress.data.types.bitvector.BitVectorMath.Operations
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BitVectorMath.Operations>
- Enclosing class:
- BitVectorMath
public static enum BitVectorMath.Operations extends java.lang.Enum<BitVectorMath.Operations>
Provides singleton objects that allow performing operations with bit vectors in a unified way (i.e. polymorphically).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BitVector
execute(BitVector bitVector)
BitVector
execute(BitVector lhs, BitVector rhs)
BitVectorMath.Operands
getOperands()
static BitVectorMath.Operations
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BitVectorMath.Operations[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AND
public static final BitVectorMath.Operations AND
-
OR
public static final BitVectorMath.Operations OR
-
XOR
public static final BitVectorMath.Operations XOR
-
NOT
public static final BitVectorMath.Operations NOT
-
NAND
public static final BitVectorMath.Operations NAND
-
NOR
public static final BitVectorMath.Operations NOR
-
XNOR
public static final BitVectorMath.Operations XNOR
-
SHL
public static final BitVectorMath.Operations SHL
-
USHL
public static final BitVectorMath.Operations USHL
-
LSHR
public static final BitVectorMath.Operations LSHR
-
ASHR
public static final BitVectorMath.Operations ASHR
-
ROTL
public static final BitVectorMath.Operations ROTL
-
ROTR
public static final BitVectorMath.Operations ROTR
-
ADD
public static final BitVectorMath.Operations ADD
-
SUB
public static final BitVectorMath.Operations SUB
-
MUL
public static final BitVectorMath.Operations MUL
-
UDIV
public static final BitVectorMath.Operations UDIV
-
SDIV
public static final BitVectorMath.Operations SDIV
-
UREM
public static final BitVectorMath.Operations UREM
-
SREM
public static final BitVectorMath.Operations SREM
-
SMOD
public static final BitVectorMath.Operations SMOD
-
PLUS
public static final BitVectorMath.Operations PLUS
-
NEG
public static final BitVectorMath.Operations NEG
-
ULE
public static final BitVectorMath.Operations ULE
-
ULT
public static final BitVectorMath.Operations ULT
-
UGE
public static final BitVectorMath.Operations UGE
-
UGT
public static final BitVectorMath.Operations UGT
-
SLE
public static final BitVectorMath.Operations SLE
-
SLT
public static final BitVectorMath.Operations SLT
-
SGE
public static final BitVectorMath.Operations SGE
-
SGT
public static final BitVectorMath.Operations SGT
-
EQ
public static final BitVectorMath.Operations EQ
-
NEQ
public static final BitVectorMath.Operations NEQ
-
ANDR
public static final BitVectorMath.Operations ANDR
-
NANDR
public static final BitVectorMath.Operations NANDR
-
ORR
public static final BitVectorMath.Operations ORR
-
NORR
public static final BitVectorMath.Operations NORR
-
XORR
public static final BitVectorMath.Operations XORR
-
XNORR
public static final BitVectorMath.Operations XNORR
-
-
Method Detail
-
values
public static BitVectorMath.Operations[] 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 (BitVectorMath.Operations c : BitVectorMath.Operations.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BitVectorMath.Operations 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
-
getOperands
public BitVectorMath.Operands getOperands()
-
-