Class LocalVariableTypeTableAttribute
java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
org.apache.commons.compress.harmony.unpack200.bytecode.Attribute
org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute
org.apache.commons.compress.harmony.unpack200.bytecode.LocalVariableTypeTableAttribute
Local variable type table.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static CPUTF8private intprivate final int[]private final int[]private final intprivate int[]private final CPUTF8[]private int[]private final CPUTF8[]private final int[]Fields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute
renumberedFields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE -
Constructor Summary
ConstructorsConstructorDescriptionLocalVariableTypeTableAttribute(int localVariableTypeTableLength, int[] startPcs, int[] lengths, CPUTF8[] names, CPUTF8[] signatures, int[] indexes) -
Method Summary
Modifier and TypeMethodDescriptionprotected intGets the length.protected ClassFileEntry[]Returns an empty array.protected int[]Gets the array of indices for the start of line numbers.voidIn Pack200, line number tables are BCI renumbered.protected voidresolve(ClassConstantPool pool) Allows the constant pool entries to resolve their nested entries.static voidsetAttributeName(CPUTF8 cpUTF8Value) voidsetCodeLength(int length) toString()protected voidWrites this body to the given output stream.Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute
hasBCIRenumberingMethods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.Attribute
doWrite, equals, getAttributeName, getLengthIncludingHeader, hashCode, isSourceFileAttributeMethods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
Field Details
-
attributeName
-
localVariableTypeTableLength
private final int localVariableTypeTableLength -
startPcs
private final int[] startPcs -
lengths
private final int[] lengths -
nameIndexes
private int[] nameIndexes -
signatureIndexes
private int[] signatureIndexes -
indexes
private final int[] indexes -
names
-
signatures
-
codeLength
private int codeLength
-
-
Constructor Details
-
LocalVariableTypeTableAttribute
-
-
Method Details
-
setAttributeName
-
getLength
protected int getLength()Description copied from class:AttributeGets the length.- Specified by:
getLengthin classBCIRenumberedAttribute- Returns:
- the length.
-
getNestedClassFileEntries
Description copied from class:ClassFileEntryReturns an empty array.- Overrides:
getNestedClassFileEntriesin classAttribute- Returns:
- an empty array.
-
getStartPCs
protected int[] getStartPCs()Description copied from class:BCIRenumberedAttributeGets the array of indices for the start of line numbers.- Specified by:
getStartPCsin classBCIRenumberedAttribute- Returns:
- the array of indices for the start of line numbers.
-
renumber
Description copied from class:BCIRenumberedAttributeIn 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.- Overrides:
renumberin classBCIRenumberedAttribute- Parameters:
byteCodeOffsets- List of Integer offsets of the byte code array.- Throws:
Pack200Exception- Thrown from a subclass.
-
resolve
Description copied from class:ClassFileEntryAllows the constant pool entries to resolve their nested entries. -
setCodeLength
public void setCodeLength(int length) -
toString
- Specified by:
toStringin classBCIRenumberedAttribute
-
writeBody
Description copied from class:AttributeWrites this body to the given output stream.- Specified by:
writeBodyin classBCIRenumberedAttribute- Parameters:
dos- the output stream.- Throws:
IOException- if an I/O error occurs.
-