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 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 int getLayoutIndex()
protected int getLength()
getLength in class BCIRenumberedAttributeprotected void writeBody(DataOutputStream dos) throws IOException
writeBody in class BCIRenumberedAttributeIOExceptionpublic String toString()
toString in class BCIRenumberedAttributepublic 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)
ClassFileEntryprotected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries in class Attributeprotected int[] getStartPCs()
getStartPCs in class BCIRenumberedAttributepublic void renumber(List byteCodeOffsets)
BCIRenumberedAttributerenumber in class BCIRenumberedAttributebyteCodeOffsets - List of Integer offsets of the bytecode arrayCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.