Class NewAttribute
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.NewAttribute
A compressor-defined class file attribute.
-
Field Summary
Fields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute
renumbered
Fields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.Attribute
attributeName
Fields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBCIndex
(int length, int value) void
addBCLength
(int length, int value) void
addBCOffset
(int length, int value) void
addInteger
(int length, long value) void
int
protected int
protected ClassFileEntry[]
protected int[]
void
In Pack200, line number tables are BCI renumbered.protected void
resolve
(ClassConstantPool pool) Allows the constant pool entries to resolve their nested entries.toString()
protected void
Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute
hasBCIRenumbering
Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.Attribute
doWrite, equals, getAttributeName, getLengthIncludingHeader, hashCode, isSourceFileAttribute
Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
Constructor Details
-
NewAttribute
-
-
Method Details
-
addBCIndex
-
addBCLength
-
addBCOffset
-
addInteger
-
addToBody
-
getLayoutIndex
-
getLength
- Specified by:
getLength
in classBCIRenumberedAttribute
-
getNestedClassFileEntries
- Overrides:
getNestedClassFileEntries
in classAttribute
-
getStartPCs
- Specified by:
getStartPCs
in classBCIRenumberedAttribute
-
renumber
Description copied from class:BCIRenumberedAttribute
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.- Overrides:
renumber
in classBCIRenumberedAttribute
- Parameters:
byteCodeOffsets
- List of Integer offsets of the byte code array
-
resolve
Description copied from class:ClassFileEntry
Allows the constant pool entries to resolve their nested entries. -
toString
- Specified by:
toString
in classBCIRenumberedAttribute
-
writeBody
- Specified by:
writeBody
in classBCIRenumberedAttribute
- Throws:
IOException
-