public final class MultiCstInsn extends FixedSizeInsn
| Constructor and Description |
|---|
MultiCstInsn(Dop opcode,
SourcePosition position,
RegisterSpecList registers,
Constant[] constants)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
argString()
Gets the string form for any arguments to this instance.
|
java.lang.String |
cstComment()
Helper which returns the comment form of the associated constants
for inclusion in a human oriented listing dump.
|
java.lang.String |
cstString()
Helper which returns the string form of the associated constants
for inclusion in a human oriented listing dump.
|
int |
getClassIndex()
Gets the class index associated with this instance.
|
Constant |
getConstant(int position)
Gets a constant associated with the instruction.
|
int |
getIndex(int position)
Gets the DEX index of a constant.
|
int |
getNumberOfConstants()
Gets the number of constants associated with instruction.
|
boolean |
hasClassIndex()
Returns whether the class index associated with this instruction has
been set.
|
boolean |
hasIndex(int position)
Returns whether the DEX index of a constant has been set.
|
void |
setClassIndex(int index)
Sets the class index associated with this instruction.
|
void |
setIndex(int position,
int index)
Sets the DEX index of a constant.
|
DalvInsn |
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.
|
DalvInsn |
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.
|
codeSize, listingString0, withRegisterOffset, writeToexpandedPrefix, expandedSuffix, expandedVersion, getAddress, getLowRegVersion, getMinimumRegisterRequirement, getNextAddress, getOpcode, getPosition, getRegisters, hasAddress, hasResult, identifierString, listingString, makeMove, setAddress, toString, withMapperpublic MultiCstInsn(Dop opcode, SourcePosition position, RegisterSpecList registers, Constant[] constants)
-1) as is the constant pool index.opcode - the opcode; one of the constants from Dopsposition - non-null; source positionregisters - non-null; register list, including a
result register if appropriate (that is, registers may be either
ins or outs)constants - non-null; constants argumentpublic DalvInsn withOpcode(Dop opcode)
withOpcode in class DalvInsnopcode - non-null; the new opcodenon-null; an appropriately-constructed instancepublic DalvInsn withRegisters(RegisterSpecList registers)
withRegisters in class DalvInsnregisters - non-null; new register listnon-null; an appropriately-constructed instancepublic int getNumberOfConstants()
public Constant getConstant(int position)
position - the position of the constant to get.non-null; the constant argumentpublic int getIndex(int position)
setIndex(int, int) has been called.position - the position of the constant to get the index for.>= 0; the constant pool indexpublic boolean hasIndex(int position)
position - the position of the constant to test.true if the index has been setsetIndex(int, int)public void setIndex(int position,
int index)
position - the position of the constant to set.index - index >= 0; the constant pool indexpublic int getClassIndex()
setClassIndex(int) has been called.>= 0; the constant pool index of the class.public boolean hasClassIndex()
true if the index has been set, false otherwisesetClassIndex(int)public void setClassIndex(int index)
index - index >= 0; the constant pool index of the classprotected java.lang.String argString()
public java.lang.String cstString()
public java.lang.String cstComment()
cstComment in class DalvInsnCopyright © 2020. All Rights Reserved.