Class LocalVariableTableAttribute
java.lang.Object
kala.compress.harmony.unpack200.bytecode.ClassFileEntry
kala.compress.harmony.unpack200.bytecode.Attribute
kala.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute
kala.compress.harmony.unpack200.bytecode.LocalVariableTableAttribute
Local variable table
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static CPUTF8private intprivate int[]private final CPUTF8[]private final int[]private final int[]private final intprivate int[]private final CPUTF8[]private final int[]Fields inherited from class kala.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute
renumberedFields inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE -
Constructor Summary
ConstructorsConstructorDescriptionLocalVariableTableAttribute(int localVariableTableLength, int[] startPcs, int[] lengths, CPUTF8[] names, CPUTF8[] descriptors, 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 kala.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute
hasBCIRenumberingMethods inherited from class kala.compress.harmony.unpack200.bytecode.Attribute
doWrite, equals, getAttributeName, getLengthIncludingHeader, hashCode, isSourceFileAttributeMethods inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
Field Details
-
attributeName
-
localVariableTableLength
private final int localVariableTableLength -
startPcs
private final int[] startPcs -
lengths
private final int[] lengths -
nameIndexes
private int[] nameIndexes -
descriptorIndexes
private int[] descriptorIndexes -
indexes
private final int[] indexes -
names
-
descriptors
-
codeLength
private int codeLength
-
-
Constructor Details
-
LocalVariableTableAttribute
-
-
Method Details
-
setAttributeName
-
getLength
protected int getLength()- Specified by:
getLengthin classBCIRenumberedAttribute
-
getNestedClassFileEntries
- Overrides:
getNestedClassFileEntriesin classAttribute
-
getStartPCs
protected int[] 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
public void setCodeLength(int length) -
toString
- Specified by:
toStringin classBCIRenumberedAttribute
-
writeBody
- Specified by:
writeBodyin classBCIRenumberedAttribute- Throws:
IOException
-