public class NewAttribute extends BCIRenumberedAttribute
renumberedattributeNameNONE| 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) |
hasBCIRenumberingdoWrite, equals, getAttributeName, getLengthIncludingHeader, hashCode, isSourceFileAttributeobjectHashCode, writepublic NewAttribute(CPUTF8 attributeName, int layoutIndex)
public void addBCIndex(int length, int value)
public void addBCLength(int length, int value)
public void addBCOffset(int length, int value)
public void addInteger(int length, long value)
public int getLayoutIndex()
protected int getLength()
getLength in class BCIRenumberedAttributeprotected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries in class Attributeprotected int[] getStartPCs()
getStartPCs in class BCIRenumberedAttributepublic void renumber(List<Integer> byteCodeOffsets)
BCIRenumberedAttributerenumber in class BCIRenumberedAttributebyteCodeOffsets - List of Integer offsets of the bytecode arrayprotected void resolve(ClassConstantPool pool)
ClassFileEntrypublic String toString()
toString in class BCIRenumberedAttributeprotected void writeBody(DataOutputStream dos) throws IOException
writeBody in class BCIRenumberedAttributeIOExceptionCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.