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 |
renumbered
NONE
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) |
hasBCIRenumbering
doWrite, equals, getAttributeName, getLengthIncludingHeader, hashCode, isSourceFileAttribute
objectHashCode, write
public 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)
protected int getLength()
getLength
in class BCIRenumberedAttribute
protected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries
in class Attribute
protected void resolve(ClassConstantPool pool)
ClassFileEntry
public String toString()
toString
in class BCIRenumberedAttribute
protected void writeBody(DataOutputStream dos) throws IOException
writeBody
in class BCIRenumberedAttribute
IOException
public void addAttribute(Attribute attribute)
protected int[] getStartPCs()
getStartPCs
in class BCIRenumberedAttribute
public void renumber(List<Integer> byteCodeOffsets)
BCIRenumberedAttribute
renumber
in class BCIRenumberedAttribute
byteCodeOffsets
- List of Integer offsets of the bytecode arraypublic static void setAttributeName(CPUTF8 attributeName)
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.