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