public class AttributeCode extends Attribute
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_NAME |
private AttributeMap |
attributes |
private CodeAnalyser |
codeAnalyser |
private int |
codeLength |
private ConstantPool |
cp |
private java.util.List<ExceptionTableEntry> |
exceptionTableEntries |
private int |
length |
private int |
maxLocals |
private int |
maxStack |
private static long |
OFFSET_OF_ATTRIBUTE_LENGTH |
private static long |
OFFSET_OF_MAX_STACK |
private ByteData |
rawData |
Constructor and Description |
---|
AttributeCode(ByteData raw,
ConstantPool cp,
ClassFileVersion classFileVersion) |
Modifier and Type | Method and Description |
---|---|
Op04StructuredStatement |
analyse() |
void |
collectTypeUsages(TypeUsageCollector collector) |
Dumper |
dump(Dumper d) |
AttributeMap |
getAttributes() |
int |
getCodeLength() |
ConstantPool |
getConstantPool() |
java.util.List<ExceptionTableEntry> |
getExceptionTableEntries() |
AttributeLineNumberTable |
getLineNumberTable() |
AttributeLocalVariableTable |
getLocalVariableTable() |
int |
getMaxLocals() |
long |
getRawByteLength() |
ByteData |
getRawData() |
java.lang.String |
getRawName() |
AttributeRuntimeInvisibleTypeAnnotations |
getRuntimeInvisibleTypeAnnotations() |
AttributeRuntimeVisibleTypeAnnotations |
getRuntimeVisibleTypeAnnotations() |
void |
releaseCode() |
void |
setMethod(Method method) |
public static final java.lang.String ATTRIBUTE_NAME
private static final long OFFSET_OF_ATTRIBUTE_LENGTH
private static final long OFFSET_OF_MAX_STACK
private final int length
private final int maxStack
private final int maxLocals
private final int codeLength
private final java.util.List<ExceptionTableEntry> exceptionTableEntries
private final AttributeMap attributes
private final ConstantPool cp
private final ByteData rawData
private final CodeAnalyser codeAnalyser
public AttributeCode(ByteData raw, ConstantPool cp, ClassFileVersion classFileVersion)
public void setMethod(Method method)
public Op04StructuredStatement analyse()
public ConstantPool getConstantPool()
public AttributeLocalVariableTable getLocalVariableTable()
public AttributeLineNumberTable getLineNumberTable()
public AttributeRuntimeVisibleTypeAnnotations getRuntimeVisibleTypeAnnotations()
public AttributeRuntimeInvisibleTypeAnnotations getRuntimeInvisibleTypeAnnotations()
public ByteData getRawData()
public java.util.List<ExceptionTableEntry> getExceptionTableEntries()
public int getMaxLocals()
public int getCodeLength()
public long getRawByteLength()
public java.lang.String getRawName()
public void collectTypeUsages(TypeUsageCollector collector)
collectTypeUsages
in interface TypeUsageCollectable
collectTypeUsages
in class Attribute
public void releaseCode()
public AttributeMap getAttributes()