|
||||||||||
| 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.LocalStart
public final class LocalStart
Pseudo-instruction which is used to introduce a new local variable. That is, an instance of this class in an instruction stream indicates that starting with the subsequent instruction, the indicated variable is bound.
| Constructor Summary | |
|---|---|
LocalStart(SourcePosition position,
RegisterSpec local)
Constructs an instance. |
|
| Method Summary | |
|---|---|
protected String |
argString()
Gets the string form for any arguments to this instance. |
RegisterSpec |
getLocal()
Gets the register spec representing the local variable introduced by this instance. |
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. |
static String |
localString(RegisterSpec spec)
Returns the local variable listing string for a single register spec. |
DalvInsn |
withMapper(RegisterMapper mapper)
Returns an instance that is just like this one, except that the register list is mapped by using mapper. |
DalvInsn |
withRegisterOffset(int delta)
Returns an instance that is just like this one, except that all register references have been offset by the given delta, and its address is reset. |
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, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocalStart(SourcePosition position,
RegisterSpec local)
-1).
position - non-null; source positionlocal - non-null; register spec representing the local
variable introduced by this instance| Method Detail |
|---|
public static String localString(RegisterSpec spec)
spec - non-null; the spec to convert
non-null; the string formpublic DalvInsn withRegisterOffset(int delta)
withRegisterOffset in class ZeroSizeInsndelta - the amount to offset register references by
non-null; an appropriately-constructed instancepublic DalvInsn withRegisters(RegisterSpecList registers)
withRegisters in class DalvInsnregisters - non-null; new register list
non-null; an appropriately-constructed instancepublic RegisterSpec getLocal()
non-null; the register specprotected 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 DalvInsn withMapper(RegisterMapper mapper)
mapper.
withMapper in class DalvInsnmapper - non-null; used to map registers
non-null; an appropriately-constructed instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||