public class ClassFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
hamaAload0 |
Constructor and Description |
---|
ClassFile()
Default Konstruktor
|
ClassFile(Interface ic,
SourceFile sf)
Konstruktor, um Klasseninfos direkt aus dem Interface zu laden
|
Modifier and Type | Method and Description |
---|---|
void |
add_class(java.lang.String name,
java.lang.String pkgName,
java.lang.String super_name,
short acc_flag)
Fuegt Informationen ueber eine neue Klasse ein.
|
void |
add_classblock_Element(Assign a) |
int |
add_CONSTANT_Class_info(java.lang.String name) |
int |
add_CONSTANT_Integer_info(int i) |
int |
add_CONSTANT_NameAndType_info(java.lang.String name,
java.lang.String param_type) |
int |
add_CONSTANT_String_info(java.lang.String s) |
int |
add_CONSTANT_Utf8_info(java.lang.String name) |
int |
add_field_ref(java.lang.String name,
java.lang.String cl_name,
java.lang.String type) |
void |
add_field(java.lang.String name,
java.lang.String type,
short acc_flag,
Attribute attr) |
void |
add_interface(java.lang.String name,
java.lang.String pkgName,
java.lang.String super_name,
short acc_flag)
Fuegt Informationen ueber ein neues Interface ein.
|
int |
add_method_ref(java.lang.String cl_name,
java.lang.String name,
java.lang.String param_type) |
void |
add_method(java.lang.String name,
java.lang.String param_type,
ParameterList param,
Type type,
Block block,
short acc_flag,
de.dhbwstuttgart.typeinference.Menge paralist,
boolean isAbstract) |
void |
addGenerics(de.dhbwstuttgart.typeinference.Menge<Type> para,
UsedId superClass,
de.dhbwstuttgart.typeinference.Menge<UsedId> superIf)
Fuegt ggf.
|
void |
addSuperInterfaces(de.dhbwstuttgart.typeinference.Menge<UsedId> superif)
Fuegt die erweiterten (bei Interfaces) implementierten (bei Klassen)
Interfaces ein.
|
void |
codegen() |
short |
get_access_flags() |
de.dhbwstuttgart.typeinference.Menge<Attribute> |
get_attributes() |
de.dhbwstuttgart.typeinference.Menge<Assign> |
get_class_block() |
short |
get_constant_pool_element(byte b,
java.lang.String id) |
de.dhbwstuttgart.typeinference.Menge<CPInfo> |
get_constant_pool() |
boolean |
get_constructor_founded() |
de.dhbwstuttgart.typeinference.Menge<FieldInfo> |
get_fields() |
de.dhbwstuttgart.typeinference.Menge<Key> |
get_key_Menge() |
de.dhbwstuttgart.typeinference.Menge<MethodInfo> |
get_methods() |
short |
get_super_class() |
short |
get_this_class() |
short |
getConstantValueID()
Gibt den NameIndex auf die UTF-8 Konstante "ConstantValue" zurueck,
der fuer die Definition von Konstanten benoetigt wird.
|
short |
getSignatureID()
Gibt den NameIndex auf die UTF-8 Konstante "Signature" zurueck,
der fuer die Definition von Konstanten benoetigt wird.
|
void |
set_access_flags(short t) |
void |
set_attributes(de.dhbwstuttgart.typeinference.Menge<Attribute> t) |
void |
set_constant_pool(de.dhbwstuttgart.typeinference.Menge<CPInfo> t) |
void |
set_constructor_founded(boolean t) |
void |
set_fields(de.dhbwstuttgart.typeinference.Menge<FieldInfo> t) |
void |
set_methods(de.dhbwstuttgart.typeinference.Menge<MethodInfo> t) |
void |
set_super_class(short t) |
void |
set_this_class(short t) |
void |
writeByte(java.io.FileOutputStream f,
byte i) |
void |
writeByteArray(java.io.FileOutputStream f,
byte[] b) |
void |
writeInt(java.io.FileOutputStream f,
int i) |
void |
writeShort(java.io.FileOutputStream f,
short i) |
public ClassFile()
public ClassFile(Interface ic, SourceFile sf)
public int add_CONSTANT_Utf8_info(java.lang.String name)
public int add_CONSTANT_Class_info(java.lang.String name)
public int add_CONSTANT_NameAndType_info(java.lang.String name, java.lang.String param_type)
public int add_CONSTANT_Integer_info(int i)
public int add_CONSTANT_String_info(java.lang.String s)
public void add_class(java.lang.String name, java.lang.String pkgName, java.lang.String super_name, short acc_flag)
public void add_interface(java.lang.String name, java.lang.String pkgName, java.lang.String super_name, short acc_flag)
public void addSuperInterfaces(de.dhbwstuttgart.typeinference.Menge<UsedId> superif)
public void addGenerics(de.dhbwstuttgart.typeinference.Menge<Type> para, UsedId superClass, de.dhbwstuttgart.typeinference.Menge<UsedId> superIf)
public void add_method(java.lang.String name, java.lang.String param_type, ParameterList param, Type type, Block block, short acc_flag, de.dhbwstuttgart.typeinference.Menge paralist, boolean isAbstract) throws JVMCodeException
JVMCodeException
public int add_method_ref(java.lang.String cl_name, java.lang.String name, java.lang.String param_type)
public short getConstantValueID()
public short getSignatureID()
public void add_field(java.lang.String name, java.lang.String type, short acc_flag, Attribute attr)
public int add_field_ref(java.lang.String name, java.lang.String cl_name, java.lang.String type) throws JVMCodeException
JVMCodeException
public void set_constant_pool(de.dhbwstuttgart.typeinference.Menge<CPInfo> t)
public void set_access_flags(short t)
public void set_this_class(short t)
public void set_super_class(short t)
public void set_fields(de.dhbwstuttgart.typeinference.Menge<FieldInfo> t)
public void set_methods(de.dhbwstuttgart.typeinference.Menge<MethodInfo> t)
public void set_attributes(de.dhbwstuttgart.typeinference.Menge<Attribute> t)
public void set_constructor_founded(boolean t)
public void add_classblock_Element(Assign a)
public de.dhbwstuttgart.typeinference.Menge<CPInfo> get_constant_pool()
public short get_access_flags()
public short get_this_class()
public short get_super_class()
public de.dhbwstuttgart.typeinference.Menge<FieldInfo> get_fields()
public de.dhbwstuttgart.typeinference.Menge<MethodInfo> get_methods()
public de.dhbwstuttgart.typeinference.Menge<Attribute> get_attributes()
public de.dhbwstuttgart.typeinference.Menge<Key> get_key_Menge()
public boolean get_constructor_founded()
public short get_constant_pool_element(byte b, java.lang.String id)
public de.dhbwstuttgart.typeinference.Menge<Assign> get_class_block()
public void codegen() throws JVMCodeException
JVMCodeException
public void writeInt(java.io.FileOutputStream f, int i) throws java.io.IOException
java.io.IOException
public void writeShort(java.io.FileOutputStream f, short i) throws java.io.IOException
java.io.IOException
public void writeByte(java.io.FileOutputStream f, byte i) throws java.io.IOException
java.io.IOException
public void writeByteArray(java.io.FileOutputStream f, byte[] b) throws java.io.IOException
java.io.IOException