public final class Code extends Attribute
Attribute,
CodeException,
LineNumberTable,
LocalVariableTable,
Serialized Formconstant_pool, length, name_index, tag| Constructor and Description |
|---|
Code(int name_index,
int length,
int max_stack,
int max_locals,
byte[] code,
CodeException[] exception_table,
Attribute[] attributes,
ConstantPool constant_pool) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
copy(ConstantPool _constant_pool) |
LocalVariableTable |
getLocalVariableTable() |
void |
setAttributes(Attribute[] attributes) |
void |
setCode(byte[] code) |
void |
setExceptionTable(CodeException[] exception_table) |
String |
toString() |
String |
toString(boolean verbose) |
clone, getName, getTag, readAttributepublic Code(int name_index,
int length,
int max_stack,
int max_locals,
byte[] code,
CodeException[] exception_table,
Attribute[] attributes,
ConstantPool constant_pool)
name_index - Index pointing to the name Codelength - Content length in bytesmax_stack - Maximum size of stackmax_locals - Number of local variablescode - Actual byte codeexception_table - Table of handled exceptionsattributes - Attributes of code: LineNumber or LocalVariableconstant_pool - Array of constantspublic LocalVariableTable getLocalVariableTable()
public final void setAttributes(Attribute[] attributes)
attributes - the attributes to set for this Codepublic final void setCode(byte[] code)
code - byte codepublic final void setExceptionTable(CodeException[] exception_table)
exception_table - exception tablepublic final String toString(boolean verbose)
public final String toString()
public Attribute copy(ConstantPool _constant_pool)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.