Package com.android.dx.dex.code
Class BlockAddresses
java.lang.Object
com.android.dx.dex.code.BlockAddresses
Container for the set of
CodeAddress
instances associated with
the blocks of a particular method. Each block has a corresponding
start address, end address, and last instruction address.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEnd
(int label) Gets the instance for the end (address after the final instruction) of the block with the given label.getEnd
(BasicBlock block) Gets the instance for the end (address after the final instruction) of the given block.getLast
(int label) Gets the instance for the final instruction of the block with the given label.getLast
(BasicBlock block) Gets the instance for the final instruction of the given block.getStart
(int label) Gets the instance for the start of the block with the given label.getStart
(BasicBlock block) Gets the instance for the start of the given block.
-
Constructor Details
-
BlockAddresses
Constructs an instance.- Parameters:
method
-non-null;
the method to have block addresses for
-
-
Method Details
-
getStart
Gets the instance for the start of the given block.- Parameters:
block
-non-null;
the block in question- Returns:
non-null;
the appropriate instance
-
getStart
Gets the instance for the start of the block with the given label.- Parameters:
label
-non-null;
the label of the block in question- Returns:
non-null;
the appropriate instance
-
getLast
Gets the instance for the final instruction of the given block.- Parameters:
block
-non-null;
the block in question- Returns:
non-null;
the appropriate instance
-
getLast
Gets the instance for the final instruction of the block with the given label.- Parameters:
label
-non-null;
the label of the block in question- Returns:
non-null;
the appropriate instance
-
getEnd
Gets the instance for the end (address after the final instruction) of the given block.- Parameters:
block
-non-null;
the block in question- Returns:
non-null;
the appropriate instance
-
getEnd
Gets the instance for the end (address after the final instruction) of the block with the given label.- Parameters:
label
-non-null;
the label of the block in question- Returns:
non-null;
the appropriate instance
-