public class CodeAttribute extends BCIRenumberedAttribute
| Modifier and Type | Field and Description |
|---|---|
List |
attributes |
List |
byteCodeOffsets |
List |
byteCodes |
int |
codeLength |
List |
exceptionTable |
int |
maxLocals |
int |
maxStack |
renumberedNONE| Constructor and Description |
|---|
CodeAttribute(int maxStack,
int maxLocals,
byte[] codePacked,
Segment segment,
OperandManager operandManager,
List exceptionTable) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(Attribute attribute) |
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.
|
static void |
setAttributeName(CPUTF8 attributeName) |
String |
toString() |
protected void |
writeBody(DataOutputStream dos) |
hasBCIRenumberingdoWrite, equals, getAttributeName, getLengthIncludingHeader, hashCode, isSourceFileAttributeobjectHashCode, writepublic List attributes
public List byteCodeOffsets
public int codeLength
public List exceptionTable
public int maxLocals
public int maxStack
public CodeAttribute(int maxStack, int maxLocals, byte[] codePacked, Segment segment, OperandManager operandManager, List exceptionTable)
protected int getLength()
getLength in class BCIRenumberedAttributeprotected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries in class Attributeprotected void resolve(ClassConstantPool pool)
ClassFileEntrypublic String toString()
toString in class BCIRenumberedAttributeprotected void writeBody(DataOutputStream dos) throws IOException
writeBody in class BCIRenumberedAttributeIOExceptionpublic void addAttribute(Attribute attribute)
protected int[] getStartPCs()
getStartPCs in class BCIRenumberedAttributepublic void renumber(List byteCodeOffsets)
BCIRenumberedAttributerenumber in class BCIRenumberedAttributebyteCodeOffsets - List of Integer offsets of the bytecode arraypublic static void setAttributeName(CPUTF8 attributeName)
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.