public class CodeAttribute extends BCIRenumberedAttribute
| Modifier and Type | Field and Description |
|---|---|
List<Attribute> |
attributes |
List<Integer> |
byteCodeOffsets |
List<ByteCode> |
byteCodes |
int |
codeLength |
List<ExceptionTableEntry> |
exceptionTable |
int |
maxLocals |
int |
maxStack |
renumberedNONE| Constructor and Description |
|---|
CodeAttribute(int maxStack,
int maxLocals,
byte[] codePacked,
Segment segment,
OperandManager operandManager,
List<ExceptionTableEntry> exceptionTable) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(Attribute attribute) |
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.
|
static void |
setAttributeName(CPUTF8 attributeName) |
String |
toString() |
protected void |
writeBody(DataOutputStream dos) |
hasBCIRenumberingdoWrite, equals, getAttributeName, getLengthIncludingHeader, hashCode, isSourceFileAttributeobjectHashCode, writepublic List<Attribute> attributes
public List<Integer> byteCodeOffsets
public int codeLength
public List<ExceptionTableEntry> exceptionTable
public int maxLocals
public int maxStack
public CodeAttribute(int maxStack, int maxLocals, byte[] codePacked, Segment segment, OperandManager operandManager, List<ExceptionTableEntry> exceptionTable)
public static void setAttributeName(CPUTF8 attributeName)
public void addAttribute(Attribute attribute)
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.