public final class CstInsn extends FixedSizeInsn
| Constructor and Description |
|---|
CstInsn(Dop opcode,
SourcePosition position,
RegisterSpecList registers,
Constant constant)
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 constant's class index.
|
Constant |
getConstant()
Gets the constant argument.
|
int |
getIndex()
Gets the constant's index.
|
boolean |
hasClassIndex()
Returns whether the constant's class index has been set for this
instance.
|
boolean |
hasIndex()
Returns whether the constant's index has been set for this instance.
|
void |
setClassIndex(int index)
Sets the constant's class index.
|
void |
setIndex(int index)
Sets the constant's index.
|
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 CstInsn(Dop opcode, SourcePosition position, RegisterSpecList registers, Constant constant)
-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)constant - non-null; constant 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 Constant getConstant()
non-null; the constant argumentpublic int getIndex()
setIndex(int) has been called.>= 0; the constant pool indexpublic boolean hasIndex()
true iff the index has been setsetIndex(int)public void setIndex(int index)
index - index >= 0; the constant pool indexpublic int getClassIndex()
setClassIndex(int) has been called.>= 0; the constant's class's constant pool indexpublic boolean hasClassIndex()
true iff the index has been setsetClassIndex(int)public void setClassIndex(int index)
index - index >= 0; the constant's class's constant pool indexprotected java.lang.String argString()
public java.lang.String cstString()
public java.lang.String cstComment()
cstComment in class DalvInsnCopyright © 2020. All Rights Reserved.