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 |
renumbered
NONE
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) |
hasBCIRenumbering
doWrite, equals, getAttributeName, getLengthIncludingHeader, hashCode, isSourceFileAttribute
objectHashCode, write
public 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 BCIRenumberedAttribute
protected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries
in class Attribute
protected void resolve(ClassConstantPool pool)
ClassFileEntry
public java.lang.String toString()
toString
in class BCIRenumberedAttribute
protected void writeBody(java.io.DataOutputStream dos) throws java.io.IOException
writeBody
in class BCIRenumberedAttribute
java.io.IOException
public void addAttribute(Attribute attribute)
protected int[] getStartPCs()
getStartPCs
in class BCIRenumberedAttribute
public void renumber(java.util.List byteCodeOffsets)
BCIRenumberedAttribute
renumber
in class BCIRenumberedAttribute
byteCodeOffsets
- List of Integer offsets of the bytecode arraypublic static void setAttributeName(CPUTF8 attributeName)