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 Summary

    Fields
    Modifier and Type
    Field
    Description
    final @org.checkerframework.checker.index.qual.NonNegative int
    Index of this item in the constant pool.
  • Method Summary

    Modifier and Type
    Method
    Description
    final @org.checkerframework.checker.index.qual.NonNegative int
    Returns the hashCode value.
    Returns the next item, if any.
    @org.checkerframework.checker.index.qual.NonNegative int
    Returns the type of this item.
    final void
    setNext(Item[] items)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • index

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

    • getType

      public @org.checkerframework.checker.index.qual.NonNegative int getType()
      Returns the type of this item.
    • getHashCode

      public final @org.checkerframework.checker.index.qual.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)