CodeAddress instances associated with
the blocks of a particular method. Each block has a corresponding
start address, end address, and last instruction address.
| Modifier and Type | Field and Description |
|---|---|
| private final CodeAddress[] | ends
|
| private final CodeAddress[] | lasts
|
| private final CodeAddress[] | starts
|
| Access | Constructor and Description |
|---|---|
| public | BlockAddresses(RopMethod
non-null; the method to have block addresses forConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public CodeAddress | Returns: non-null; the appropriate instancenon-null; the block in questionGets the instance for the end (address after the final instruction) of the given block. |
| public CodeAddress | Returns: non-null; the appropriate instancenon-null; the label of the block in questionGets the instance for the end (address after the final instruction) of the block with the given label. |
| public CodeAddress | Returns: non-null; the appropriate instancenon-null; the block in questionGets the instance for the final instruction of the given block. |
| public CodeAddress | Returns: non-null; the appropriate instancenon-null; the label of the block in questionGets the instance for the final instruction of the block with the given label. |
| public CodeAddress | Returns: non-null; the appropriate instancenon-null; the block in questionGets the instance for the start of the given block. |
| public CodeAddress | Returns: non-null; the appropriate instancenon-null; the label of the block in questionGets the instance for the start of the block with the given label. |
| private void |
| ends | back to summary |
|---|---|
| private final CodeAddress[] ends
| |
| lasts | back to summary |
|---|---|
| private final CodeAddress[] lasts
| |
| starts | back to summary |
|---|---|
| private final CodeAddress[] starts
| |
| BlockAddresses | back to summary |
|---|---|
| public BlockAddresses(RopMethod method) Constructs an instance.
| |
| getEnd | back to summary |
|---|---|
| public CodeAddress getEnd(BasicBlock block) Gets the instance for the end (address after the final instruction) of the given block.
| |
| getEnd | back to summary |
|---|---|
| public CodeAddress getEnd(int label) Gets the instance for the end (address after the final instruction) of the block with the given label.
| |
| getLast | back to summary |
|---|---|
| public CodeAddress getLast(BasicBlock block) Gets the instance for the final instruction of the given block.
| |
| getLast | back to summary |
|---|---|
| public CodeAddress getLast(int label) Gets the instance for the final instruction of the block with the given label.
| |
| getStart | back to summary |
|---|---|
| public CodeAddress getStart(BasicBlock block) Gets the instance for the start of the given block.
| |
| getStart | back to summary |
|---|---|
| public CodeAddress getStart(int label) Gets the instance for the start of the block with the given label.
| |
| setupArrays | back to summary |
|---|---|
| private void setupArrays(RopMethod method) Sets up the address arrays. | |