public class CodeAttribute extends Attribute
Constructor and Description |
---|
CodeAttribute(java.lang.String class_name,
short acc_flags) |
Modifier and Type | Method and Description |
---|---|
void |
add_code_byte_array(byte[] b) |
void |
add_code_byte(int b) |
void |
add_code_int(int i) |
void |
add_code_short(int s) |
void |
add_code(java.lang.Byte b) |
void |
add_local(java.lang.String s,
Type t) |
void |
codegen(ClassFile classfile,
java.io.FileOutputStream f) |
int |
get_attributes_length() |
java.util.Vector<Attribute> |
get_attributes_Vector() |
int |
get_code_length() |
java.util.Vector<java.lang.Byte> |
get_code_Vector() |
java.util.Vector<ExceptionTable> |
get_exception_table_Vector() |
int |
get_indexOf_Var(java.lang.String name) |
java.util.Vector<java.lang.String> |
get_local_Vector() |
Type |
get_TypeOf_Var(java.lang.String name) |
void |
set_attributes_Vector(java.util.Vector<Attribute> t) |
void |
set_code_short(int s,
int i) |
void |
set_code(java.lang.Byte b,
int i) |
void |
set_exception_table_Vector(java.util.Vector<ExceptionTable> t) |
get_attribute_name_index, set_attribute_name_index
public java.util.Vector<java.lang.Byte> get_code_Vector()
public java.util.Vector<ExceptionTable> get_exception_table_Vector()
public java.util.Vector<Attribute> get_attributes_Vector()
public java.util.Vector<java.lang.String> get_local_Vector()
public int get_code_length()
public void add_local(java.lang.String s, Type t)
public void add_code(java.lang.Byte b)
public void set_code(java.lang.Byte b, int i)
public void add_code_int(int i)
public void add_code_short(int s)
public void set_code_short(int s, int i)
public void add_code_byte(int b)
public void add_code_byte_array(byte[] b)
public int get_indexOf_Var(java.lang.String name)
public Type get_TypeOf_Var(java.lang.String name) throws JVMCodeException
JVMCodeException
public int get_attributes_length()
get_attributes_length
in class Attribute
public void set_exception_table_Vector(java.util.Vector<ExceptionTable> t)
public void set_attributes_Vector(java.util.Vector<Attribute> t)
public void codegen(ClassFile classfile, java.io.FileOutputStream f) throws JVMCodeException, java.io.IOException
codegen
in class Attribute
JVMCodeException
java.io.IOException