Class CodeAttribute
java.lang.Object
|
+--Attribute
|
+--CodeAttribute
- public class CodeAttribute
- extends Attribute
Constructor Summary |
(package private) |
CodeAttribute(java.lang.String class_name,
short acc_flags)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
code_vector
private java.util.Vector code_vector
exception_tables
private java.util.Vector exception_tables
attributes
private java.util.Vector attributes
local_name_vector
private java.util.Vector local_name_vector
local_type_vector
private java.util.Vector local_type_vector
CodeAttribute
CodeAttribute(java.lang.String class_name,
short acc_flags)
get_code_Vector
public java.util.Vector get_code_Vector()
get_exception_table_Vector
public java.util.Vector get_exception_table_Vector()
get_attributes_Vector
public java.util.Vector get_attributes_Vector()
get_local_Vector
public java.util.Vector get_local_Vector()
get_code_length
public int get_code_length()
add_local
public void add_local(java.lang.String s,
Type t)
add_code
public void add_code(java.lang.Byte b)
set_code
public void set_code(java.lang.Byte b,
int i)
add_code_int
public void add_code_int(int i)
add_code_short
public void add_code_short(int s)
set_code_short
public void set_code_short(int s,
int i)
add_code_byte
public void add_code_byte(int b)
add_code_byte_array
public void add_code_byte_array(byte[] b)
get_indexOf_Var
public int get_indexOf_Var(java.lang.String name)
get_TypeOf_Var
public Type get_TypeOf_Var(java.lang.String name)
throws JVMCodeException
JVMCodeException
get_attributes_length
public int get_attributes_length()
- Specified by:
get_attributes_length
in class Attribute
set_exception_table_Vector
public void set_exception_table_Vector(java.util.Vector t)
set_attributes_Vector
public void set_attributes_Vector(java.util.Vector t)
codegen
public void codegen(ClassFile classfile,
java.io.FileOutputStream f)
throws JVMCodeException
- Specified by:
codegen
in class Attribute
JVMCodeException
calculate_max_stack
private short calculate_max_stack()
throws JVMCodeException
JVMCodeException