Package com.strobel.reflection.emit
Enum OperandType
- java.lang.Object
-
- java.lang.Enum<OperandType>
-
- com.strobel.reflection.emit.OperandType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OperandType>
public enum OperandType extends java.lang.Enum<OperandType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.NoOperands
Opcode is not followed by any operands.Short
Opcode is followed by a signed short value.Type
Opcode is followed by a byte indicating a type.Unknown
Opcode was not recognized.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.WideNoOperands
Wide opcode is not followed by any operands.
-
Field Summary
Fields Modifier and Type Field Description (package private) int
length
-
Constructor Summary
Constructors Modifier Constructor Description private
OperandType(int length)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperandType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OperandType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NoOperands
public static final OperandType NoOperands
Opcode is not followed by any operands.
-
Type
public static final OperandType Type
Opcode is followed by a byte indicating a type.
-
Branch
public static final OperandType Branch
Opcode is followed by a 2-byte branch offset.
-
BranchW
public static final OperandType BranchW
Opcode is followed by a 4-byte branch offset.
-
Byte
public static final OperandType Byte
Opcode is followed by a signed byte value.
-
CPRef
public static final OperandType CPRef
Opcode is followed by a 1-byte index into the constant pool.
-
CPRefWide
public static final OperandType CPRefWide
Opcode is followed by a 2-byte index into the constant pool.
-
CPRefWideUByte
public static final OperandType CPRefWideUByte
Opcode is followed by a 2-byte index into the constant pool, an unsigned byte value.
-
CPRefWideUByteZero
public static final OperandType CPRefWideUByteZero
Opcode is followed by a 2-byte index into the constant pool., an unsigned byte value, and a zero byte.
-
Dynamic
public static final OperandType Dynamic
Opcode is followed by variable number of operands, depending on the instruction.
-
Local
public static final OperandType Local
Opcode is followed by a 1-byte reference to a local variable.
-
LocalByte
public static final OperandType LocalByte
Opcode is followed by a 1-byte reference to a local variable, and a signed byte value.
-
Short
public static final OperandType Short
Opcode is followed by a signed short value.
-
WideNoOperands
public static final OperandType WideNoOperands
Wide opcode is not followed by any operands.
-
WideCPRefWide
public static final OperandType WideCPRefWide
Wide opcode is followed by a 2-byte index into the constant pool.
-
WideCPRefWideShort
public static final OperandType WideCPRefWideShort
Wide opcode is followed by a 2-byte index into the constant pool, and a signed short value.
-
Unknown
public static final OperandType Unknown
Opcode was not recognized.
-
-
Method Detail
-
values
public static OperandType[] 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 (OperandType c : OperandType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperandType 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
-
-