Class IntRefForm
java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.forms.ByteCodeForm
org.apache.commons.compress.harmony.unpack200.bytecode.forms.ReferenceForm
org.apache.commons.compress.harmony.unpack200.bytecode.forms.SingleByteReferenceForm
org.apache.commons.compress.harmony.unpack200.bytecode.forms.IntRefForm
This class implements the byte code form for those bytecodes which have int references (and only int references).
-
Field Summary
Fields inherited from class SingleByteReferenceForm
widenedFields inherited from class ByteCodeForm
byteCodeArray, byteCodesByName, WIDENED -
Constructor Summary
ConstructorsConstructorDescriptionIntRefForm(int opcode, String name, int[] rewrite) Constructs a new instance with the specified opcode, name, operandType and rewrite.IntRefForm(int opcode, String name, int[] rewrite, boolean widened) Constructs a new instance with the specified opcode, name, operandType and rewrite. -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetOffset(OperandManager operandManager) protected intMethods inherited from class SingleByteReferenceForm
nestedMustStartClassPool, setNestedEntriesMethods inherited from class ReferenceForm
setByteCodeOperandsMethods inherited from class ByteCodeForm
calculateOperandPosition, firstOperandIndex, fixUpByteCodeTargets, get, getName, getOpcode, getRewrite, getRewriteCopy, hasMultipleByteCodes, hasNoOperand, operandLength, toString
-
Constructor Details
-
IntRefForm
Constructs a new instance with the specified opcode, name, operandType and rewrite.- Parameters:
opcode- index corresponding to the opcode's value.name- String printable name of the opcode.rewrite- Operand positions (which will later be rewritten in ByteCodes) are indicated by -1.
-
IntRefForm
Constructs a new instance with the specified opcode, name, operandType and rewrite.- Parameters:
opcode- index corresponding to the opcode's value.name- String printable name of the opcode.rewrite- Operand positions (which will later be rewritten in ByteCodes) are indicated by -1.widened- TODO.
-
-
Method Details
-
getOffset
- Specified by:
getOffsetin classSingleByteReferenceForm
-
getPoolID
- Specified by:
getPoolIDin classSingleByteReferenceForm
-