Enum Class OperandType

java.lang.Object
java.lang.Enum<OperandType>
com.strobel.assembler.ir.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 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
    Modifier and Type
    Field
    Description
    private final int
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    final int
     
    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

    • None

      public static final OperandType None
      Opcode is not followed by any operands.
    • PrimitiveTypeCode

      public static final OperandType PrimitiveTypeCode
      Opcode is followed by a primitive type code.
    • TypeReference

      public static final OperandType TypeReference
      Opcode is followed by a type reference.
    • TypeReferenceU1

      public static final OperandType TypeReferenceU1
      Opcode is followed by a type reference and an unsigned byte.
    • DynamicCallSite

      public static final OperandType DynamicCallSite
      Opcode is followed by a method reference.
    • MethodReference

      public static final OperandType MethodReference
      Opcode is followed by a method reference.
    • FieldReference

      public static final OperandType FieldReference
      Opcode is followed by a field reference.
    • BranchTarget

      public static final OperandType BranchTarget
      Opcode is followed by a 2-byte branch offset.
    • BranchTargetWide

      public static final OperandType BranchTargetWide
      Opcode is followed by a 4-byte branch offset.
    • I1

      public static final OperandType I1
      Opcode is followed by a signed byte.
    • I2

      public static final OperandType I2
      Opcode is followed by a signed short integer.
    • I8

      public static final OperandType I8
      Opcode is followed by a signed long integer.
    • Constant

      public static final OperandType Constant
      Opcode is followed by an unsigned byte.
    • WideConstant

      public static final OperandType WideConstant
      Opcode is followed by an unsigned short integer.
    • Switch

      public static final OperandType Switch
      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.
    • LocalI1

      public static final OperandType LocalI1
      Opcode is followed by a 1-byte reference to a local variable and a signed byte value.
    • LocalI2

      public static final OperandType 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

      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
    • getBaseSize

      public final int getBaseSize()