Class NewAttribute
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.NewAttribute
A compressor-defined class file attribute.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static final classprivate static final classprivate static final class -
Field Summary
FieldsFields inherited from class kala.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute
renumberedFields inherited from class kala.compress.harmony.unpack200.bytecode.Attribute
attributeNameFields inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBCIndex(int length, int value) voidaddBCLength(int length, int value) voidaddBCOffset(int length, int value) voidaddInteger(int length, long value) voidintprotected 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.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
-
lengths
-
body
-
pool
-
layoutIndex
private final int layoutIndex
-
-
Constructor Details
-
NewAttribute
-
-
Method Details
-
addBCIndex
public void addBCIndex(int length, int value) -
addBCLength
public void addBCLength(int length, int value) -
addBCOffset
public void addBCOffset(int length, int value) -
addInteger
public void addInteger(int length, long value) -
addToBody
-
getLayoutIndex
public int getLayoutIndex() -
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
-
resolve
Description copied from class:ClassFileEntryAllows the constant pool entries to resolve their nested entries. -
toString
- Specified by:
toStringin classBCIRenumberedAttribute
-
writeBody
- Specified by:
writeBodyin classBCIRenumberedAttribute- Throws:
IOException
-