Top Description Fields Constructors Methods
org.droidparts.dexmaker.dx.rop.code

public abstract Class CstInsn

extends Insn
Class Inheritance
Known Direct Subclasses
org.droidparts.dexmaker.dx.rop.code.PlainCstInsn, org.droidparts.dexmaker.dx.rop.code.ThrowingCstInsn
Imports
org.droidparts.dexmaker.dx.rop.cst.Constant

Instruction which contains an explicit reference to a constant.

Field Summary

Modifier and TypeField and Description
private final Constant
cst

non-null; the constant

Constructor Summary

AccessConstructor and Description
public
CstInsn(Rop
non-null; the opcode
opcode
,
SourcePosition
non-null; source position
position
,
RegisterSpec
null-ok; spec for the result, if any
result
,
RegisterSpecList
non-null; specs for all the sources
sources
,
Constant
non-null; constant
cst
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public boolean
contentEquals(Insn b)

Overrides org.droidparts.dexmaker.dx.rop.code.Insn.contentEquals.

Compares Insn contents, since Insn.equals() is defined to be an identity compare.
public Constant

Returns:

non-null; the constant
getConstant
()

Gets the constant.

public String
getInlineString()

Overrides org.droidparts.dexmaker.dx.rop.code.Insn.getInlineString.

Gets an "inline" string portion for toHuman(), if available.
Inherited from org.droidparts.dexmaker.dx.rop.code.Insn:
acceptcanThrowcopyequalsgetCatchesgetLocalAssignmentgetOpcodegetPositiongetResultgetSourceshashCodetoHumantoHumanWithInlinetoStringtoStringWithInlinewithAddedCatchwithNewRegisterswithRegisterOffsetwithSourceLiteral

Field Detail

cstback to summary
private final Constant cst

non-null; the constant

Constructor Detail

CstInsnback to summary
public CstInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources, Constant cst)

Constructs an instance.

Parameters
opcode:Rop

non-null; the opcode

position:SourcePosition

non-null; source position

result:RegisterSpec

null-ok; spec for the result, if any

sources:RegisterSpecList

non-null; specs for all the sources

cst:Constant

non-null; constant

Method Detail

contentEqualsback to summary
public boolean contentEquals(Insn b)

Overrides org.droidparts.dexmaker.dx.rop.code.Insn.contentEquals.

Doc from org.droidparts.dexmaker.dx.rop.code.Insn.contentEquals.

Compares Insn contents, since Insn.equals() is defined to be an identity compare. Insn's are contentEquals() if they have the same opcode, registers, source position, and other metadata.

Returns:boolean

true in the case described above

Annotations
@Override
getConstantback to summary
public Constant getConstant()

Gets the constant.

Returns:Constant

non-null; the constant

getInlineStringback to summary
public String getInlineString()

Overrides org.droidparts.dexmaker.dx.rop.code.Insn.getInlineString.

Doc from org.droidparts.dexmaker.dx.rop.code.Insn.getInlineString.

Gets an "inline" string portion for toHuman(), if available. This is the portion that appears after the Rop opcode

Returns:String

null-ok; if non-null, the inline text for toHuman()

Annotations
@Override