|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.dex.code.DalvInsn
com.android.dx.dex.code.ZeroSizeInsn
com.android.dx.dex.code.CodeAddress
public final class CodeAddress
Pseudo-instruction which is used to track an address within a code array. Instances are used for such things as branch targets and exception handler ranges. Its code size is zero, and so instances do not in general directly wind up in any output (either human-oriented or binary file).
| Constructor Summary | |
|---|---|
CodeAddress(SourcePosition position)
Constructs an instance. |
|
CodeAddress(SourcePosition position,
boolean bindsClosely)
Constructs an instance. |
|
| Method Summary | |
|---|---|
protected String |
argString()
Gets the string form for any arguments to this instance. |
boolean |
getBindsClosely()
Gets whether this address binds closely to the following "real" (non-zero-length) instruction. |
protected String |
listingString0(boolean noteIndices)
Helper for DalvInsn.listingString(java.lang.String, int, boolean), which returns the string
form of this instance suitable for inclusion in a
human-oriented listing dump, not including the instruction
address and without respect for any output formatting. |
DalvInsn |
withRegisters(RegisterSpecList registers)
Returns an instance that is just like this one, except that the register list is replaced by the given one, and its address is reset. |
| Methods inherited from class com.android.dx.dex.code.ZeroSizeInsn |
|---|
codeSize, withOpcode, withRegisterOffset, writeTo |
| Methods inherited from class com.android.dx.dex.code.DalvInsn |
|---|
expandedPrefix, expandedSuffix, expandedVersion, getAddress, getLowRegVersion, getMinimumRegisterRequirement, getNextAddress, getOpcode, getPosition, getRegisters, hasAddress, hasResult, identifierString, listingString, makeMove, setAddress, toString, withMapper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CodeAddress(SourcePosition position)
-1).
position - non-null; source position
public CodeAddress(SourcePosition position,
boolean bindsClosely)
-1).
position - non-null; source positionbindsClosely - if the address should bind closely to the following
real instruction.| Method Detail |
|---|
public final DalvInsn withRegisters(RegisterSpecList registers)
withRegisters in class DalvInsnregisters - non-null; new register list
non-null; an appropriately-constructed instanceprotected String argString()
argString in class DalvInsnnull-ok; the string version of any arguments or
null if there are noneprotected String listingString0(boolean noteIndices)
DalvInsn.listingString(java.lang.String, int, boolean), which returns the string
form of this instance suitable for inclusion in a
human-oriented listing dump, not including the instruction
address and without respect for any output formatting. This
method should return null if this instance should
not appear in a listing.
listingString0 in class DalvInsnnoteIndices - whether to include an explicit notation of
constant pool indices
null-ok; the listing stringpublic boolean getBindsClosely()
CodeAddress will point to the prefix, or to the instruction
itself.
If bindsClosely is true, the address will point to the instruction
itself, otherwise it will point to the prefix (if any)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||