Class MethodHandlesSection


public final class MethodHandlesSection extends UniformItemSection
  • Constructor Details

    • MethodHandlesSection

      public MethodHandlesSection(DexFile dexFile)
  • Method Details

    • get

      public IndexedItem get(Constant cst)
      Description copied from class: UniformItemSection
      Gets the item corresponding to the given Constant. This will throw an exception if the constant is not found, including if this instance isn't the sort that maps constants to IndexedItem instances.
      Specified by:
      get in class UniformItemSection
      Parameters:
      cst - non-null; constant to look for
      Returns:
      non-null; the corresponding item found in this instance
    • orderItems

      protected void orderItems()
      Description copied from class: UniformItemSection
      Alters or picks the order for items in this instance if desired, so that subsequent calls to Section.items() will yield a so-ordered collection. If the items in this instance are indexed, then this method should also assign indices.
      Specified by:
      orderItems in class UniformItemSection
    • items

      public Collection<? extends Item> items()
      Description copied from class: Section
      Gets the collection of all the items in this section. It is not valid to attempt to change the returned list.
      Specified by:
      items in class Section
      Returns:
      non-null; the items
    • intern

      public void intern(CstMethodHandle methodHandle)