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

public Class LocalVariableTypeTableAttribute

extends BCIRenumberedAttribute
Class Inheritance
Imports
java.io.DataOutputStream, .IOException, java.util.ArrayList, .Arrays, .List, org.apache.commons.compress.harmony.pack200.Pack200Exception

Local variable type table.

Field Summary

Modifier and TypeField and Description
private static CPUTF8
private int
private final int[]
private final int[]
private final int
private int[]
private final CPUTF8[]
private int[]
private final CPUTF8[]
private final int[]
Inherited from org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute:
renumbered

Constructor Summary

AccessConstructor and Description
public
LocalVariableTypeTableAttribute(final int localVariableTypeTableLength, final int[] startPcs, final int[] lengths, final CPUTF8[] names, final CPUTF8[] signatures, final int[] indexes)

Method Summary

Modifier and TypeMethod and Description
protected int
protected ClassFileEntry[]
protected int[]
public void
renumber(final List<Integer>
List of Integer offsets of the byte code array
byteCodeOffsets
)

Overrides org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute.renumber.

In Pack200, line number tables are BCI renumbered.
protected void
resolve(final ClassConstantPool
TODO
pool
)

Overrides org.apache.commons.compress.harmony.unpack200.bytecode.Attribute.resolve.

Allows the constant pool entries to resolve their nested entries.
public static void
setAttributeName(final CPUTF8 cpUTF8Value)

public void
setCodeLength(final int length)

public String
toString()

Implements abstract org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute.toString.

Returns a string representation of the object.
protected void
Inherited from org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute:
hasBCIRenumbering

Field Detail

attributeNameback to summary
private static CPUTF8 attributeName

Hides org.apache.commons.compress.harmony.unpack200.bytecode.Attribute.attributeName.

codeLengthback to summary
private int codeLength
indexesback to summary
private final int[] indexes
lengthsback to summary
private final int[] lengths
localVariableTypeTableLengthback to summary
private final int localVariableTypeTableLength
nameIndexesback to summary
private int[] nameIndexes
namesback to summary
private final CPUTF8[] names
signatureIndexesback to summary
private int[] signatureIndexes
signaturesback to summary
private final CPUTF8[] signatures
startPcsback to summary
private final int[] startPcs

Constructor Detail

LocalVariableTypeTableAttributeback to summary
public LocalVariableTypeTableAttribute(final int localVariableTypeTableLength, final int[] startPcs, final int[] lengths, final CPUTF8[] names, final CPUTF8[] signatures, final int[] indexes)

Method Detail

getLengthback to summary
protected int getLength()

Implements abstract org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute.getLength.

Annotations
@Override
getNestedClassFileEntriesback to summary
protected ClassFileEntry[] getNestedClassFileEntries()

Overrides org.apache.commons.compress.harmony.unpack200.bytecode.Attribute.getNestedClassFileEntries.

Annotations
@Override
getStartPCsback to summary
protected int[] getStartPCs()

Implements abstract org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute.getStartPCs.

Annotations
@Override
renumberback to summary
public void renumber(final List<Integer> byteCodeOffsets) throws Pack200Exception

Overrides org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute.renumber.

Doc from org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute.renumber.

In Pack200, line number tables are BCI renumbered. This method takes the byteCodeOffsets (which is a List of Integers specifying the offset in the byte code array of each instruction) and updates the start_pcs so that it points to the instruction index itself, not the BCI renumbering of the instruction.

Parameters
byteCodeOffsets:List<Integer>

List of Integer offsets of the byte code array

Annotations
@Override
Exceptions
Pack200Exception:
Thrown from a subclass.
resolveback to summary
protected void resolve(final ClassConstantPool pool)

Overrides org.apache.commons.compress.harmony.unpack200.bytecode.Attribute.resolve.

Doc from org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry.resolve.

Allows the constant pool entries to resolve their nested entries.

Parameters
pool:ClassConstantPool

TODO

Annotations
@Override
setAttributeNameback to summary
public static void setAttributeName(final CPUTF8 cpUTF8Value)
setCodeLengthback to summary
public void setCodeLength(final int length)
toStringback to summary
public String toString()

Implements abstract org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
writeBodyback to summary
protected void writeBody(final DataOutputStream dos) throws IOException

Implements abstract org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute.writeBody.

Annotations
@Override