Package com.strobel.assembler.ir
Enum Class OperandType
- All Implemented Interfaces:
Serializable
,Comparable<OperandType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOpcode is followed by a 2-byte branch offset.Opcode is followed by a 4-byte branch offset.Opcode is followed by an unsigned byte.Opcode is followed by a method reference.Opcode is followed by a field reference.Opcode is followed by a signed byte.Opcode is followed by a signed short integer.Opcode is followed by a signed long integer.Opcode is followed by a 1-byte reference to a local variable.Opcode is followed by a 1-byte reference to a local variable and a signed byte value.Opcode is followed by a 2-byte reference to a local variable and a signed short integer.Opcode is followed by a method reference.Opcode is not followed by any operands.Opcode is followed by a primitive type code.Opcode is followed by variable number of operands, depending on the instruction.Opcode is followed by a type reference.Opcode is followed by a type reference and an unsigned byte.Opcode is followed by an unsigned short integer. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
static OperandType
Returns the enum constant of this class with the specified name.static OperandType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
Opcode is not followed by any operands. -
PrimitiveTypeCode
Opcode is followed by a primitive type code. -
TypeReference
Opcode is followed by a type reference. -
TypeReferenceU1
Opcode is followed by a type reference and an unsigned byte. -
DynamicCallSite
Opcode is followed by a method reference. -
MethodReference
Opcode is followed by a method reference. -
FieldReference
Opcode is followed by a field reference. -
BranchTarget
Opcode is followed by a 2-byte branch offset. -
BranchTargetWide
Opcode is followed by a 4-byte branch offset. -
I1
Opcode is followed by a signed byte. -
I2
Opcode is followed by a signed short integer. -
I8
Opcode is followed by a signed long integer. -
Constant
Opcode is followed by an unsigned byte. -
WideConstant
Opcode is followed by an unsigned short integer. -
Switch
Opcode is followed by variable number of operands, depending on the instruction. -
Local
Opcode is followed by a 1-byte reference to a local variable. -
LocalI1
Opcode is followed by a 1-byte reference to a local variable and a signed byte value. -
LocalI2
Opcode is followed by a 2-byte reference to a local variable and a signed short integer.
-
-
Field Details
-
size
private final int size
-
-
Constructor Details
-
OperandType
private OperandType(int size)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getBaseSize
public final int getBaseSize()
-