| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | setRewrite2Bytes(final int
value to write operand, final int position in array to write. Note that this is absolute position in the array, so one can overwrite the bytecode if one isn't careful. absPosition, final int[] array to write into rewrite)This method writes operand directly into the rewrite array at index position specified. |
| public void | setRewrite4Bytes(final int
value to write operand, final int position in array to write. Note that this is absolute position in the array, so one can overwrite the bytecode if one isn't careful. absPosition, final int[] array to write into rewrite)This method writes operand directly into the rewrite array at index position specified. |
| public void | setRewrite4Bytes(final int
int to set the rewrite bytes to operand, final int[] int[] bytes to rewrite rewrite)Given an int operand, set the rewrite bytes for the next available operand position and the three immediately following it to a highest-byte, mid-high, mid-low, low-byte encoding of the operand. |
| VariableInstructionForm | back to summary |
|---|---|
| public VariableInstructionForm(final int opcode, final String name) | |
| setRewrite2Bytes | back to summary |
|---|---|
| public void setRewrite2Bytes(final int operand, final int absPosition, final int[] rewrite) This method writes operand directly into the rewrite array at index position specified.
| |
| setRewrite4Bytes | back to summary |
|---|---|
| public void setRewrite4Bytes(final int operand, final int absPosition, final int[] rewrite) This method writes operand directly into the rewrite array at index position specified.
| |
| setRewrite4Bytes | back to summary |
|---|---|
| public void setRewrite4Bytes(final int operand, final int[] rewrite) Given an int operand, set the rewrite bytes for the next available operand position and the three immediately following it to a highest-byte, mid-high, mid-low, low-byte encoding of the operand. Note that unlike the ByteCode setOperand* operations, this starts with an actual bytecode rewrite array (rather than a ByteCodeForm prototype rewrite array). Also, this method overwrites -1 values in the rewrite array - so if you start with an array that looks like: {100, -1, -1, -1, -1, 200, -1, -1, -1, -1} then calling setRewrite4Bytes(0, rewrite) the first time will convert it to: {100, 0, 0, 0, 0, 200, -1, -1, -1, -1} Calling setRewrite4Bytes(0, rewrite) a second time will convert it to: {100, 0, 0, 0, 0, 200, 0, 0, 0, 0}
| |