Interface IDexReferenceManager
public interface IDexReferenceManager
Manager of cross-references for Dex units.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddFieldReference(String fsig, String sourceAddress, DexReferenceType refType) Record a cross-reference to a field.booleanaddMethodReference(String msig, String sourceAddress, DexReferenceType refType) Record a cross-reference to a method.booleanaddStringReference(String value, String sourceAddress, DexReferenceType refType) Record a cross-reference to a string.getReferences(DexPoolType poolType, int index) Retrieve cross-references to an item.getReferences(DexPoolType poolType, int index, int cap) Retrieve cross-references to an item.
-
Method Details
-
getReferences
Retrieve cross-references to an item.- Parameters:
poolType- type of itemindex- item index- Returns:
- reference addresses
-
getReferences
Retrieve cross-references to an item.- Parameters:
poolType- type of itemindex- item indexcap- max number of references to return (leave to 0 to mean return everything possible)- Returns:
- reference addresses
-
addStringReference
Record a cross-reference to a string.- Parameters:
value- referenced string valuesourceAddress- source address of the referencerefType- reference type- Returns:
- true if the reference was recorded
-
addMethodReference
Record a cross-reference to a method.- Parameters:
msig- referenced method signaturesourceAddress- source address of the referencerefType- reference type- Returns:
- true if the reference was recorded
-
addFieldReference
Record a cross-reference to a field.- Parameters:
fsig- referenced field signaturesourceAddress- source address of the referencerefType- reference type- Returns:
- true if the reference was recorded
-