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_Menge
private de.dhbwstuttgart.typeinference.Menge code_Menge
exception_tables
private de.dhbwstuttgart.typeinference.Menge exception_tables
attributes
private de.dhbwstuttgart.typeinference.Menge attributes
local_name_Menge
private de.dhbwstuttgart.typeinference.Menge local_name_Menge
local_type_Menge
private de.dhbwstuttgart.typeinference.Menge local_type_Menge
CodeAttribute
CodeAttribute(java.lang.String class_name,
short acc_flags)
get_code_Menge
public de.dhbwstuttgart.typeinference.Menge get_code_Menge()
get_exception_table_Menge
public de.dhbwstuttgart.typeinference.Menge get_exception_table_Menge()
get_attributes_Menge
public de.dhbwstuttgart.typeinference.Menge get_attributes_Menge()
get_local_Menge
public de.dhbwstuttgart.typeinference.Menge get_local_Menge()
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_Menge
public void set_exception_table_Menge(de.dhbwstuttgart.typeinference.Menge t)
set_attributes_Menge
public void set_attributes_Menge(de.dhbwstuttgart.typeinference.Menge 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