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
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 intprotected ClassFileEntry[]protected int[]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 voidMethods 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
-
Constructor Details
-
LocalVariableTypeTableAttribute
public LocalVariableTypeTableAttribute(int localVariableTypeTableLength, int[] startPcs, int[] lengths, CPUTF8[] names, CPUTF8[] signatures, int[] indexes)
-
-
Method Details
-
setAttributeName
-
getLength
- Specified by:
getLengthin classBCIRenumberedAttribute
-
getNestedClassFileEntries
- Overrides:
getNestedClassFileEntriesin classAttribute
-
getStartPCs
- Specified by:
getStartPCsin classBCIRenumberedAttribute
-
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
-
toString
- Specified by:
toStringin classBCIRenumberedAttribute
-
writeBody
- Specified by:
writeBodyin classBCIRenumberedAttribute- Throws:
IOException
-