| Modifier and Type | Field and Description |
|---|---|
| private int | classIndex
|
| private final Constant | constant
|
| private int |
| Access | Constructor and Description |
|---|---|
| public | CstInsn(Dop
the opcode; one of the constants from opcode, SourcePosition Dopsnon-null; source positionnon-null; register list, including a
result register if appropriate (that is, registers may be either
ins or outs)non-null; constant argumentConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | argString()
Implements abstract org. |
| public int | Returns: >= 0; the constant's class's constant pool indexGets the constant's class index. |
| public Constant | |
| public int | |
| public boolean | Returns: true iff the index has been setReturns whether the constant's class index has been set for this instance. |
| public boolean | Returns: true iff the index has been setReturns whether the constant's index has been set for this instance. |
| public void | setClassIndex(int
>= 0; the constant's class's constant pool indexSets the constant's class index. |
| public void | |
| public DalvInsn | withOpcode(Dop
non-null; the new opcodeImplements abstract org. |
| public DalvInsn | withRegisters(RegisterSpecList
non-null; new register listImplements abstract org. |
| classIndex | back to summary |
|---|---|
| private int classIndex
| |
| constant | back to summary |
|---|---|
| private final Constant constant
| |
| index | back to summary |
|---|---|
| private int index
| |
| CstInsn | back to summary |
|---|---|
| public CstInsn(Dop opcode, SourcePosition position, RegisterSpecList registers, Constant constant) Constructs an instance. The output address of this instance is
initially unknown (
| |
| argString | back to summary |
|---|---|
| protected String argString() Implements abstract org. Doc from org. Gets the string form for any arguments to this instance. Subclasses must override this. | |
| getClassIndex | back to summary |
|---|---|
| public int getClassIndex() Gets the constant's class index. It is only valid to call this after
| |
| getConstant | back to summary |
|---|---|
| public Constant getConstant() Gets the constant argument.
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() Gets the constant's index. It is only valid to call this after
| |
| hasClassIndex | back to summary |
|---|---|
| public boolean hasClassIndex() Returns whether the constant's class index has been set for this instance.
| |
| hasIndex | back to summary |
|---|---|
| public boolean hasIndex() Returns whether the constant's index has been set for this instance.
| |
| setClassIndex | back to summary |
|---|---|
| public void setClassIndex(int index) Sets the constant's class index. This is the constant pool index for the class referred to by this instance's constant. Only reference constants have a class, so it is only on instances with reference constants that this method should ever be called. It is only valid to call this method once per instance.
| |
| setIndex | back to summary |
|---|---|
| public void setIndex(int index) Sets the constant's index. It is only valid to call this method once per instance.
| |
| withOpcode | back to summary |
|---|---|
| public DalvInsn withOpcode(Dop opcode) Implements abstract org. Doc from org. Returns an instance that is just like this one, except that its opcode is replaced by the one given, and its address is reset. | |
| withRegisters | back to summary |
|---|---|
| public DalvInsn withRegisters(RegisterSpecList registers) Implements abstract org. Doc from org. 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.
| |