Class OddSpacer
java.lang.Object
com.android.dx.dex.code.DalvInsn
com.android.dx.dex.code.VariableSizeInsn
com.android.dx.dex.code.OddSpacer
Pseudo-instruction which either turns into a
nop or
nothingness, in order to make the subsequent instruction have an
even address. This is used to align (subsequent) instructions that
require it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets the string form for any arguments to this instance.intcodeSize()Gets the size of this instruction, in 16-bit code units.protected StringlistingString0(boolean noteIndices) Helper forDalvInsn.listingString(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.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.voidwriteTo(AnnotatedOutput out) Writes this instance to the given output.Methods inherited from class VariableSizeInsn
withOpcode, withRegisterOffsetMethods inherited from class DalvInsn
cstComment, cstString, expandedPrefix, expandedSuffix, expandedVersion, getAddress, getLowRegVersion, getMinimumRegisterRequirement, getNextAddress, getOpcode, getPosition, getRegisters, hasAddress, hasResult, identifierString, listingString, makeMove, setAddress, toString, withMapper
-
Constructor Details
-
OddSpacer
Constructs an instance. The output address of this instance is initially unknown (-1).- Parameters:
position-non-null;source position
-
-
Method Details
-
codeSize
-
writeTo
Writes this instance to the given output. This method should never annotate the output. -
withRegisters
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.- Specified by:
withRegistersin classDalvInsn- Parameters:
registers-non-null;new register list- Returns:
non-null;an appropriately-constructed instance
-
argString
-
listingString0
Helper forDalvInsn.listingString(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 returnnullif this instance should not appear in a listing.- Specified by:
listingString0in classDalvInsn- Parameters:
noteIndices- whether to include an explicit notation of constant pool indices- Returns:
null-ok;the listing string
-