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

public abstract Class VariableSizeInsn

extends DalvInsn
Class Inheritance
Known Direct Subclasses
org.droidparts.dexmaker.dx.dex.code.ArrayData, org.droidparts.dexmaker.dx.dex.code.HighRegisterPrefix, org.droidparts.dexmaker.dx.dex.code.OddSpacer, org.droidparts.dexmaker.dx.dex.code.SwitchData
Imports
org.droidparts.dexmaker.dx.rop.code.RegisterSpecList, .SourcePosition

Pseudo-instruction base class for variable-sized instructions.

Constructor Summary

AccessConstructor and Description
public
VariableSizeInsn(SourcePosition
non-null; source position
position
,
RegisterSpecList
non-null; source registers
registers
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public final 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 final DalvInsn
withRegisterOffset(int
the amount to offset register references by
delta
)

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

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

Constructor Detail

VariableSizeInsnback to summary
public VariableSizeInsn(SourcePosition position, RegisterSpecList registers)

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

Parameters
position:SourcePosition

non-null; source position

registers:RegisterSpecList

non-null; source registers

Method Detail

withOpcodeback to summary
public final 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
withRegisterOffsetback to summary
public final DalvInsn withRegisterOffset(int delta)

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

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

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.

Parameters
delta:int

the amount to offset register references by

Returns:DalvInsn

non-null; an appropriately-constructed instance

Annotations
@Override