Package com.strobel.reflection.emit
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 a signed byte value.Opcode is followed by a 1-byte index into the constant pool.Opcode is followed by a 2-byte index into the constant pool.Opcode is followed by a 2-byte index into the constant pool, an unsigned byte value.Opcode is followed by a 2-byte index into the constant pool., an unsigned byte value, and a zero byte.Opcode is followed by variable number of operands, depending on the instruction.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 not followed by any operands.Opcode is followed by a signed short value.Opcode is followed by a byte indicating a type.Opcode was not recognized.Wide opcode is followed by a 2-byte index into the constant pool.Wide opcode is followed by a 2-byte index into the constant pool, and a signed short value.Wide opcode is not followed by any operands. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
NoOperands
Opcode is not followed by any operands. -
Type
Opcode is followed by a byte indicating a type. -
Branch
Opcode is followed by a 2-byte branch offset. -
BranchW
Opcode is followed by a 4-byte branch offset. -
Byte
Opcode is followed by a signed byte value. -
CPRef
Opcode is followed by a 1-byte index into the constant pool. -
CPRefWide
Opcode is followed by a 2-byte index into the constant pool. -
CPRefWideUByte
Opcode is followed by a 2-byte index into the constant pool, an unsigned byte value. -
CPRefWideUByteZero
Opcode is followed by a 2-byte index into the constant pool., an unsigned byte value, and a zero byte. -
Dynamic
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. -
LocalByte
Opcode is followed by a 1-byte reference to a local variable, and a signed byte value. -
Short
Opcode is followed by a signed short value. -
WideNoOperands
Wide opcode is not followed by any operands. -
WideCPRefWide
Wide opcode is followed by a 2-byte index into the constant pool. -
WideCPRefWideShort
Wide opcode is followed by a 2-byte index into the constant pool, and a signed short value. -
Unknown
Opcode was not recognized.
-
-
Field Details
-
length
final int length
-
-
Constructor Details
-
OperandType
private OperandType(int length)
-
-
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
-