Top Description Constructors Methods
org.droidparts.dexmaker.dx.dex.code

public final Class SimpleInsn

extends FixedSizeInsn
Class Inheritance
Imports
org.droidparts.dexmaker.dx.rop.code.RegisterSpecList, .SourcePosition

Instruction which has no extra info beyond the basics provided for in the base class.

Constructor Summary

AccessConstructor and Description
public
SimpleInsn(Dop
the opcode; one of the constants from Dops
opcode
,
SourcePosition
non-null; source position
position
,
RegisterSpecList
non-null; register list, including a result register if appropriate (that is, registers may be either ins or outs)
registers
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
protected String
argString()

Implements abstract org.droidparts.dexmaker.dx.dex.code.DalvInsn.argString.

Gets the string form for any arguments to this instance.
public DalvInsn
withOpcode(Dop
non-null; the new opcode
opcode
)

Implements abstract org.droidparts.dexmaker.dx.dex.code.DalvInsn.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.
public DalvInsn
withRegisters(RegisterSpecList
non-null; new register list
registers
)

Implements abstract org.droidparts.dexmaker.dx.dex.code.DalvInsn.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.
Inherited from org.droidparts.dexmaker.dx.dex.code.FixedSizeInsn:
codeSizelistingString0withRegisterOffsetwriteTo

Constructor Detail

SimpleInsnback to summary
public SimpleInsn(Dop opcode, SourcePosition position, RegisterSpecList registers)

Constructs an instance. The output address of this instance is initially unknown (-1).

Parameters
opcode:Dop

the opcode; one of the constants from Dops

position:SourcePosition

non-null; source position

registers:RegisterSpecList

non-null; register list, including a result register if appropriate (that is, registers may be either ins or outs)

Method Detail

argStringback to summary
protected String argString()

Implements abstract org.droidparts.dexmaker.dx.dex.code.DalvInsn.argString.

Doc from org.droidparts.dexmaker.dx.dex.code.DalvInsn.argString.

Gets the string form for any arguments to this instance. Subclasses must override this.

Returns:String

null-ok; the string version of any arguments or null if there are none

Annotations
@Override
withOpcodeback to summary
public DalvInsn withOpcode(Dop opcode)

Implements abstract org.droidparts.dexmaker.dx.dex.code.DalvInsn.withOpcode.

Doc from org.droidparts.dexmaker.dx.dex.code.DalvInsn.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.

Parameters
opcode:Dop

non-null; the new opcode

Returns:DalvInsn

non-null; an appropriately-constructed instance

Annotations
@Override
withRegistersback to summary
public DalvInsn withRegisters(RegisterSpecList registers)

Implements abstract org.droidparts.dexmaker.dx.dex.code.DalvInsn.withRegisters.

Doc from org.droidparts.dexmaker.dx.dex.code.DalvInsn.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.

Parameters
registers:RegisterSpecList

non-null; new register list

Returns:DalvInsn

non-null; an appropriately-constructed instance

Annotations
@Override