Class CodeAttribute
java.lang.Object
org.vesalainen.bcc.AttributeInfo
org.vesalainen.bcc.CodeAttribute
- All Implemented Interfaces:
Writable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<AttributeInfo> private byte[]private ExceptionTable[]private intprivate intFields inherited from class AttributeInfo
attribute_length, attribute_name_index, classFile -
Constructor Summary
ConstructorsConstructorDescriptionCodeAttribute(ClassFile cf, int attribute_name_index, int attribute_length, DataInput in) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddLocalVariables(List<? extends VariableElement> localVariables) private intList<? extends AttributeInfo> byte[]getCode()intintvoidsetCode(byte[] code, ExceptionTable... exception_table) voidsetMax_locals(int max_locals) voidsetMax_stack(int max_stack) voidwrite(DataOutput out) Methods inherited from class AttributeInfo
getAttributeSize, getInstance, isOfType
-
Field Details
-
max_stack
private int max_stack -
max_locals
private int max_locals -
code
private byte[] code -
exception_table
-
attributes
-
-
Constructor Details
-
CodeAttribute
-
CodeAttribute
public CodeAttribute(ClassFile cf, int attribute_name_index, int attribute_length, DataInput in) throws IOException - Throws:
IOException
-
-
Method Details
-
addLocalVariables
-
addLineNumberTable
-
write
- Specified by:
writein interfaceWritable- Overrides:
writein classAttributeInfo- Throws:
IOException
-
getCode
public byte[] getCode() -
setCode
-
getMax_locals
public int getMax_locals() -
setMax_locals
public void setMax_locals(int max_locals) -
getMax_stack
public int getMax_stack() -
setMax_stack
public void setMax_stack(int max_stack) -
getAttributes
-
attributeLength
private int attributeLength()
-