Class CallSiteIdsSection


public final class CallSiteIdsSection extends UniformItemSection
A section in the DEX file for call site identifiers.
  • Constructor Details

    • CallSiteIdsSection

      public CallSiteIdsSection(DexFile dexFile)
      Constructs an instance.
      Parameters:
      dexFile - non-null; file that this instance is part of
  • Method Details

    • get

      public IndexedItem get(Constant cst)
      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()
      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()
      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(CstCallSiteRef cstRef)
      Interns a call site into this instance. This method is synchronized as it is called during class file translation which runs concurrently on a per class basis.
      Parameters:
      cstRef -