Class SimpleInsn
java.lang.Object
com.android.dx.dex.code.DalvInsn
com.android.dx.dex.code.FixedSizeInsn
com.android.dx.dex.code.SimpleInsn
Instruction which has no extra info beyond the basics provided for in
the base class.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleInsn(Dop opcode, SourcePosition position, RegisterSpecList registers) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets the string form for any arguments to this instance.withOpcode(Dop opcode) Returns an instance that is just like this one, except that its opcode is replaced by the one given, and its address is reset.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 FixedSizeInsn
codeSize, listingString0, withRegisterOffset, writeToMethods 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
-
SimpleInsn
Constructs an instance. The output address of this instance is initially unknown (-1).- Parameters:
opcode- the opcode; one of the constants fromDopsposition-non-null;source positionregisters-non-null;register list, including a result register if appropriate (that is, registers may be either ins or outs)
-
-
Method Details
-
withOpcode
Returns an instance that is just like this one, except that its opcode is replaced by the one given, and its address is reset.- Specified by:
withOpcodein classDalvInsn- Parameters:
opcode-non-null;the new opcode- Returns:
non-null;an appropriately-constructed instance
-
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
-