public class Class extends AClassOrInterface
Modifier and Type | Field and Description |
---|---|
static boolean |
isFirstLocalVarDecl |
UsedId |
superclassid |
Constructor and Description |
---|
Class(java.lang.String name) |
Class(java.lang.String name,
Modifiers mod) |
Class(java.lang.String name,
Modifiers mod,
ClassBody cb,
de.dhbwstuttgart.typeinference.Menge<Type> ct,
de.dhbwstuttgart.typeinference.Menge<UsedId> usedIdsToCheck,
UsedId superclass,
de.dhbwstuttgart.typeinference.Menge<UsedId> superif,
de.dhbwstuttgart.typeinference.Menge<Type> paralist)
Konstruktor, der die Angabe aller Parameter ermoeglicht.
|
Modifier and Type | Method and Description |
---|---|
static void |
addOffsetsToAssumption(CTypeAssumption localAssumption,
Block localBlock,
java.lang.String NameVariable,
boolean isMemberVariable)
Methode f�gt zu einer CTypeAssumption alle
Offsets hinzu, wo die Variable benutzt wird.
|
static void |
addOffsetsToExpression(CTypeAssumption localAssumption,
Expr expression,
java.lang.String NameVariable,
boolean isMemberVariable)
Hilfs-Methode f�r die Offset-Zuweisung
durchsucht eine Expression rekursiv
Author: Thomas Hornberger 07.04.2006 Authos: Arne L�dtke 20.01.2007, Auf Polymorphie umgebaut. |
static boolean |
addOffsetsToStatement(CTypeAssumption localAssumption,
Statement statement,
java.lang.String NameVariable,
boolean isMemberVariable)
Hilfs-Methode f�r die Offset-Zuweisung
durchsucht ein Statement rekursiv
Author: Thomas Hornberger 08.04.2006 Author: Arne L�dtke 20.10.2007, Auf Polymorphie umgebaut. |
void |
codegen(SourceFile sf) |
de.dhbwstuttgart.typeinference.Menge<Type> |
complete_paralist(boolean ext) |
void |
createGenericTypeVars(CTypeReconstructionResult reconstructionResult)
Errechnet die Generischen Parameter der Klasse f�r diese Klasse.
|
boolean |
does_Class_extend() |
Block |
get_class_block() |
ClassBody |
get_ClassBody() |
java.util.Hashtable<java.lang.String,java.lang.String> |
get_ParaHash() |
de.dhbwstuttgart.typeinference.Menge |
get_ParaList() |
java.lang.String |
get_Superclass_Name() |
de.dhbwstuttgart.typeinference.Menge<Type> |
getContainedTypes() |
TypeAssumptions |
getPublicFieldAssumptions()
Ermittelt die Sichtbaren Felder und Methoden der Klasse.
|
java.lang.String |
getSimpleName()
HOTI
Liefert bei Klassen die fullyQualified angegeben wurden
nur den schlussendlichen Bezeichner
p.ex. de.dhbwstuttgart.typeinference.Menge => Menge
|
RefType |
getType()
Erstellt einen RefType, welcher auf diese Klasse verweist
|
java.lang.String |
getTypeInformation(de.dhbwstuttgart.typeinference.Menge<Method> methodList,
de.dhbwstuttgart.typeinference.Menge<Expr> fieldList) |
de.dhbwstuttgart.typeinference.Menge<UsedId> |
getUsedIdsToCheck() |
java.lang.String |
is_member(java.lang.String var) |
void |
para_check(de.dhbwstuttgart.typeinference.Menge<Class> classlist,
boolean ext) |
java.lang.String |
printJavaCode(CTypeReconstructionResult reconstructionResult)
Generiert den JavaCode dieser Klasse im Falle f�r das �bergebene resultSet.
|
void |
sc_check_for_extended_classes(de.dhbwstuttgart.typeinference.Menge<Class> classlist,
java.util.Hashtable<java.lang.String,java.lang.String> childhash,
boolean ext) |
void |
sc_check(de.dhbwstuttgart.typeinference.Menge<Class> classlist,
boolean ext) |
void |
set_class_block(Block block) |
void |
set_ClassBody(ClassBody body) |
void |
set_ParaHash(java.util.Hashtable<java.lang.String,java.lang.String> hash) |
void |
set_ParaList(de.dhbwstuttgart.typeinference.Menge<Type> para) |
void |
set_UsedId(UsedId uid) |
void |
setContainedTypes(de.dhbwstuttgart.typeinference.Menge<Type> containedTypes) |
java.lang.String |
toString()
Author: Martin Pl�micke |
de.dhbwstuttgart.typeinference.Menge<CTypeReconstructionResult> |
TRProg(CSupportData supportData,
TypeAssumptions globalAssumptions)
Ausgangspunkt f�r den Typrekonstruktionsalgorithmus.
|
ConstraintsSet |
TYPE(de.dhbwstuttgart.typeinference.Menge<Method> methodList,
de.dhbwstuttgart.typeinference.Menge<Expr> fielddeclarationList,
TypeAssumptions assumptions) |
void |
wandleRefTypeAttributes2GenericAttributes()
Alle Methoden der Klassen �berpr�fen, ob sie als
RefType deklarierte Attribute haben, die aber GenericTypeVars sind
und ggf. ersetzen
Bsp.:
bei public E elementAt(i){...} wird E vorerst als RefType erkannt
|
getAccessFlags, getModifiers, getName, getPackageName, getSuperInterfaces, setModifiers, setName, setPackageName, setSuperInterfaces
public UsedId superclassid
public static boolean isFirstLocalVarDecl
public Class(java.lang.String name)
public Class(java.lang.String name, Modifiers mod)
public Class(java.lang.String name, Modifiers mod, ClassBody cb, de.dhbwstuttgart.typeinference.Menge<Type> ct, de.dhbwstuttgart.typeinference.Menge<UsedId> usedIdsToCheck, UsedId superclass, de.dhbwstuttgart.typeinference.Menge<UsedId> superif, de.dhbwstuttgart.typeinference.Menge<Type> paralist)
public de.dhbwstuttgart.typeinference.Menge<UsedId> getUsedIdsToCheck()
public void setContainedTypes(de.dhbwstuttgart.typeinference.Menge<Type> containedTypes)
public de.dhbwstuttgart.typeinference.Menge<Type> getContainedTypes()
public void para_check(de.dhbwstuttgart.typeinference.Menge<Class> classlist, boolean ext) throws SCClassException
SCClassException
public de.dhbwstuttgart.typeinference.Menge<Type> complete_paralist(boolean ext)
public void sc_check(de.dhbwstuttgart.typeinference.Menge<Class> classlist, boolean ext) throws SCClassException
SCClassException
public void sc_check_for_extended_classes(de.dhbwstuttgart.typeinference.Menge<Class> classlist, java.util.Hashtable<java.lang.String,java.lang.String> childhash, boolean ext)
public void codegen(SourceFile sf) throws JVMCodeException
codegen
in class AClassOrInterface
JVMCodeException
public void set_UsedId(UsedId uid)
public void set_ClassBody(ClassBody body)
public void set_class_block(Block block)
public java.lang.String is_member(java.lang.String var)
public java.lang.String get_Superclass_Name()
public ClassBody get_ClassBody()
public Block get_class_block()
public boolean does_Class_extend()
public void set_ParaList(de.dhbwstuttgart.typeinference.Menge<Type> para)
public de.dhbwstuttgart.typeinference.Menge get_ParaList()
public void set_ParaHash(java.util.Hashtable<java.lang.String,java.lang.String> hash)
public java.util.Hashtable<java.lang.String,java.lang.String> get_ParaHash()
public de.dhbwstuttgart.typeinference.Menge<CTypeReconstructionResult> TRProg(CSupportData supportData, TypeAssumptions globalAssumptions) throws CTypeReconstructionException
supportData
- globalAssumptions
- CTypeReconstructionException
public ConstraintsSet TYPE(de.dhbwstuttgart.typeinference.Menge<Method> methodList, de.dhbwstuttgart.typeinference.Menge<Expr> fielddeclarationList, TypeAssumptions assumptions)
public java.lang.String toString()
toString
in class java.lang.Object
public void wandleRefTypeAttributes2GenericAttributes()
public static void addOffsetsToAssumption(CTypeAssumption localAssumption, Block localBlock, java.lang.String NameVariable, boolean isMemberVariable)
public static boolean addOffsetsToStatement(CTypeAssumption localAssumption, Statement statement, java.lang.String NameVariable, boolean isMemberVariable)
public static void addOffsetsToExpression(CTypeAssumption localAssumption, Expr expression, java.lang.String NameVariable, boolean isMemberVariable)
public java.lang.String getSimpleName()
public java.lang.String getTypeInformation(de.dhbwstuttgart.typeinference.Menge<Method> methodList, de.dhbwstuttgart.typeinference.Menge<Expr> fieldList)
public java.lang.String printJavaCode(CTypeReconstructionResult reconstructionResult)
public void createGenericTypeVars(CTypeReconstructionResult reconstructionResult)
reconstructionResult
- public RefType getType()
public TypeAssumptions getPublicFieldAssumptions()