Enum Class OperandType

java.lang.Object
java.lang.Enum<OperandType>
com.strobel.reflection.emit.OperandType
All Implemented Interfaces:
Serializable, Comparable<OperandType>, Constable

public enum OperandType extends Enum<OperandType>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Opcode 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
    Modifier and Type
    Field
    Description
    (package private) final int
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    OperandType(int length)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static OperandType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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.
  • Field Details

    • length

      final int length
  • Constructor Details

    • OperandType

      private OperandType(int length)
  • Method Details

    • values

      public static OperandType[] 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

      public static OperandType valueOf(String name)
      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 name
      NullPointerException - if the argument is null