CodeCursor.
| Modifier and Type | Field and Description |
|---|---|
| private final AddressMap | baseAddressMap
base address map |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| public final int | baseAddressForCursor()
Implements org. |
| public final int | |
| public final void | setBaseAddress(int targetAddress, int baseAddress)
Implements org. |
| baseAddressMap | back to summary |
|---|---|
| private final AddressMap baseAddressMap base address map | |
| cursor | back to summary |
|---|---|
| private int cursor next index within | |
| BaseCodeCursor | back to summary |
|---|---|
| public BaseCodeCursor() Constructs an instance. | |
| advance | back to summary |
|---|---|
| protected final void advance(int amount) Advance the cursor by the indicated amount. | |
| baseAddressForCursor | back to summary |
|---|---|
| public final int baseAddressForCursor() Implements org. Doc from org. Gets the base address associated with the current cursor. This differs from the cursor value when explicitly set (by {@link #setBaseAddress). This is used, in particular, to convey base addresses to switch data payload instructions, whose relative addresses are relative to the address of a dependant switch instruction. | |
| cursor | back to summary |
|---|---|
| public final int cursor() Implements org. Doc from org. Gets the cursor. The cursor is the offset in code units from the start of the input of the next code unit to be read or written, where the input generally consists of the code for a single method. | |
| setBaseAddress | back to summary |
|---|---|
| public final void setBaseAddress(int targetAddress, int baseAddress) Implements org. Doc from org. Sets the base address for the given target address to be as indicated. | |