Top Description Fields Constructors Methods
org.apache.commons.compress.harmony.unpack200.bytecode.forms

public Class NewClassRefForm

extends ClassRefForm
Class Inheritance
Imports
org.apache.commons.compress.harmony.pack200.Pack200Exception, org.apache.commons.compress.harmony.unpack200.SegmentConstantPool, org.apache.commons.compress.harmony.unpack200.bytecode.ByteCode, .CPClass, .ClassFileEntry, .OperandManager

This class is an extension of the ClassRefForm. It has two purposes: 1. To keep track of the last type used in a new() instruction in the current class. 2. To allow the sender to create instances of either a specified class (which then becomes the new class) or the last used new class.

Field Summary

Inherited from org.apache.commons.compress.harmony.unpack200.bytecode.forms.ClassRefForm:
widened

Constructor Summary

AccessConstructor and Description
public
NewClassRefForm(final int opcode, final String name, final int[] rewrite)

Method Summary

Modifier and TypeMethod and Description
public void
setByteCodeOperands(final ByteCode
ByteCode to be updated (!)
byteCode
,
final OperandManager
OperandTable from which to draw info
operandManager
,
final int
Length of bytes (excluding this bytecode) from the beginning of the method. Used in calculating padding for some variable-length bytecodes (such as lookupswitch, tableswitch).
codeLength
)

Overrides org.apache.commons.compress.harmony.unpack200.bytecode.forms.ReferenceForm.setByteCodeOperands.

When passed a byteCode, an OperandTable and a SegmentConstantPool, this method will set the rewrite of the byteCode appropriately.
Inherited from org.apache.commons.compress.harmony.unpack200.bytecode.forms.ClassRefForm:
getOffsetgetPoolIDsetNestedEntries

Constructor Detail

NewClassRefFormback to summary
public NewClassRefForm(final int opcode, final String name, final int[] rewrite)

Method Detail

setByteCodeOperandsback to summary
public void setByteCodeOperands(final ByteCode byteCode, final OperandManager operandManager, final int codeLength)

Overrides org.apache.commons.compress.harmony.unpack200.bytecode.forms.ReferenceForm.setByteCodeOperands.

Doc from org.apache.commons.compress.harmony.unpack200.bytecode.forms.ByteCodeForm.setByteCodeOperands.

When passed a byteCode, an OperandTable and a SegmentConstantPool, this method will set the rewrite of the byteCode appropriately.

Parameters
byteCode:ByteCode

ByteCode to be updated (!)

operandManager:OperandManager

OperandTable from which to draw info

codeLength:int

Length of bytes (excluding this bytecode) from the beginning of the method. Used in calculating padding for some variable-length bytecodes (such as lookupswitch, tableswitch).

Annotations
@Override