public final class BlockAddresses
extends java.lang.Object
CodeAddress instances associated with
the blocks of a particular method. Each block has a corresponding
start address, end address, and last instruction address.| Constructor and Description |
|---|
BlockAddresses(RopMethod method)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
CodeAddress |
getEnd(BasicBlock block)
Gets the instance for the end (address after the final instruction)
of the given block.
|
CodeAddress |
getEnd(int label)
Gets the instance for the end (address after the final instruction)
of the block with the given label.
|
CodeAddress |
getLast(BasicBlock block)
Gets the instance for the final instruction of the given block.
|
CodeAddress |
getLast(int label)
Gets the instance for the final instruction of the block with
the given label.
|
CodeAddress |
getStart(BasicBlock block)
Gets the instance for the start of the given block.
|
CodeAddress |
getStart(int label)
Gets the instance for the start of the block with the given label.
|
public BlockAddresses(RopMethod method)
method - non-null; the method to have block addresses forpublic CodeAddress getStart(BasicBlock block)
block - non-null; the block in questionnon-null; the appropriate instancepublic CodeAddress getStart(int label)
label - non-null; the label of the block in questionnon-null; the appropriate instancepublic CodeAddress getLast(BasicBlock block)
block - non-null; the block in questionnon-null; the appropriate instancepublic CodeAddress getLast(int label)
label - non-null; the label of the block in questionnon-null; the appropriate instancepublic CodeAddress getEnd(BasicBlock block)
block - non-null; the block in questionnon-null; the appropriate instancepublic CodeAddress getEnd(int label)
label - non-null; the label of the block in questionnon-null; the appropriate instanceCopyright © 2020. All Rights Reserved.