5rc. See the instruction format spec
for details.
| Modifier and Type | Field and Description |
|---|---|
| public static final InsnFormat | THE_ONE
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | codeSize()
Implements abstract org. |
| public String | insnArgString(DalvInsn
non-null; the instructionImplements abstract org. |
| public String | insnCommentString(DalvInsn
non-null; the instructionwhether to include an explicit notation of
constant pool indices noteIndices)Implements abstract org. |
| public boolean | isCompatible(DalvInsn
non-null; the instruction to checkImplements abstract org. |
| public void | writeTo(AnnotatedOutput
non-null; the output destination to write tonon-null; the instruction to writeImplements abstract org. |
| THE_ONE | back to summary |
|---|---|
| public static final InsnFormat THE_ONE
| |
| Form5rc | back to summary |
|---|---|
| private Form5rc() Constructs an instance. This class is not publicly
instantiable. Use | |
| codeSize | back to summary |
|---|---|
| public int codeSize() Implements abstract org. Doc from org. Gets the code size of instructions that use this format. The size is a number of 16-bit code units, not bytes. This should throw an exception if this format is of variable size.
| |
| insnArgString | back to summary |
|---|---|
| public String insnArgString(DalvInsn insn) Implements abstract org. Doc from org. Returns the string form of the arguments to the given instruction.
The instruction must be of this instance's format. If the instruction
has no arguments, then the result should be Subclasses must override this method. | |
| insnCommentString | back to summary |
|---|---|
| public String insnCommentString(DalvInsn insn, boolean noteIndices) Implements abstract org. Doc from org. Returns the associated comment for the given instruction, if any.
The instruction must be of this instance's format. If the instruction
has no comment, then the result should be Subclasses must override this method. | |
| isCompatible | back to summary |
|---|---|
| public boolean isCompatible(DalvInsn insn) Implements abstract org. Doc from org. Returns whether or not the given instruction's arguments will fit in this instance's format. This includes such things as counting register arguments, checking register ranges, and making sure that additional arguments are of appropriate types and are in-range. If this format has a branch target but the instruction's branch offset is unknown, this method will simply not check the offset. Subclasses must override this method. | |
| writeTo | back to summary |
|---|---|
| public void writeTo(AnnotatedOutput out, DalvInsn insn) Implements abstract org. Doc from org. Writes the code units for the given instruction to the given output destination. The instruction must be of this instance's format. Subclasses must override this method.
| |