Package com.android.dx.merge
Class IndexMap
java.lang.Object
com.android.dx.merge.IndexMap
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
Modifier and TypeFieldDescriptionfinal int[]
final short[]
final short[]
final short[]
final int[]
final short[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadjust
(Annotation annotation) adjust
(CallSiteId callSiteId) adjust
(MethodHandle methodHandle) 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) int
adjustCallSite
(int callSiteIndex) int
adjustEncodedArray
(int encodedArrayAttribute) adjustEncodedArray
(EncodedValue encodedArray) adjustEncodedValue
(EncodedValue encodedValue) int
adjustField
(int fieldIndex) int
adjustMethod
(int methodIndex) int
adjustMethodHandle
(int methodHandleIndex) int
adjustProto
(int protoIndex) int
adjustString
(int stringIndex) int
adjustType
(int typeIndex) adjustTypeList
(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
putEncodedArrayValueOffset
(int oldOffset, int newOffset) void
putTypeListOffset
(int oldOffset, int newOffset)
-
Field Details
-
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 -
callSiteIds
public final int[] callSiteIds -
methodHandleIds
-
-
Constructor Details
-
IndexMap
-
-
Method Details
-
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) -
putEncodedArrayValueOffset
public void putEncodedArrayValueOffset(int oldOffset, int newOffset) -
adjustString
public int adjustString(int stringIndex) -
adjustType
public int adjustType(int typeIndex) -
adjustTypeList
-
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) -
adjustEncodedArray
public int adjustEncodedArray(int encodedArrayAttribute) -
adjustCallSite
public int adjustCallSite(int callSiteIndex) -
adjustMethodHandle
public int adjustMethodHandle(int methodHandleIndex) -
adjust
-
adjust
-
adjust
-
adjust
-
adjust
-
adjust
-
adjust
public com.android.dx.merge.SortableType adjust(com.android.dx.merge.SortableType sortableType) -
adjustEncodedValue
-
adjustEncodedArray
-
adjust
-