Class CodeAttribute

java.lang.Object
  |
  +--Attribute
        |
        +--CodeAttribute

public class CodeAttribute
extends Attribute


Field Summary
private  de.dhbwstuttgart.typeinference.Menge attributes
           
private  de.dhbwstuttgart.typeinference.Menge code_Menge
           
private  de.dhbwstuttgart.typeinference.Menge exception_tables
           
private  de.dhbwstuttgart.typeinference.Menge local_name_Menge
           
private  de.dhbwstuttgart.typeinference.Menge local_type_Menge
           
 
Fields inherited from class Attribute
 
Constructor Summary
(package private) CodeAttribute(java.lang.String class_name, short acc_flags)
           
 
Method Summary
 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)
           
private  short calculate_max_stack()
           
 void codegen(ClassFile classfile, java.io.FileOutputStream f)
           
 int get_attributes_length()
           
 de.dhbwstuttgart.typeinference.Menge get_attributes_Menge()
           
 int get_code_length()
           
 de.dhbwstuttgart.typeinference.Menge get_code_Menge()
           
 de.dhbwstuttgart.typeinference.Menge get_exception_table_Menge()
           
 int get_indexOf_Var(java.lang.String name)
           
 de.dhbwstuttgart.typeinference.Menge get_local_Menge()
           
 Type get_TypeOf_Var(java.lang.String name)
           
 void set_attributes_Menge(de.dhbwstuttgart.typeinference.Menge t)
           
 void set_code_short(int s, int i)
           
 void set_code(java.lang.Byte b, int i)
           
 void set_exception_table_Menge(de.dhbwstuttgart.typeinference.Menge t)
           
 
Methods inherited from class Attribute
get_attribute_name_index, set_attribute_name_index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

CodeAttribute

CodeAttribute(java.lang.String class_name,
              short acc_flags)
Method Detail

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