com.android.dx.merge
Class IndexMap

java.lang.Object
  extended by com.android.dx.merge.IndexMap

public final class IndexMap
extends Object

Maps the index offsets from one dex file to those in another. For example, if you have string #5 in the old dex file, its position in the new dex file is strings[5].


Field Summary
 short[] fieldIds
           
 short[] methodIds
           
 short[] protoIds
           
 int[] stringIds
           
 short[] typeIds
           
 
Constructor Summary
IndexMap(com.android.dex.Dex target, com.android.dex.TableOfContents tableOfContents)
           
 
Method Summary
 com.android.dex.Annotation adjust(com.android.dex.Annotation annotation)
           
 com.android.dex.ClassDef adjust(com.android.dex.ClassDef classDef)
           
 com.android.dex.FieldId adjust(com.android.dex.FieldId fieldId)
           
 com.android.dex.MethodId adjust(com.android.dex.MethodId methodId)
           
 com.android.dex.ProtoId adjust(com.android.dex.ProtoId protoId)
           
 com.android.dx.merge.SortableType adjust(com.android.dx.merge.SortableType sortableType)
           
 int adjustAnnotation(int annotationOffset)
           
 int adjustAnnotationDirectory(int annotationDirectoryOffset)
           
 int adjustAnnotationSet(int annotationSetOffset)
           
 int adjustAnnotationSetRefList(int annotationSetRefListOffset)
           
 com.android.dex.EncodedValue adjustEncodedArray(com.android.dex.EncodedValue encodedArray)
           
 com.android.dex.EncodedValue adjustEncodedValue(com.android.dex.EncodedValue encodedValue)
           
 int adjustField(int fieldIndex)
           
 int adjustMethod(int methodIndex)
           
 int adjustProto(int protoIndex)
           
 int adjustStaticValues(int staticValuesOffset)
           
 int adjustString(int stringIndex)
           
 int adjustType(int typeIndex)
           
 com.android.dex.TypeList adjustTypeList(com.android.dex.TypeList typeList)
           
 int adjustTypeListOffset(int typeListOffset)
           
 void putAnnotationDirectoryOffset(int oldOffset, int newOffset)
           
 void putAnnotationOffset(int oldOffset, int newOffset)
           
 void putAnnotationSetOffset(int oldOffset, int newOffset)
           
 void putAnnotationSetRefListOffset(int oldOffset, int newOffset)
           
 void putStaticValuesOffset(int oldOffset, int newOffset)
           
 void putTypeListOffset(int oldOffset, int newOffset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringIds

public final int[] stringIds

typeIds

public final short[] typeIds

protoIds

public final short[] protoIds

fieldIds

public final short[] fieldIds

methodIds

public final short[] methodIds
Constructor Detail

IndexMap

public IndexMap(com.android.dex.Dex target,
                com.android.dex.TableOfContents tableOfContents)
Method Detail

putTypeListOffset

public void putTypeListOffset(int oldOffset,
                              int newOffset)

putAnnotationOffset

public void putAnnotationOffset(int oldOffset,
                                int newOffset)

putAnnotationSetOffset

public void putAnnotationSetOffset(int oldOffset,
                                   int newOffset)

putAnnotationSetRefListOffset

public void putAnnotationSetRefListOffset(int oldOffset,
                                          int newOffset)

putAnnotationDirectoryOffset

public void putAnnotationDirectoryOffset(int oldOffset,
                                         int newOffset)

putStaticValuesOffset

public void putStaticValuesOffset(int oldOffset,
                                  int newOffset)

adjustString

public int adjustString(int stringIndex)

adjustType

public int adjustType(int typeIndex)

adjustTypeList

public com.android.dex.TypeList adjustTypeList(com.android.dex.TypeList typeList)

adjustProto

public int adjustProto(int protoIndex)

adjustField

public int adjustField(int fieldIndex)

adjustMethod

public int adjustMethod(int methodIndex)

adjustTypeListOffset

public int adjustTypeListOffset(int typeListOffset)

adjustAnnotation

public int adjustAnnotation(int annotationOffset)

adjustAnnotationSet

public int adjustAnnotationSet(int annotationSetOffset)

adjustAnnotationSetRefList

public int adjustAnnotationSetRefList(int annotationSetRefListOffset)

adjustAnnotationDirectory

public int adjustAnnotationDirectory(int annotationDirectoryOffset)

adjustStaticValues

public int adjustStaticValues(int staticValuesOffset)

adjust

public com.android.dex.MethodId adjust(com.android.dex.MethodId methodId)

adjust

public com.android.dex.FieldId adjust(com.android.dex.FieldId fieldId)

adjust

public com.android.dex.ProtoId adjust(com.android.dex.ProtoId protoId)

adjust

public com.android.dex.ClassDef adjust(com.android.dex.ClassDef classDef)

adjust

public com.android.dx.merge.SortableType adjust(com.android.dx.merge.SortableType sortableType)

adjustEncodedValue

public com.android.dex.EncodedValue adjustEncodedValue(com.android.dex.EncodedValue encodedValue)

adjustEncodedArray

public com.android.dex.EncodedValue adjustEncodedArray(com.android.dex.EncodedValue encodedArray)

adjust

public com.android.dex.Annotation adjust(com.android.dex.Annotation annotation)


Copyright © 2015. All rights reserved.