Interface IDexItemToAnchor
public interface IDexItemToAnchor
-
Method Summary
Modifier and TypeMethodDescriptionfrom(ICodeCoordinates itemCoordinates) Convert anICodeCoordinatesto its anchor id.Convert anIDexClassto its anchor id.Convert anIDexFieldto its anchor id.Convert the first instruction of aBasicBlockof anIDexMethodto its anchor id.Convert anIDexMethodto its anchor id.get(long anchorId) Retrieve coordinates for an anchor id.intsize()Same asITextDocument.getAnchorCount()
-
Method Details
-
size
int size()Same asITextDocument.getAnchorCount()- Returns:
- the anchor count
-
fromClass
Convert anIDexClassto its anchor id.- Parameters:
c- dex class.- Returns:
- anchor id. See
IAnchorfor more details.
-
fromField
Convert anIDexFieldto its anchor id.- Parameters:
f- dex field.- Returns:
- anchor id. See
IAnchorfor more details.
-
fromMethod
Convert anIDexMethodto its anchor id.- Parameters:
m- dex method.- Returns:
- anchor id. See
IAnchorfor more details.
-
fromInstruction
Convert the first instruction of aBasicBlockof anIDexMethodto its anchor id.- Parameters:
m- dex method.b- basic block whose first instruction is used- Returns:
- anchor id. See
IAnchorfor more details.
-
from
Convert anICodeCoordinatesto its anchor id.- Parameters:
itemCoordinates- itemICodeCoordinates.- Returns:
- anchor id. See
IAnchorfor more details.
-
get
Retrieve coordinates for an anchor id.- Parameters:
anchorId- anchor id- Returns:
- item coordinates, or null if the anchor id is unknown
-