Class SectionAnnotator

java.lang.Object
org.jf.dexlib2.dexbacked.raw.SectionAnnotator
Direct Known Subclasses:
CodeItem.CodeItemAnnotator

public abstract class SectionAnnotator extends Object
  • Field Details

    • annotator

      @Nonnull public final DexAnnotator annotator
    • dexFile

      @Nonnull public final DexBackedDexFile dexFile
    • itemType

      public final int itemType
    • sectionOffset

      public final int sectionOffset
    • itemCount

      public final int itemCount
    • itemIdentities

      protected Map<Integer,String> itemIdentities
  • Constructor Details

    • SectionAnnotator

      public SectionAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem mapItem)
  • Method Details

    • getItemName

      @Nonnull public abstract String getItemName()
    • annotateItem

      protected abstract void annotateItem(@Nonnull AnnotatedBytes out, int itemIndex, @Nullable String itemIdentity)
    • annotateSection

      public void annotateSection(@Nonnull AnnotatedBytes out)
      Write out annotations for this section
      Parameters:
      out - The AnnotatedBytes object to annotate to
    • getItemOffset

      protected int getItemOffset(int itemIndex, int currentOffset)
    • annotateSectionInner

      protected void annotateSectionInner(@Nonnull AnnotatedBytes out, int itemCount)
    • getItemIdentity

      @Nullable private String getItemIdentity(int itemOffset)
    • setItemIdentity

      public void setItemIdentity(int itemOffset, String identity)
    • getItemAlignment

      public int getItemAlignment()