public class NewAttribute extends BCIRenumberedAttribute
renumbered
attributeName
NONE
Constructor and Description |
---|
NewAttribute(CPUTF8 attributeName,
int layoutIndex) |
Modifier and Type | Method and Description |
---|---|
void |
addBCIndex(int length,
int value) |
void |
addBCLength(int length,
int value) |
void |
addBCOffset(int length,
int value) |
void |
addInteger(int length,
long value) |
void |
addToBody(int length,
Object value) |
int |
getLayoutIndex() |
protected int |
getLength() |
protected ClassFileEntry[] |
getNestedClassFileEntries() |
protected int[] |
getStartPCs() |
void |
renumber(List<Integer> byteCodeOffsets)
In Pack200, line number tables are BCI renumbered.
|
protected void |
resolve(ClassConstantPool pool)
Allows the constant pool entries to resolve their nested entries.
|
String |
toString() |
protected void |
writeBody(DataOutputStream dos) |
hasBCIRenumbering
doWrite, equals, getAttributeName, getLengthIncludingHeader, hashCode, isSourceFileAttribute
objectHashCode, write
public NewAttribute(CPUTF8 attributeName, int layoutIndex)
public int getLayoutIndex()
protected int getLength()
getLength
in class BCIRenumberedAttribute
protected void writeBody(DataOutputStream dos) throws IOException
writeBody
in class BCIRenumberedAttribute
IOException
public String toString()
toString
in class BCIRenumberedAttribute
public void addInteger(int length, long value)
public void addBCOffset(int length, int value)
public void addBCIndex(int length, int value)
public void addBCLength(int length, int value)
protected void resolve(ClassConstantPool pool)
ClassFileEntry
protected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries
in class Attribute
protected int[] getStartPCs()
getStartPCs
in class BCIRenumberedAttribute
public void renumber(List<Integer> byteCodeOffsets)
BCIRenumberedAttribute
renumber
in class BCIRenumberedAttribute
byteCodeOffsets
- List of Integer offsets of the bytecode arrayCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.