Class Item

java.lang.Object
mockit.asm.constantPool.Item
Direct Known Subclasses:
BootstrapMethodItem, FloatItem, IntItem, LongValueItem, MethodHandleItem, ModuleItem, PackageItem, StringItem, TypeOrMemberItem, UninitializedTypeTableItem

public abstract class Item extends Object
A constant pool item of a given type.
  • Field Details

    • index

      public final @NonNegative int index
      Index of this item in the constant pool.
  • Method Details

    • getType

      public @NonNegative int getType()
      Returns the type of this item.
    • getHashCode

      public final @NonNegative int getHashCode()
      Returns the hashCode value.
    • getNext

      @Nullable public Item getNext()
      Returns the next item, if any.
    • setNext

      public final void setNext(@NonNull Item[] items)