public abstract class VariableInstructionForm extends ByteCodeForm
byteCodeArray, byteCodesByName, WIDENED| Constructor and Description |
|---|
VariableInstructionForm(int opcode,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
setRewrite2Bytes(int operand,
int absPosition,
int[] rewrite)
This method writes operand directly into the rewrite array at index position specified.
|
void |
setRewrite4Bytes(int operand,
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.
|
void |
setRewrite4Bytes(int operand,
int absPosition,
int[] rewrite)
This method writes operand directly into the rewrite array at index position specified.
|
calculateOperandPosition, firstOperandIndex, fixUpByteCodeTargets, get, getName, getOpcode, getRewrite, getRewriteCopy, hasMultipleByteCodes, hasNoOperand, nestedMustStartClassPool, operandLength, setByteCodeOperands, toStringpublic VariableInstructionForm(int opcode, String name)
public void setRewrite4Bytes(int operand, int[] rewrite)
operand - int to set the rewrite bytes torewrite - int[] bytes to rewritepublic void setRewrite4Bytes(int operand, int absPosition, int[] rewrite)
operand - value to writeabsPosition - 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.rewrite - array to write intopublic void setRewrite2Bytes(int operand, int absPosition, int[] rewrite)
operand - value to writeabsPosition - 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.rewrite - array to write intoCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.