diff --git a/.externalToolBuilders/JavaParserBuilder.launch b/.externalToolBuilders/JavaParserBuilder.launch
index b918f2b1..0db12c07 100755
--- a/.externalToolBuilders/JavaParserBuilder.launch
+++ b/.externalToolBuilders/JavaParserBuilder.launch
@@ -4,10 +4,10 @@
-
+
-
+
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
index be508635..70bbb4df 100755
--- a/.settings/org.eclipse.core.resources.prefs
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -1,5 +1,5 @@
eclipse.preferences.version=1
-encoding//src/mycompiler/mystatement/LambdaExpression.java=UTF-8
-encoding//src/typinferenz/SingleConstraint.java=UTF-8
-encoding//src/typinferenz/UndConstraint.java=UTF-8
+encoding//src/de/dhbwstuttgart/syntaxtree/statement/LambdaExpression.java=UTF-8
+encoding//src/de/dhbwstuttgart/typeinference/SingleConstraint.java=UTF-8
+encoding//src/de/dhbwstuttgart/typeinference/UndConstraint.java=UTF-8
encoding/=ISO-8859-1
diff --git a/bin/.gitignore b/bin/.gitignore
index acd086ea..8fbf1745 100644
--- a/bin/.gitignore
+++ b/bin/.gitignore
@@ -1,8 +1,8 @@
-/myJvmDisassembler
/mycompiler
+/userinterface
+/de
+/myJvmDisassembler
+/bytecode
/parser
/plugindevelopment
/syntaxTree
-/typinferenz
-/userinterface
-/bytecode
diff --git a/src/mycompiler/AClassOrInterface.java b/src/de/dhbwstuttgart/core/AClassOrInterface.java
similarity index 98%
rename from src/mycompiler/AClassOrInterface.java
rename to src/de/dhbwstuttgart/core/AClassOrInterface.java
index 0669be90..12a44d43 100755
--- a/src/mycompiler/AClassOrInterface.java
+++ b/src/de/dhbwstuttgart/core/AClassOrInterface.java
@@ -1,18 +1,20 @@
// ino.module.AClassOrInterface.8526.package
-package mycompiler;
+package de.dhbwstuttgart.core;
// ino.end
// ino.module.AClassOrInterface.8526.import
import java.util.Vector;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.JVMCodeException;
import mycompiler.mymodifier.Modifiers;
import org.apache.log4j.Logger;
// ino.end
+
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+
// ino.class.AClassOrInterface.21186.description type=javadoc
/**
* Superklasse von Class und Interface. Beinhaltet gemeinsame Attribute
diff --git a/src/mycompiler/IItemWithOffset.java b/src/de/dhbwstuttgart/core/IItemWithOffset.java
similarity index 92%
rename from src/mycompiler/IItemWithOffset.java
rename to src/de/dhbwstuttgart/core/IItemWithOffset.java
index e199fd8c..8dc277f9 100755
--- a/src/mycompiler/IItemWithOffset.java
+++ b/src/de/dhbwstuttgart/core/IItemWithOffset.java
@@ -1,5 +1,5 @@
// ino.module.IItemWithOffset.8527.package
-package mycompiler;
+package de.dhbwstuttgart.core;
// ino.end
// ino.class.IItemWithOffset.21249.declaration
diff --git a/src/mycompiler/MyCompiler.java b/src/de/dhbwstuttgart/core/MyCompiler.java
similarity index 96%
rename from src/mycompiler/MyCompiler.java
rename to src/de/dhbwstuttgart/core/MyCompiler.java
index cd6c0368..50002f16 100755
--- a/src/mycompiler/MyCompiler.java
+++ b/src/de/dhbwstuttgart/core/MyCompiler.java
@@ -1,5 +1,5 @@
// ino.module.MyCompiler.8569.package
-package mycompiler;
+package de.dhbwstuttgart.core;
// ino.end
@@ -14,27 +14,8 @@ import java.io.StringReader;
import java.util.Vector;
import mycompiler.mybytecode.ClassFile;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.ClassBody;
-import mycompiler.myclass.DeclId;
-import mycompiler.myclass.FormalParameter;
-import mycompiler.myclass.ImportDeclarations;
-import mycompiler.myclass.Method;
-import mycompiler.myclass.ParameterList;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.myparser.JavaParser;
-import mycompiler.myparser.Scanner;
-import mycompiler.myparser.JavaParser.yyException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.IMatchable;
-import mycompiler.mytype.ITypeContainer;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytypereconstruction.TypeinferenceResultSet;
import org.apache.log4j.Logger;
import org.apache.log4j.xml.DOMConfigurator;
@@ -42,13 +23,31 @@ import org.apache.log4j.xml.DOMConfigurator;
import com.sun.corba.se.spi.orbutil.fsm.Guard.Result;
import com.sun.org.apache.xerces.internal.impl.xs.identity.Field;
-import typinferenz.FunNInterface;
-import typinferenz.ResultSet;
-// ino.end
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.DebugException;
-import typinferenz.exceptions.ParserError;
-import typinferenz.exceptions.TypeinferenceException;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.ClassBody;
+import de.dhbwstuttgart.syntaxtree.FormalParameter;
+import de.dhbwstuttgart.syntaxtree.ImportDeclarations;
+import de.dhbwstuttgart.syntaxtree.Method;
+import de.dhbwstuttgart.syntaxtree.ParameterList;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.IMatchable;
+import de.dhbwstuttgart.syntaxtree.type.ITypeContainer;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.FunNInterface;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeinferenceResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
+import de.dhbwstuttgart.typeinference.exceptions.ParserError;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
+import de.dhbwstuttgart.typeinference.parser.JavaParser;
+import de.dhbwstuttgart.typeinference.parser.Scanner;
+import de.dhbwstuttgart.typeinference.parser.JavaParser.yyException;
diff --git a/src/mycompiler/MyCompilerAPI.java b/src/de/dhbwstuttgart/core/MyCompilerAPI.java
similarity index 93%
rename from src/mycompiler/MyCompilerAPI.java
rename to src/de/dhbwstuttgart/core/MyCompilerAPI.java
index d75cbd4d..b6a72b36 100755
--- a/src/mycompiler/MyCompilerAPI.java
+++ b/src/de/dhbwstuttgart/core/MyCompilerAPI.java
@@ -1,5 +1,5 @@
// ino.module.MyCompilerAPI.8570.package
-package mycompiler;
+package de.dhbwstuttgart.core;
// ino.end
// ino.module.MyCompilerAPI.8570.import
@@ -8,15 +8,14 @@ import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Vector;
-import typinferenz.ResultSet;
-import typinferenz.exceptions.ParserError;
-import typinferenz.exceptions.TypeinferenceException;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeinferenceResultSet;
+import de.dhbwstuttgart.typeinference.exceptions.ParserError;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
+import de.dhbwstuttgart.typeinference.parser.JavaParser;
import mycompiler.mybytecode.ClassFile;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.myparser.JavaParser;
-import mycompiler.mytypereconstruction.TypeinferenceResultSet;
-// ino.end
// ino.class.MyCompilerAPI.21328.description type=javadoc
/**
diff --git a/src/mycompiler/SourceFile.java b/src/de/dhbwstuttgart/core/SourceFile.java
similarity index 97%
rename from src/mycompiler/SourceFile.java
rename to src/de/dhbwstuttgart/core/SourceFile.java
index 1a4f2685..4ebc3d9c 100755
--- a/src/mycompiler/SourceFile.java
+++ b/src/de/dhbwstuttgart/core/SourceFile.java
@@ -1,5 +1,5 @@
// ino.module.SourceFile.8722.package
-package mycompiler;
+package de.dhbwstuttgart.core;
// ino.end
// ino.module.SourceFile.8722.import
@@ -11,14 +11,6 @@ import java.util.Iterator;
import java.util.Vector;
import mycompiler.mybytecode.ClassFile;
-import mycompiler.myclass.BasicAssumptionClass;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.Constructor;
-import mycompiler.myclass.Field;
-import mycompiler.myclass.FieldDeclaration;
-import mycompiler.myclass.FormalParameter;
-import mycompiler.myclass.ImportDeclarations;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCClassException;
@@ -26,16 +18,8 @@ import mycompiler.myexception.SCException;
import mycompiler.myinterface.Interface;
import mycompiler.mymodifier.Modifiers;
import mycompiler.mymodifier.Public;
-import mycompiler.mytype.BooleanType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CIntersectionType;
import mycompiler.mytypereconstruction.CSupportData;
-import mycompiler.mytypereconstruction.TypeinferenceResultSet;
import mycompiler.mytypereconstruction.typeassumption.CInstVarTypeAssumption;
import mycompiler.mytypereconstruction.typeassumption.CMethodTypeAssumption;
import mycompiler.mytypereconstruction.typeassumption.CParaTypeAssumption;
@@ -45,22 +29,41 @@ import mycompiler.mytypereconstruction.unify.Unify;
import org.apache.log4j.Logger;
+import de.dhbwstuttgart.syntaxtree.BasicAssumptionClass;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.Constructor;
+import de.dhbwstuttgart.syntaxtree.Field;
+import de.dhbwstuttgart.syntaxtree.FieldDeclaration;
+import de.dhbwstuttgart.syntaxtree.FormalParameter;
+import de.dhbwstuttgart.syntaxtree.ImportDeclarations;
+import de.dhbwstuttgart.syntaxtree.Method;
+import de.dhbwstuttgart.syntaxtree.ParameterList;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.type.BooleanType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.FunN;
+import de.dhbwstuttgart.typeinference.FunNInterface;
+import de.dhbwstuttgart.typeinference.FunNMethod;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeinferenceResultSet;
+import de.dhbwstuttgart.typeinference.UndConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.ClassAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.MethodAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.ParameterAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import mycompiler.myclass.*;
import mycompiler.*;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import sun.reflect.generics.reflectiveObjects.TypeVariableImpl;
-import typinferenz.ConstraintsSet;
-import typinferenz.FunN;
-import typinferenz.FunNInterface;
-import typinferenz.FunNMethod;
-import typinferenz.ResultSet;
-import typinferenz.UndConstraint;
-import typinferenz.assumptions.ClassAssumption;
-import typinferenz.assumptions.MethodAssumption;
-import typinferenz.assumptions.ParameterAssumption;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.DebugException;
-import typinferenz.exceptions.TypeinferenceException;
@@ -686,7 +689,7 @@ public class SourceFile
}
xConstraints.add(cons);
}
- typinferenzLog.debug("Karthesisches Produkt der Constraints: "+xConstraints);
+ //typinferenzLog.debug("Karthesisches Produkt der Constraints: "+xConstraints);
//////////////////////////////
// Unifizierung der Constraints:
@@ -736,7 +739,7 @@ public class SourceFile
Type t = p.TA1;
//TypeCheck, falls es sich um einen RefType handelt:
if(t!=null && (t instanceof RefType)&&
- !(t instanceof mycompiler.mytype.Void)){
+ !(t instanceof de.dhbwstuttgart.syntaxtree.type.Void)){
Type replaceType = null;
replaceType = globalAssumptions.getTypeFor((RefType)t, null);
if(!(replaceType == null))p.TA1 = replaceType;
@@ -744,7 +747,7 @@ public class SourceFile
t = p.TA2;
//TypeCheck, falls es sich um einen RefType handelt:
if(t!=null && (t instanceof RefType)&&
- !(t instanceof mycompiler.mytype.Void)){
+ !(t instanceof de.dhbwstuttgart.syntaxtree.type.Void)){
Type replaceType = null;
replaceType = globalAssumptions.getTypeFor((RefType)t, null);
if(!(replaceType == null))p.TA2 = replaceType;
@@ -1195,7 +1198,7 @@ public class SourceFile
java.lang.Class[] pt=methods[j].getParameterTypes();
//CMethodTypeAssumption method = new CMethodTypeAssumption(new RefType(className, 0), methodName, returnType, pt.length,MyCompiler.NO_LINENUMBER,MyCompiler.NO_LINENUMBER,new Vector(),null);
- Method method = mycompiler.myclass.Method.createEmptyMethod(methodName, parentClass);
+ Method method = de.dhbwstuttgart.syntaxtree.Method.createEmptyMethod(methodName, parentClass);
method.setType(returnType);
ParameterList parameterList = new ParameterList();
@@ -1230,7 +1233,7 @@ public class SourceFile
constructor.addParaAssumption(new CParaTypeAssumption(className, methodName, constructors[j].getParameterTypes().length,0,paraType, new RefType(paraType,-1), MyCompiler.NO_LINENUMBER,MyCompiler.NO_LINENUMBER,new Vector()));
}
//basicAssumptions.addMethodIntersectionType(new CIntersectionType(constructor));
- Method constructorMethod = mycompiler.myclass.Method.createEmptyMethod(methodName, parentClass);
+ Method constructorMethod = de.dhbwstuttgart.syntaxtree.Method.createEmptyMethod(methodName, parentClass);
constructorMethod.parameterlist = paraList;
parentClass.addField(new Constructor(constructorMethod));
}
diff --git a/src/mycompiler/SyntaxTreeNode.java b/src/de/dhbwstuttgart/core/SyntaxTreeNode.java
similarity index 79%
rename from src/mycompiler/SyntaxTreeNode.java
rename to src/de/dhbwstuttgart/core/SyntaxTreeNode.java
index 53e24e5a..6a947d5b 100644
--- a/src/mycompiler/SyntaxTreeNode.java
+++ b/src/de/dhbwstuttgart/core/SyntaxTreeNode.java
@@ -1,20 +1,20 @@
-package mycompiler;
+package de.dhbwstuttgart.core;
import java.util.Vector;
-import typinferenz.ResultSet;
-import typinferenz.TypeInsertable;
-import typinferenz.exceptions.DebugException;
-import typinferenz.exceptions.TypeinferenceException;
-import typinferenz.typedeployment.GenericTypeInsertPoint;
-import typinferenz.typedeployment.TypeInsertPoint;
-import typinferenz.typedeployment.TypeInsertSet;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.Generic;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.Generic;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
+import de.dhbwstuttgart.typeinference.typedeployment.GenericTypeInsertPoint;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertSet;
public abstract class SyntaxTreeNode{
diff --git a/src/mycompiler/myclass/BasicAssumptionClass.java b/src/de/dhbwstuttgart/syntaxtree/BasicAssumptionClass.java
similarity index 95%
rename from src/mycompiler/myclass/BasicAssumptionClass.java
rename to src/de/dhbwstuttgart/syntaxtree/BasicAssumptionClass.java
index 0e392e65..81c082ef 100755
--- a/src/mycompiler/myclass/BasicAssumptionClass.java
+++ b/src/de/dhbwstuttgart/syntaxtree/BasicAssumptionClass.java
@@ -1,5 +1,5 @@
// ino.module.BasicAssumptionClass.8552.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
// ino.end
// ino.module.BasicAssumptionClass.8552.import
diff --git a/src/mycompiler/myclass/Class.java b/src/de/dhbwstuttgart/syntaxtree/Class.java
similarity index 97%
rename from src/mycompiler/myclass/Class.java
rename to src/de/dhbwstuttgart/syntaxtree/Class.java
index e589045c..82298463 100755
--- a/src/mycompiler/myclass/Class.java
+++ b/src/de/dhbwstuttgart/syntaxtree/Class.java
@@ -1,5 +1,5 @@
// ino.module.Class.8553.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
// ino.end
// ino.module.Class.8553.import
import java.util.ArrayList;
@@ -9,9 +9,6 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.AClassOrInterface;
-import mycompiler.IItemWithOffset;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
@@ -20,18 +17,10 @@ import mycompiler.myexception.SCClassException;
import mycompiler.myexception.SCExcept;
import mycompiler.mymodifier.Modifiers;
import mycompiler.mystatement.*;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.SuperWildcardType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytype.WildcardType;
import mycompiler.mytypereconstruction.CReconstructionTuple;
import mycompiler.mytypereconstruction.CSubstitution;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
-import mycompiler.mytypereconstruction.TypeinferenceResultSet;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
import mycompiler.mytypereconstruction.set.CReconstructionTupleSet;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -46,7 +35,6 @@ import mycompiler.mytypereconstruction.typeassumption.CTypeAssumption;
import mycompiler.mytypereconstruction.typeassumptionkey.CMethodKey;
import mycompiler.mytypereconstruction.unify.FC_TTO;
import mycompiler.mytypereconstruction.unify.Unify;
-import mycompiler.SourceFile;
import org.apache.log4j.Logger;
// ino.end
@@ -70,20 +58,39 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.AClassOrInterface;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.core.SourceFile;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.statement.Block;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.statement.Statement;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.SuperWildcardType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.WildcardType;
+import de.dhbwstuttgart.typeinference.*;
+import de.dhbwstuttgart.typeinference.assumptions.ClassAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.OderConstraint;
-import typinferenz.ResultSet;
-import typinferenz.Typeable;
-import typinferenz.UndConstraint;
-import typinferenz.FunN;
-import typinferenz.assumptions.ClassAssumption;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.DebugException;
-import typinferenz.exceptions.TypeinferenceException;
-import typinferenz.typedeployment.TypeInsertPoint;
-import typinferenz.*;
// ino.class.Class.23010.declaration
@@ -882,7 +889,7 @@ public class Class extends SyntaxTreeNode implements AClassOrInterface, IItemWit
this.typeAssumptions = assumptions; //Diese müssen anschließend nicht wieder generiert werden.
return assumptions;
}
-
+ /*
public ConstraintsSet TYPE(Vector methodList, Vector fielddeclarationList, TypeAssumptions assumptions){
ConstraintsSet ret = new ConstraintsSet();
// Die Felddeklarationen werden zu den Assumptions hinzugefügt und gelten danach für jede Methode.
@@ -897,7 +904,7 @@ public class Class extends SyntaxTreeNode implements AClassOrInterface, IItemWit
}
return ret;
}
-
+ */
// ino.method.clear.23113.defdescription type=javadoc
/**
* Entfernt Annahmen f�r lokale Variablen, die f�r Methodenparameter erzeugt
diff --git a/src/mycompiler/myclass/ClassBody.java b/src/de/dhbwstuttgart/syntaxtree/ClassBody.java
similarity index 97%
rename from src/mycompiler/myclass/ClassBody.java
rename to src/de/dhbwstuttgart/syntaxtree/ClassBody.java
index 12b4f462..230b0c35 100755
--- a/src/mycompiler/myclass/ClassBody.java
+++ b/src/de/dhbwstuttgart/syntaxtree/ClassBody.java
@@ -1,22 +1,27 @@
// ino.module.ClassBody.8554.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
// ino.end
// ino.module.ClassBody.8554.import
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
+
import mycompiler.mybytecode.ClassFile;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCClassBodyException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCMethodException;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
+
import org.apache.log4j.Logger;
// ino.end
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+
+
+
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
diff --git a/src/mycompiler/myclass/ClassHelper.java b/src/de/dhbwstuttgart/syntaxtree/ClassHelper.java
similarity index 90%
rename from src/mycompiler/myclass/ClassHelper.java
rename to src/de/dhbwstuttgart/syntaxtree/ClassHelper.java
index 4a8b0e64..110256b7 100755
--- a/src/mycompiler/myclass/ClassHelper.java
+++ b/src/de/dhbwstuttgart/syntaxtree/ClassHelper.java
@@ -1,13 +1,13 @@
// ino.module.ClassHelper.8555.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
// ino.end
// ino.module.ClassHelper.8555.import
import java.util.Vector;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-// ino.end
+
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
// ino.class.ClassHelper.23206.declaration
public class ClassHelper
diff --git a/src/mycompiler/myclass/Constant.java b/src/de/dhbwstuttgart/syntaxtree/Constant.java
similarity index 93%
rename from src/mycompiler/myclass/Constant.java
rename to src/de/dhbwstuttgart/syntaxtree/Constant.java
index f4936a3e..e58511975 100755
--- a/src/mycompiler/myclass/Constant.java
+++ b/src/de/dhbwstuttgart/syntaxtree/Constant.java
@@ -1,23 +1,23 @@
// ino.module.Constant.8556.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
// ino.end
// ino.module.Constant.8556.import
import java.util.Vector;
+import de.dhbwstuttgart.core.MyCompiler;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.statement.Literal;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
import mycompiler.mybytecode.AttributeInfo;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.MyCompiler;
import mycompiler.myexception.JVMCodeException;
import mycompiler.mymodifier.Modifiers;
-import mycompiler.mystatement.Expr;
-import mycompiler.mystatement.Literal;
-import mycompiler.mytype.Type;
// ino.end
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
diff --git a/src/mycompiler/myclass/Constructor.java b/src/de/dhbwstuttgart/syntaxtree/Constructor.java
similarity index 90%
rename from src/mycompiler/myclass/Constructor.java
rename to src/de/dhbwstuttgart/syntaxtree/Constructor.java
index c978fccd..ac50a5a3 100644
--- a/src/mycompiler/myclass/Constructor.java
+++ b/src/de/dhbwstuttgart/syntaxtree/Constructor.java
@@ -1,24 +1,25 @@
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.statement.Block;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.ConstructorAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.MethodAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import mycompiler.mybytecode.ClassFile;
import mycompiler.myexception.JVMCodeException;
import mycompiler.mymodifier.Modifiers;
-import mycompiler.mystatement.Block;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.SingleConstraint;
-import typinferenz.assumptions.ConstructorAssumption;
-import typinferenz.assumptions.MethodAssumption;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
public class Constructor extends Method {
private Method methode;
diff --git a/src/mycompiler/myclass/ExceptionList.java b/src/de/dhbwstuttgart/syntaxtree/ExceptionList.java
similarity index 87%
rename from src/mycompiler/myclass/ExceptionList.java
rename to src/de/dhbwstuttgart/syntaxtree/ExceptionList.java
index a402ec4e..7e41e64d 100755
--- a/src/mycompiler/myclass/ExceptionList.java
+++ b/src/de/dhbwstuttgart/syntaxtree/ExceptionList.java
@@ -1,10 +1,10 @@
// ino.module.ExceptionList.8559.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
// ino.end
// ino.module.ExceptionList.8559.import
import java.util.Vector;
-import mycompiler.mytype.RefType;
-// ino.end
+
+import de.dhbwstuttgart.syntaxtree.type.RefType;
diff --git a/src/mycompiler/myclass/Field.java b/src/de/dhbwstuttgart/syntaxtree/Field.java
similarity index 83%
rename from src/mycompiler/myclass/Field.java
rename to src/de/dhbwstuttgart/syntaxtree/Field.java
index e612966b..04714d3b 100644
--- a/src/mycompiler/myclass/Field.java
+++ b/src/de/dhbwstuttgart/syntaxtree/Field.java
@@ -1,23 +1,24 @@
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.GenericTypeInsertable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
+import de.dhbwstuttgart.typeinference.Typeable;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
import mycompiler.mybytecode.ClassFile;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
-import typinferenz.ConstraintsSet;
-import typinferenz.GenericTypeInsertable;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.Typeable;
-import typinferenz.TypeInsertable;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.typedeployment.TypeInsertPoint;
public abstract class Field extends SyntaxTreeNode implements TypeInsertable, Typeable, Generic, GenericTypeInsertable{
diff --git a/src/mycompiler/myclass/FieldDeclaration.java b/src/de/dhbwstuttgart/syntaxtree/FieldDeclaration.java
similarity index 86%
rename from src/mycompiler/myclass/FieldDeclaration.java
rename to src/de/dhbwstuttgart/syntaxtree/FieldDeclaration.java
index 91ef8382..fc44782f 100644
--- a/src/mycompiler/myclass/FieldDeclaration.java
+++ b/src/de/dhbwstuttgart/syntaxtree/FieldDeclaration.java
@@ -1,23 +1,24 @@
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
import java.util.Vector;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.OderConstraint;
-import typinferenz.ResultSet;
-import typinferenz.SingleConstraint;
-import typinferenz.assumptions.FieldAssumption;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
-import mycompiler.SyntaxTreeNode;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.OderConstraint;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.FieldAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import mycompiler.mybytecode.ClassFile;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Expr;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
/**
diff --git a/src/mycompiler/myclass/FormalParameter.java b/src/de/dhbwstuttgart/syntaxtree/FormalParameter.java
similarity index 91%
rename from src/mycompiler/myclass/FormalParameter.java
rename to src/de/dhbwstuttgart/syntaxtree/FormalParameter.java
index cef327a5..856aa3b4 100755
--- a/src/mycompiler/myclass/FormalParameter.java
+++ b/src/de/dhbwstuttgart/syntaxtree/FormalParameter.java
@@ -1,15 +1,12 @@
// ino.module.FormalParameter.8561.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
// ino.end
// ino.module.FormalParameter.8561.import
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
import mycompiler.mytypereconstruction.replacementlistener.ITypeReplacementListener;
@@ -29,14 +26,25 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
+import de.dhbwstuttgart.typeinference.Typeable;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertSet;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.Typeable;
-import typinferenz.TypeInsertable;
-import typinferenz.exceptions.TypeinferenceException;
-import typinferenz.typedeployment.TypeInsertPoint;
-import typinferenz.typedeployment.TypeInsertSet;
// ino.class.FormalParameter.23391.declaration
public class FormalParameter extends SyntaxTreeNode implements ITypeReplacementListener, Typeable, TypeInsertable
diff --git a/src/mycompiler/myclass/Generic.java b/src/de/dhbwstuttgart/syntaxtree/Generic.java
similarity index 78%
rename from src/mycompiler/myclass/Generic.java
rename to src/de/dhbwstuttgart/syntaxtree/Generic.java
index 0d2a37d1..0c1f7a5e 100644
--- a/src/mycompiler/myclass/Generic.java
+++ b/src/de/dhbwstuttgart/syntaxtree/Generic.java
@@ -1,9 +1,9 @@
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.mytype.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
/**
* Wird von allen Klassen implementiert, welche generische Parameter halten können. (Class, Method und Field)
diff --git a/src/mycompiler/myclass/GenericDeclarationList.java b/src/de/dhbwstuttgart/syntaxtree/GenericDeclarationList.java
similarity index 74%
rename from src/mycompiler/myclass/GenericDeclarationList.java
rename to src/de/dhbwstuttgart/syntaxtree/GenericDeclarationList.java
index bd9f58f4..45f23959 100644
--- a/src/mycompiler/myclass/GenericDeclarationList.java
+++ b/src/de/dhbwstuttgart/syntaxtree/GenericDeclarationList.java
@@ -1,9 +1,9 @@
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
import java.util.Vector;
-import mycompiler.myparser.GenericVarDeclarationList;
-import mycompiler.mytype.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.typeinference.parser.GenericVarDeclarationList;
/**
diff --git a/src/mycompiler/myclass/ImportDeclarations.java b/src/de/dhbwstuttgart/syntaxtree/ImportDeclarations.java
similarity index 90%
rename from src/mycompiler/myclass/ImportDeclarations.java
rename to src/de/dhbwstuttgart/syntaxtree/ImportDeclarations.java
index 88ac5e1f..15cfad5f 100755
--- a/src/mycompiler/myclass/ImportDeclarations.java
+++ b/src/de/dhbwstuttgart/syntaxtree/ImportDeclarations.java
@@ -1,11 +1,13 @@
// ino.module.ImportDeclarations.8562.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
// ino.end
// ino.module.ImportDeclarations.8562.import
import java.util.Vector;
// ino.end
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+
// ino.class.ImportDeclarations.23434.description type=javadoc
/**
diff --git a/src/mycompiler/myclass/Method.java b/src/de/dhbwstuttgart/syntaxtree/Method.java
similarity index 95%
rename from src/mycompiler/myclass/Method.java
rename to src/de/dhbwstuttgart/syntaxtree/Method.java
index 42ee79f0..2001a1fa 100755
--- a/src/mycompiler/myclass/Method.java
+++ b/src/de/dhbwstuttgart/syntaxtree/Method.java
@@ -1,5 +1,5 @@
// ino.module.Method.8564.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
// ino.end
// ino.module.Method.8564.import
import java.util.Enumeration;
@@ -7,20 +7,11 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.IItemWithOffset;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
-import mycompiler.MyCompiler;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCMethodException;
import mycompiler.myexception.SCStatementException;
import mycompiler.mymodifier.Modifiers;
-import mycompiler.mystatement.Block;
-import mycompiler.mystatement.Return;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
import mycompiler.mytypereconstruction.replacementlistener.ITypeReplacementListener;
import mycompiler.mytypereconstruction.set.CTypeAssumptionSet;
@@ -32,16 +23,26 @@ import mycompiler.mytypereconstruction.typeassumption.CTypeAssumption;
import org.apache.log4j.Logger;
-import typinferenz.JavaCodeResult;
-import typinferenz.SingleConstraint;
-import typinferenz.ConstraintsSet;
-import typinferenz.ResultSet;
-import typinferenz.TypeInsertable;
-import typinferenz.assumptions.MethodAssumption;
-import typinferenz.assumptions.ParameterAssumption;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
-import typinferenz.typedeployment.TypeInsertPoint;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.core.MyCompiler;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.statement.Block;
+import de.dhbwstuttgart.syntaxtree.statement.Return;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
+import de.dhbwstuttgart.typeinference.assumptions.MethodAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.ParameterAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
diff --git a/src/mycompiler/myclass/ParameterList.java b/src/de/dhbwstuttgart/syntaxtree/ParameterList.java
similarity index 95%
rename from src/mycompiler/myclass/ParameterList.java
rename to src/de/dhbwstuttgart/syntaxtree/ParameterList.java
index ee4e75bf..a99333f3 100755
--- a/src/mycompiler/myclass/ParameterList.java
+++ b/src/de/dhbwstuttgart/syntaxtree/ParameterList.java
@@ -1,17 +1,20 @@
// ino.module.ParameterList.8565.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree;
// ino.end
// ino.module.ParameterList.8565.import
import java.util.Vector;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mytype.*;
import java.util.Iterator;
+import de.dhbwstuttgart.syntaxtree.type.BaseType;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+
// ino.end
diff --git a/src/mycompiler/myclass/DeclId.java b/src/de/dhbwstuttgart/syntaxtree/misc/DeclId.java
similarity index 94%
rename from src/mycompiler/myclass/DeclId.java
rename to src/de/dhbwstuttgart/syntaxtree/misc/DeclId.java
index 96ef68ad..c597d297 100755
--- a/src/mycompiler/myclass/DeclId.java
+++ b/src/de/dhbwstuttgart/syntaxtree/misc/DeclId.java
@@ -1,30 +1,37 @@
// ino.module.DeclId.8558.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree.misc;
// ino.end
// ino.module.DeclId.8558.import
import java.util.Vector;
+
import mycompiler.mybytecode.Attribute;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.mybytecode.SignatureInfo;
-import mycompiler.MyCompiler;
import mycompiler.myexception.JVMCodeException;
import mycompiler.mymodifier.Final;
import mycompiler.mymodifier.Modifiers;
-import mycompiler.mystatement.Assign;
-import mycompiler.mystatement.Expr;
-import mycompiler.mystatement.ExprStmt;
-import mycompiler.mystatement.InstVar;
-import mycompiler.mystatement.LocalOrFieldVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
+
import org.apache.log4j.Logger;
// ino.end
+import de.dhbwstuttgart.core.MyCompiler;
+import de.dhbwstuttgart.syntaxtree.Constant;
+import de.dhbwstuttgart.syntaxtree.statement.Assign;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.statement.ExprStmt;
+import de.dhbwstuttgart.syntaxtree.statement.InstVar;
+import de.dhbwstuttgart.syntaxtree.statement.LocalOrFieldVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+
+
+
+
// ino.class.DeclId.23280.declaration
public class DeclId
// ino.end
diff --git a/src/mycompiler/myclass/Status.java b/src/de/dhbwstuttgart/syntaxtree/misc/Status.java
similarity index 95%
rename from src/mycompiler/myclass/Status.java
rename to src/de/dhbwstuttgart/syntaxtree/misc/Status.java
index f2f46c74..ea598693 100755
--- a/src/mycompiler/myclass/Status.java
+++ b/src/de/dhbwstuttgart/syntaxtree/misc/Status.java
@@ -1,5 +1,5 @@
// ino.module.Status.8566.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree.misc;
// ino.end
// ino.module.Status.8566.import
diff --git a/src/mycompiler/myclass/UsedId.java b/src/de/dhbwstuttgart/syntaxtree/misc/UsedId.java
similarity index 96%
rename from src/mycompiler/myclass/UsedId.java
rename to src/de/dhbwstuttgart/syntaxtree/misc/UsedId.java
index b367580e..c8322674 100755
--- a/src/mycompiler/myclass/UsedId.java
+++ b/src/de/dhbwstuttgart/syntaxtree/misc/UsedId.java
@@ -1,17 +1,16 @@
// ino.module.UsedId.8567.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree.misc;
// ino.end
// ino.module.UsedId.8567.import
import java.util.Iterator;
import java.util.Vector;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.exceptions.TypeinferenceException;
-import mycompiler.IItemWithOffset;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.mytype.Type;
-// ino.end
// ino.class.UsedId.23659.declaration
diff --git a/src/mycompiler/myclass/UserDef.java b/src/de/dhbwstuttgart/syntaxtree/misc/UserDef.java
similarity index 81%
rename from src/mycompiler/myclass/UserDef.java
rename to src/de/dhbwstuttgart/syntaxtree/misc/UserDef.java
index 0550e99d..96085afe 100755
--- a/src/mycompiler/myclass/UserDef.java
+++ b/src/de/dhbwstuttgart/syntaxtree/misc/UserDef.java
@@ -1,5 +1,5 @@
// ino.module.UserDef.8568.package
-package mycompiler.myclass;
+package de.dhbwstuttgart.syntaxtree.misc;
// ino.end
// ino.class.UserDef.23741.declaration
public class UserDef extends Status
diff --git a/src/mycompiler/myoperator/AddOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/AddOp.java
similarity index 82%
rename from src/mycompiler/myoperator/AddOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/AddOp.java
index c472c504..fcd93bc9 100755
--- a/src/mycompiler/myoperator/AddOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/AddOp.java
@@ -1,5 +1,5 @@
// ino.module.AddOp.8594.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.AddOp.8594.import
import java.util.HashMap;
@@ -7,20 +7,20 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import typinferenz.ConstraintsSet;
-import typinferenz.SingleConstraint;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.DebugException;
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.type.IntegerType;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-import mycompiler.mytype.IntegerType;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
diff --git a/src/de/dhbwstuttgart/syntaxtree/operator/AndOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/AndOp.java
new file mode 100755
index 00000000..85081d7a
--- /dev/null
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/AndOp.java
@@ -0,0 +1,29 @@
+// ino.module.AndOp.8595.package
+package de.dhbwstuttgart.syntaxtree.operator;
+
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.type.BooleanType;
+import de.dhbwstuttgart.syntaxtree.type.IntegerType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+
+// ino.class.AndOp.24101.declaration
+public class AndOp extends LogOp
+// ino.end
+// ino.class.AndOp.24101.body
+{
+
+ // ino.method.AndOp.24105.definition
+ public AndOp(int offset, int variableLength)
+ // ino.end
+ // ino.method.AndOp.24105.body
+ {
+ super(offset,variableLength);
+ }
+ // ino.end
+
+
+}
+// ino.end
diff --git a/src/mycompiler/myoperator/DivideOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/DivideOp.java
similarity index 88%
rename from src/mycompiler/myoperator/DivideOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/DivideOp.java
index decfa052..1c6fc1df 100755
--- a/src/mycompiler/myoperator/DivideOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/DivideOp.java
@@ -1,15 +1,15 @@
// ino.module.DivideOp.8596.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.DivideOp.8596.import
import java.util.Vector;
+
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-// ino.end
diff --git a/src/mycompiler/myoperator/EqualOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/EqualOp.java
similarity index 90%
rename from src/mycompiler/myoperator/EqualOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/EqualOp.java
index 038a6ab8..059b9435 100755
--- a/src/mycompiler/myoperator/EqualOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/EqualOp.java
@@ -1,19 +1,20 @@
// ino.module.EqualOp.8597.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.EqualOp.8597.import
import java.util.Iterator;
import java.util.Vector;
+
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.statement.Null;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-import mycompiler.mystatement.Null;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
diff --git a/src/mycompiler/myoperator/GreaterEquOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/GreaterEquOp.java
similarity index 91%
rename from src/mycompiler/myoperator/GreaterEquOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/GreaterEquOp.java
index bcd12eb0..d0b9df89 100755
--- a/src/mycompiler/myoperator/GreaterEquOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/GreaterEquOp.java
@@ -1,15 +1,15 @@
// ino.module.GreaterEquOp.8598.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.GreaterEquOp.8598.import
import java.util.Vector;
+
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-// ino.end
diff --git a/src/mycompiler/myoperator/GreaterOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/GreaterOp.java
similarity index 91%
rename from src/mycompiler/myoperator/GreaterOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/GreaterOp.java
index 22f66fae..aa74d16d 100755
--- a/src/mycompiler/myoperator/GreaterOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/GreaterOp.java
@@ -1,15 +1,15 @@
// ino.module.GreaterOp.8599.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.GreaterOp.8599.import
import java.util.Vector;
+
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-// ino.end
diff --git a/src/mycompiler/myoperator/LessEquOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/LessEquOp.java
similarity index 91%
rename from src/mycompiler/myoperator/LessEquOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/LessEquOp.java
index fb1d2853..7fc886e5 100755
--- a/src/mycompiler/myoperator/LessEquOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/LessEquOp.java
@@ -1,15 +1,15 @@
// ino.module.LessEquOp.8600.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.LessEquOp.8600.import
import java.util.Vector;
+
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-// ino.end
diff --git a/src/mycompiler/myoperator/LessOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/LessOp.java
similarity index 91%
rename from src/mycompiler/myoperator/LessOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/LessOp.java
index bce42f97..3e43922b 100755
--- a/src/mycompiler/myoperator/LessOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/LessOp.java
@@ -1,15 +1,15 @@
// ino.module.LessOp.8601.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.LessOp.8601.import
import java.util.Vector;
+
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-// ino.end
diff --git a/src/mycompiler/myoperator/LogOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/LogOp.java
similarity index 92%
rename from src/mycompiler/myoperator/LogOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/LogOp.java
index 13a52c99..98f29871 100755
--- a/src/mycompiler/myoperator/LogOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/LogOp.java
@@ -1,5 +1,5 @@
// ino.module.LogOp.8602.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.LogOp.8602.import
import java.util.HashMap;
@@ -7,24 +7,24 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import typinferenz.ConstraintsSet;
-import typinferenz.SingleConstraint;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.DebugException;
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.statement.NotExpr;
+import de.dhbwstuttgart.syntaxtree.statement.Null;
+import de.dhbwstuttgart.syntaxtree.statement.Statement;
+import de.dhbwstuttgart.syntaxtree.type.BooleanType;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-import mycompiler.mystatement.NotExpr;
-import mycompiler.mystatement.Null;
-import mycompiler.mystatement.Statement;
-import mycompiler.mytype.BooleanType;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
diff --git a/src/mycompiler/myoperator/MinusOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/MinusOp.java
similarity index 88%
rename from src/mycompiler/myoperator/MinusOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/MinusOp.java
index e240db97..c4c4560b 100755
--- a/src/mycompiler/myoperator/MinusOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/MinusOp.java
@@ -1,15 +1,15 @@
// ino.module.MinusOp.8603.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.MinusOp.8603.import
import java.util.Vector;
+
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-// ino.end
diff --git a/src/mycompiler/myoperator/ModuloOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/ModuloOp.java
similarity index 88%
rename from src/mycompiler/myoperator/ModuloOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/ModuloOp.java
index 44245b63..5e92239d 100755
--- a/src/mycompiler/myoperator/ModuloOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/ModuloOp.java
@@ -1,15 +1,15 @@
// ino.module.ModuloOp.8604.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.ModuloOp.8604.import
import java.util.Vector;
+
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-// ino.end
diff --git a/src/mycompiler/myoperator/MulOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/MulOp.java
similarity index 82%
rename from src/mycompiler/myoperator/MulOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/MulOp.java
index 40d160f3..23fb3c3e 100755
--- a/src/mycompiler/myoperator/MulOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/MulOp.java
@@ -1,5 +1,5 @@
// ino.module.MulOp.8605.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.MulOp.8605.import
@@ -8,13 +8,13 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.DebugException;
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
import mycompiler.myexception.CTypeReconstructionException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
diff --git a/src/mycompiler/myoperator/NotEqualOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/NotEqualOp.java
similarity index 90%
rename from src/mycompiler/myoperator/NotEqualOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/NotEqualOp.java
index 00789190..9d566ba5 100755
--- a/src/mycompiler/myoperator/NotEqualOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/NotEqualOp.java
@@ -1,19 +1,20 @@
// ino.module.NotEqualOp.8606.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.NotEqualOp.8606.import
import java.util.Iterator;
import java.util.Vector;
+
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.statement.Null;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-import mycompiler.mystatement.Null;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
diff --git a/src/mycompiler/myoperator/Operator.java b/src/de/dhbwstuttgart/syntaxtree/operator/Operator.java
similarity index 83%
rename from src/mycompiler/myoperator/Operator.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/Operator.java
index 7ea83b24..dde6d288 100755
--- a/src/mycompiler/myoperator/Operator.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/Operator.java
@@ -1,5 +1,5 @@
// ino.module.Operator.8607.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.Operator.8607.import
import java.util.HashMap;
@@ -7,24 +7,24 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import typinferenz.ConstraintsSet;
-import typinferenz.OderConstraint;
-import typinferenz.SingleConstraint;
-import typinferenz.UndConstraint;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
-import mycompiler.IItemWithOffset;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.OderConstraint;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.UndConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
diff --git a/src/mycompiler/myoperator/OrOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/OrOp.java
similarity index 89%
rename from src/mycompiler/myoperator/OrOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/OrOp.java
index f8a96dc5..41bbdac9 100755
--- a/src/mycompiler/myoperator/OrOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/OrOp.java
@@ -1,5 +1,5 @@
// ino.module.OrOp.8608.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
diff --git a/src/mycompiler/myoperator/PlusOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/PlusOp.java
similarity index 88%
rename from src/mycompiler/myoperator/PlusOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/PlusOp.java
index af1e5596..886ea59b 100755
--- a/src/mycompiler/myoperator/PlusOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/PlusOp.java
@@ -1,15 +1,15 @@
// ino.module.PlusOp.8609.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.PlusOp.8609.import
import java.util.Vector;
+
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-// ino.end
diff --git a/src/mycompiler/myoperator/RelOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/RelOp.java
similarity index 86%
rename from src/mycompiler/myoperator/RelOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/RelOp.java
index 1b9e9f24..7ea19033 100755
--- a/src/mycompiler/myoperator/RelOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/RelOp.java
@@ -1,5 +1,5 @@
// ino.module.RelOp.8610.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.RelOp.8610.import
@@ -8,16 +8,16 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.DebugException;
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
diff --git a/src/mycompiler/myoperator/TimesOp.java b/src/de/dhbwstuttgart/syntaxtree/operator/TimesOp.java
similarity index 89%
rename from src/mycompiler/myoperator/TimesOp.java
rename to src/de/dhbwstuttgart/syntaxtree/operator/TimesOp.java
index 723b6b4a..9e4802b2 100755
--- a/src/mycompiler/myoperator/TimesOp.java
+++ b/src/de/dhbwstuttgart/syntaxtree/operator/TimesOp.java
@@ -1,16 +1,16 @@
// ino.module.TimesOp.8611.package
-package mycompiler.myoperator;
+package de.dhbwstuttgart.syntaxtree.operator;
// ino.end
// ino.module.TimesOp.8611.import
import java.util.Vector;
+
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Expr;
-// ino.end
// ino.class.TimesOp.24312.declaration
public class TimesOp extends MulOp
diff --git a/src/mycompiler/mystatement/ArgumentList.java b/src/de/dhbwstuttgart/syntaxtree/statement/ArgumentList.java
similarity index 92%
rename from src/mycompiler/mystatement/ArgumentList.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/ArgumentList.java
index ffda3031..98094f50 100755
--- a/src/mycompiler/mystatement/ArgumentList.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/ArgumentList.java
@@ -1,16 +1,16 @@
// ino.module.ArgumentList.8621.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.ArgumentList.8621.import
import java.util.Iterator;
import java.util.Vector;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.syntaxtree.FormalParameter;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.FormalParameter;
import mycompiler.myexception.JVMCodeException;
// ino.end
diff --git a/src/mycompiler/mystatement/Assign.java b/src/de/dhbwstuttgart/syntaxtree/statement/Assign.java
similarity index 92%
rename from src/mycompiler/mystatement/Assign.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/Assign.java
index bc81c745..2d8e125e 100755
--- a/src/mycompiler/mystatement/Assign.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/Assign.java
@@ -1,5 +1,5 @@
// ino.module.Assign.8622.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.Assign.8622.import
import java.util.Enumeration;
@@ -7,20 +7,13 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CMultiplyTuple;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
@@ -35,12 +28,26 @@ import org.apache.log4j.Logger;
// ino.end
-import typinferenz.JavaCodeResult;
-import typinferenz.SingleConstraint;
-import typinferenz.ConstraintsSet;
-import typinferenz.FreshTypeVariable;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.FreshTypeVariable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/Binary.java b/src/de/dhbwstuttgart/syntaxtree/statement/Binary.java
similarity index 87%
rename from src/mycompiler/mystatement/Binary.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/Binary.java
index 80c6a885..94fb695c 100755
--- a/src/mycompiler/mystatement/Binary.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/Binary.java
@@ -1,5 +1,5 @@
// ino.module.Binary.8623.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.Binary.8623.import
import java.util.Enumeration;
@@ -7,25 +7,13 @@ import java.util.HashMap;
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.myoperator.AddOp;
-import mycompiler.myoperator.LogOp;
-import mycompiler.myoperator.MulOp;
-import mycompiler.myoperator.Operator;
-import mycompiler.myoperator.RelOp;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
import mycompiler.mytypereconstruction.set.CTripleSet;
@@ -41,14 +29,34 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.operator.AddOp;
+import de.dhbwstuttgart.syntaxtree.operator.LogOp;
+import de.dhbwstuttgart.syntaxtree.operator.MulOp;
+import de.dhbwstuttgart.syntaxtree.operator.Operator;
+import de.dhbwstuttgart.syntaxtree.operator.RelOp;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.OderConstraint;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.UndConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.OderConstraint;
-import typinferenz.ResultSet;
-import typinferenz.SingleConstraint;
-import typinferenz.UndConstraint;
-import typinferenz.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/BinaryExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/BinaryExpr.java
similarity index 79%
rename from src/mycompiler/mystatement/BinaryExpr.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/BinaryExpr.java
index a8e4ca28..561803d3 100755
--- a/src/mycompiler/mystatement/BinaryExpr.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/BinaryExpr.java
@@ -1,9 +1,8 @@
// ino.module.BinaryExpr.8624.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
-import typinferenz.ConstraintsSet;
-import typinferenz.assumptions.TypeAssumptions;
-// ino.end
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
// ino.class.BinaryExpr.25030.declaration
diff --git a/src/mycompiler/mystatement/Block.java b/src/de/dhbwstuttgart/syntaxtree/statement/Block.java
similarity index 92%
rename from src/mycompiler/mystatement/Block.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/Block.java
index efabb756..06e27a02 100755
--- a/src/mycompiler/mystatement/Block.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/Block.java
@@ -1,5 +1,5 @@
// ino.module.Block.8625.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.Block.8625.import
import java.util.Enumeration;
@@ -7,18 +7,12 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
@@ -33,14 +27,28 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.FreshTypeVariable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.JavaCodeResult;
-import typinferenz.SingleConstraint;
-import typinferenz.ConstraintsSet;
-import typinferenz.FreshTypeVariable;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
diff --git a/src/mycompiler/mystatement/BoolLiteral.java b/src/de/dhbwstuttgart/syntaxtree/statement/BoolLiteral.java
similarity index 90%
rename from src/mycompiler/mystatement/BoolLiteral.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/BoolLiteral.java
index bdc1bb79..75e6e123 100755
--- a/src/mycompiler/mystatement/BoolLiteral.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/BoolLiteral.java
@@ -1,21 +1,15 @@
// ino.module.BoolLiteral.8626.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.BoolLiteral.8626.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.BooleanType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -27,10 +21,23 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.BooleanType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/CastExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/CastExpr.java
similarity index 89%
rename from src/mycompiler/mystatement/CastExpr.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/CastExpr.java
index 20add38d..75c25007 100755
--- a/src/mycompiler/mystatement/CastExpr.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/CastExpr.java
@@ -1,22 +1,18 @@
// ino.module.CastExpr.8627.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.CastExpr.8627.import
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -29,10 +25,21 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/CharLiteral.java b/src/de/dhbwstuttgart/syntaxtree/statement/CharLiteral.java
similarity index 90%
rename from src/mycompiler/mystatement/CharLiteral.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/CharLiteral.java
index c1ed8893..b45b874d 100755
--- a/src/mycompiler/mystatement/CharLiteral.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/CharLiteral.java
@@ -1,21 +1,15 @@
// ino.module.CharLiteral.8628.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.CharLiteral.8628.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.CharacterType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -28,10 +22,23 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.CharacterType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/DoubleLiteral.java b/src/de/dhbwstuttgart/syntaxtree/statement/DoubleLiteral.java
similarity index 91%
rename from src/mycompiler/mystatement/DoubleLiteral.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/DoubleLiteral.java
index b3188d7a..f62d77ee 100755
--- a/src/mycompiler/mystatement/DoubleLiteral.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/DoubleLiteral.java
@@ -1,23 +1,15 @@
// ino.module.IntLiteral.8635.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.IntLiteral.8635.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.DoubleType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.IntegerType;
-import mycompiler.mytype.LongType;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -27,12 +19,20 @@ import mycompiler.mytypereconstruction.typeassumption.CTypeAssumption;
import org.apache.log4j.Logger;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.DoubleType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.IntegerType;
+import de.dhbwstuttgart.syntaxtree.type.LongType;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
// ino.end
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/EmptyStmt.java b/src/de/dhbwstuttgart/syntaxtree/statement/EmptyStmt.java
similarity index 87%
rename from src/mycompiler/mystatement/EmptyStmt.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/EmptyStmt.java
index b944dcd4..2dedecbb 100755
--- a/src/mycompiler/mystatement/EmptyStmt.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/EmptyStmt.java
@@ -1,18 +1,14 @@
// ino.module.EmptyStmt.8629.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.EmptyStmt.8629.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -25,11 +21,22 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/Expr.java b/src/de/dhbwstuttgart/syntaxtree/statement/Expr.java
similarity index 90%
rename from src/mycompiler/mystatement/Expr.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/Expr.java
index 8fd300e8..131fa867 100755
--- a/src/mycompiler/mystatement/Expr.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/Expr.java
@@ -1,20 +1,20 @@
// ino.module.Expr.8630.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.Expr.8630.import
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.ConstraintsSet;
-import typinferenz.assumptions.TypeAssumptions;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.CMultiplyTuple;
import mycompiler.mytypereconstruction.CSubstitution;
import mycompiler.mytypereconstruction.CSupportData;
diff --git a/src/mycompiler/mystatement/ExprStmt.java b/src/de/dhbwstuttgart/syntaxtree/statement/ExprStmt.java
similarity index 88%
rename from src/mycompiler/mystatement/ExprStmt.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/ExprStmt.java
index 08eb65d9..89458d43 100755
--- a/src/mycompiler/mystatement/ExprStmt.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/ExprStmt.java
@@ -1,14 +1,11 @@
// ino.module.ExprStmt.8631.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.ExprStmt.8631.import
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.MyCompiler;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
+
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
@@ -16,9 +13,16 @@ import mycompiler.mytypereconstruction.replacementlistener.ITypeReplacementListe
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
import mycompiler.mytypereconstruction.set.CTripleSet;
import mycompiler.mytypereconstruction.unify.Unify;
+
import org.apache.log4j.Logger;
// ino.end
+
+import de.dhbwstuttgart.core.MyCompiler;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+
// ino.class.ExprStmt.25265.declaration
public abstract class ExprStmt extends Statement implements ITypeReplacementListener
// ino.end
diff --git a/src/mycompiler/mystatement/FloatLiteral.java b/src/de/dhbwstuttgart/syntaxtree/statement/FloatLiteral.java
similarity index 92%
rename from src/mycompiler/mystatement/FloatLiteral.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/FloatLiteral.java
index 55cec4f8..effc2c05 100755
--- a/src/mycompiler/mystatement/FloatLiteral.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/FloatLiteral.java
@@ -1,20 +1,14 @@
// ino.module.IntLiteral.8635.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.IntLiteral.8635.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.FloatType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -23,10 +17,16 @@ import mycompiler.mytypereconstruction.set.CTypeAssumptionSet;
import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.FloatType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/ForStmt.java b/src/de/dhbwstuttgart/syntaxtree/statement/ForStmt.java
similarity index 84%
rename from src/mycompiler/mystatement/ForStmt.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/ForStmt.java
index 51e25223..16c7de49 100755
--- a/src/mycompiler/mystatement/ForStmt.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/ForStmt.java
@@ -1,26 +1,17 @@
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.myoperator.LogOp;
-import mycompiler.myoperator.Operator;
-import mycompiler.myoperator.RelOp;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
@@ -32,11 +23,20 @@ import mycompiler.mytypereconstruction.unify.Unify;
import org.apache.log4j.Logger;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.operator.LogOp;
+import de.dhbwstuttgart.syntaxtree.operator.Operator;
+import de.dhbwstuttgart.syntaxtree.operator.RelOp;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/IfStmt.java b/src/de/dhbwstuttgart/syntaxtree/statement/IfStmt.java
similarity index 94%
rename from src/mycompiler/mystatement/IfStmt.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/IfStmt.java
index 421323af..8660dba0 100755
--- a/src/mycompiler/mystatement/IfStmt.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/IfStmt.java
@@ -1,5 +1,5 @@
// ino.module.IfStmt.8632.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.IfStmt.8632.import
import java.util.Enumeration;
@@ -7,25 +7,13 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.myoperator.LogOp;
-import mycompiler.myoperator.Operator;
-import mycompiler.myoperator.RelOp;
-import mycompiler.mytype.BooleanType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CSubstitution;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
@@ -42,13 +30,33 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.operator.LogOp;
+import de.dhbwstuttgart.syntaxtree.operator.Operator;
+import de.dhbwstuttgart.syntaxtree.operator.RelOp;
+import de.dhbwstuttgart.syntaxtree.type.BooleanType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.FreshTypeVariable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.JavaCodeResult;
-import typinferenz.SingleConstraint;
-import typinferenz.ConstraintsSet;
-import typinferenz.FreshTypeVariable;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/InstVar.java b/src/de/dhbwstuttgart/syntaxtree/statement/InstVar.java
similarity index 90%
rename from src/mycompiler/mystatement/InstVar.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/InstVar.java
index 45a2ba42..86f93b4e 100755
--- a/src/mycompiler/mystatement/InstVar.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/InstVar.java
@@ -1,5 +1,5 @@
// ino.module.InstVar.8634.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.InstVar.8634.import
import java.util.Enumeration;
@@ -7,22 +7,13 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
-import mycompiler.mytypereconstruction.TypeinferenceResultSet;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
import mycompiler.mytypereconstruction.set.CTripleSet;
import mycompiler.mytypereconstruction.set.CTypeAssumptionSet;
@@ -39,14 +30,32 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.FreshTypeVariable;
-import typinferenz.JavaCodeResult;
-import typinferenz.OderConstraint;
-import typinferenz.ResultSet;
-import typinferenz.UndConstraint;
-import typinferenz.assumptions.FieldAssumption;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.FreshTypeVariable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.OderConstraint;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeinferenceResultSet;
+import de.dhbwstuttgart.typeinference.UndConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.FieldAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/InstanceOf.java b/src/de/dhbwstuttgart/syntaxtree/statement/InstanceOf.java
similarity index 88%
rename from src/mycompiler/mystatement/InstanceOf.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/InstanceOf.java
index 07975f8b..a3a29ef3 100755
--- a/src/mycompiler/mystatement/InstanceOf.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/InstanceOf.java
@@ -1,23 +1,17 @@
// ino.module.InstanceOf.8633.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.InstanceOf.8633.import
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.BooleanType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
import mycompiler.mytypereconstruction.set.CTripleSet;
@@ -29,10 +23,23 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.BooleanType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/IntLiteral.java b/src/de/dhbwstuttgart/syntaxtree/statement/IntLiteral.java
similarity index 92%
rename from src/mycompiler/mystatement/IntLiteral.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/IntLiteral.java
index 4b486986..ec93cb4e 100755
--- a/src/mycompiler/mystatement/IntLiteral.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/IntLiteral.java
@@ -1,21 +1,15 @@
// ino.module.IntLiteral.8635.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.IntLiteral.8635.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.IntegerType;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -28,11 +22,24 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.IntegerType;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/LambdaExpression.java b/src/de/dhbwstuttgart/syntaxtree/statement/LambdaExpression.java
similarity index 85%
rename from src/mycompiler/mystatement/LambdaExpression.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/LambdaExpression.java
index 3374ecfb..5ba7b038 100755
--- a/src/mycompiler/mystatement/LambdaExpression.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/LambdaExpression.java
@@ -1,34 +1,34 @@
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
import java.util.Hashtable;
import java.util.Vector;
-import typinferenz.JavaCodeResult;
-import typinferenz.SingleConstraint;
-import typinferenz.ConstraintsSet;
-import typinferenz.FreshTypeVariable;
-import typinferenz.FunN;
-import typinferenz.ResultSet;
-import typinferenz.Typeable;
-import typinferenz.assumptions.ParameterAssumption;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
-import mycompiler.SyntaxTreeNode;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.ClassHelper;
+import de.dhbwstuttgart.syntaxtree.FormalParameter;
+import de.dhbwstuttgart.syntaxtree.Method;
+import de.dhbwstuttgart.syntaxtree.ParameterList;
+import de.dhbwstuttgart.syntaxtree.type.DoubleType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.FreshTypeVariable;
+import de.dhbwstuttgart.typeinference.FunN;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.Typeable;
+import de.dhbwstuttgart.typeinference.assumptions.ParameterAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.ClassHelper;
-import mycompiler.myclass.FormalParameter;
-import mycompiler.myclass.Method;
-import mycompiler.myclass.ParameterList;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.DoubleType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
diff --git a/src/mycompiler/mystatement/LambdaParameter.java b/src/de/dhbwstuttgart/syntaxtree/statement/LambdaParameter.java
similarity index 58%
rename from src/mycompiler/mystatement/LambdaParameter.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/LambdaParameter.java
index 4dad882a..c97636e2 100644
--- a/src/mycompiler/mystatement/LambdaParameter.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/LambdaParameter.java
@@ -1,11 +1,11 @@
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
-import typinferenz.ResultSet;
-import typinferenz.typedeployment.TypeInsertPoint;
-import mycompiler.myclass.DeclId;
-import mycompiler.myclass.FormalParameter;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.FormalParameter;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
/**
* Der FormalParameter einer LambdaExpression hat gesonderte Eigenschaften.
diff --git a/src/mycompiler/mystatement/Literal.java b/src/de/dhbwstuttgart/syntaxtree/statement/Literal.java
similarity index 98%
rename from src/mycompiler/mystatement/Literal.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/Literal.java
index 41274a68..4b4ae7d2 100755
--- a/src/mycompiler/mystatement/Literal.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/Literal.java
@@ -1,5 +1,5 @@
// ino.module.Literal.8636.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.Literal.8636.import
diff --git a/src/mycompiler/mystatement/LocalOrFieldVar.java b/src/de/dhbwstuttgart/syntaxtree/statement/LocalOrFieldVar.java
similarity index 89%
rename from src/mycompiler/mystatement/LocalOrFieldVar.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/LocalOrFieldVar.java
index 53958a98..ece05e0a 100755
--- a/src/mycompiler/mystatement/LocalOrFieldVar.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/LocalOrFieldVar.java
@@ -1,25 +1,18 @@
// ino.module.LocalOrFieldVar.8637.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.LocalOrFieldVar.8637.import
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -35,14 +28,30 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.FreshTypeVariable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.JavaCodeResult;
-import typinferenz.SingleConstraint;
-import typinferenz.ConstraintsSet;
-import typinferenz.FreshTypeVariable;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
diff --git a/src/mycompiler/mystatement/LocalVarDecl.java b/src/de/dhbwstuttgart/syntaxtree/statement/LocalVarDecl.java
similarity index 93%
rename from src/mycompiler/mystatement/LocalVarDecl.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/LocalVarDecl.java
index 76b19cd6..d69fa85e 100755
--- a/src/mycompiler/mystatement/LocalVarDecl.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/LocalVarDecl.java
@@ -1,5 +1,5 @@
// ino.module.LocalVarDecl.8638.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.LocalVarDecl.8638.import
import java.util.Enumeration;
@@ -8,19 +8,9 @@ import java.util.Vector;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.ClassHelper;
-import mycompiler.myclass.DeclId;
-import mycompiler.MyCompiler;
-import mycompiler.SyntaxTreeNode;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
@@ -43,16 +33,36 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.FreshTypeVariable;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.SingleConstraint;
-import typinferenz.TypeInsertable;
-import typinferenz.assumptions.LocalVarAssumption;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
-import typinferenz.typedeployment.TypeInsertPoint;
+
+
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.MyCompiler;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.ClassHelper;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.FreshTypeVariable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
+import de.dhbwstuttgart.typeinference.assumptions.LocalVarAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
diff --git a/src/mycompiler/mystatement/LongLiteral.java b/src/de/dhbwstuttgart/syntaxtree/statement/LongLiteral.java
similarity index 91%
rename from src/mycompiler/mystatement/LongLiteral.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/LongLiteral.java
index 31d1b724..73d5e9d2 100755
--- a/src/mycompiler/mystatement/LongLiteral.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/LongLiteral.java
@@ -1,22 +1,15 @@
// ino.module.IntLiteral.8635.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.IntLiteral.8635.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.IntegerType;
-import mycompiler.mytype.LongType;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -26,12 +19,19 @@ import mycompiler.mytypereconstruction.typeassumption.CTypeAssumption;
import org.apache.log4j.Logger;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.IntegerType;
+import de.dhbwstuttgart.syntaxtree.type.LongType;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
// ino.end
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/MethodCall.java b/src/de/dhbwstuttgart/syntaxtree/statement/MethodCall.java
similarity index 95%
rename from src/mycompiler/mystatement/MethodCall.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/MethodCall.java
index ab73632c..2e61c530 100755
--- a/src/mycompiler/mystatement/MethodCall.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/MethodCall.java
@@ -1,5 +1,5 @@
// ino.module.MethodCall.8639.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.MethodCall.8639.import
import java.util.Enumeration;
@@ -7,35 +7,19 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.ClassBody;
-import mycompiler.myclass.DeclId;
-import mycompiler.myclass.FormalParameter;
-import mycompiler.myclass.Method;
-import mycompiler.myclass.ParameterList;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.BoundedGenericTypeVar;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CIntersectionType;
import mycompiler.mytypereconstruction.CMultiplyTuple;
import mycompiler.mytypereconstruction.CSubstitution;
import mycompiler.mytypereconstruction.CSubstitutionGenVar;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
-import mycompiler.mytypereconstruction.TypeinferenceResultSet;
import mycompiler.mytypereconstruction.set.CMultiplyTupleSet;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
import mycompiler.mytypereconstruction.set.CTripleSet;
@@ -52,13 +36,39 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.ClassBody;
+import de.dhbwstuttgart.syntaxtree.FormalParameter;
+import de.dhbwstuttgart.syntaxtree.Method;
+import de.dhbwstuttgart.syntaxtree.ParameterList;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.type.BoundedGenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.FreshTypeVariable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.Overloading;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeinferenceResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.ConstraintsSet;
-import typinferenz.FreshTypeVariable;
-import typinferenz.JavaCodeResult;
-import typinferenz.Overloading;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/NegativeExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/NegativeExpr.java
similarity index 87%
rename from src/mycompiler/mystatement/NegativeExpr.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/NegativeExpr.java
index 4263d128..0c43064a 100755
--- a/src/mycompiler/mystatement/NegativeExpr.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/NegativeExpr.java
@@ -1,24 +1,17 @@
// ino.module.NegativeExpr.8640.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.NegativeExpr.8640.import
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -32,10 +25,24 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/NewArray.java b/src/de/dhbwstuttgart/syntaxtree/statement/NewArray.java
similarity index 93%
rename from src/mycompiler/mystatement/NewArray.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/NewArray.java
index cf07bbc8..eb25c781 100755
--- a/src/mycompiler/mystatement/NewArray.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/NewArray.java
@@ -1,19 +1,15 @@
// ino.module.NewArray.8641.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.NewArray.8641.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
import mycompiler.mytypereconstruction.set.CTripleSet;
@@ -25,10 +21,21 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/NewClass.java b/src/de/dhbwstuttgart/syntaxtree/statement/NewClass.java
similarity index 89%
rename from src/mycompiler/mystatement/NewClass.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/NewClass.java
index 9f250fff..c5bbc717 100755
--- a/src/mycompiler/mystatement/NewClass.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/NewClass.java
@@ -1,5 +1,5 @@
// ino.module.NewClass.8642.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.NewClass.8642.import
import java.util.Enumeration;
@@ -7,21 +7,13 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CMultiplyTuple;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
@@ -41,17 +33,34 @@ import org.apache.log4j.Logger;
-import typinferenz.JavaCodeResult;
-import typinferenz.Overloading;
-import typinferenz.SingleConstraint;
-import typinferenz.ConstraintsSet;
-import typinferenz.FreshTypeVariable;
-import typinferenz.FunN;
-import typinferenz.ResultSet;
-import typinferenz.UndConstraint;
-import typinferenz.assumptions.ConstructorAssumption;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
+
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.FreshTypeVariable;
+import de.dhbwstuttgart.typeinference.FunN;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.Overloading;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.UndConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.ConstructorAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
diff --git a/src/mycompiler/mystatement/NotExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/NotExpr.java
similarity index 86%
rename from src/mycompiler/mystatement/NotExpr.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/NotExpr.java
index 607d25d4..b86208ce 100755
--- a/src/mycompiler/mystatement/NotExpr.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/NotExpr.java
@@ -1,24 +1,16 @@
// ino.module.NotExpr.8643.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.NotExpr.8643.import
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.BooleanType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -34,11 +26,26 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.OderConstraint;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.BooleanType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.OderConstraint;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/Null.java b/src/de/dhbwstuttgart/syntaxtree/statement/Null.java
similarity index 86%
rename from src/mycompiler/mystatement/Null.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/Null.java
index 58db707f..1743e136 100755
--- a/src/mycompiler/mystatement/Null.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/Null.java
@@ -1,20 +1,15 @@
// ino.module.Null.8644.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.Null.8644.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -27,10 +22,22 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/PositivExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/PositivExpr.java
similarity index 89%
rename from src/mycompiler/mystatement/PositivExpr.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/PositivExpr.java
index d086074b..f3e8659d 100755
--- a/src/mycompiler/mystatement/PositivExpr.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/PositivExpr.java
@@ -1,18 +1,14 @@
// ino.module.PositivExpr.8645.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.PositivExpr.8645.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
import mycompiler.mytypereconstruction.set.CTripleSet;
@@ -24,10 +20,21 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/PostDecExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/PostDecExpr.java
similarity index 90%
rename from src/mycompiler/mystatement/PostDecExpr.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/PostDecExpr.java
index 91c0f37c..e8d7293e 100755
--- a/src/mycompiler/mystatement/PostDecExpr.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/PostDecExpr.java
@@ -1,25 +1,18 @@
// ino.module.PostDecExpr.8646.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.PostDecExpr.8646.import
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -33,10 +26,24 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/PostIncExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/PostIncExpr.java
similarity index 88%
rename from src/mycompiler/mystatement/PostIncExpr.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/PostIncExpr.java
index c17300d0..2aed476d 100755
--- a/src/mycompiler/mystatement/PostIncExpr.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/PostIncExpr.java
@@ -1,26 +1,18 @@
// ino.module.PostIncExpr.8647.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.PostIncExpr.8647.import
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -37,12 +29,27 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.OderConstraint;
-import typinferenz.ResultSet;
-import typinferenz.UndConstraint;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.OderConstraint;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.UndConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/PreDecExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/PreDecExpr.java
similarity index 90%
rename from src/mycompiler/mystatement/PreDecExpr.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/PreDecExpr.java
index 5f0c0718..bba29488 100755
--- a/src/mycompiler/mystatement/PreDecExpr.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/PreDecExpr.java
@@ -1,25 +1,18 @@
// ino.module.PreDecExpr.8648.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.PreDecExpr.8648.import
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -33,10 +26,24 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/PreIncExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/PreIncExpr.java
similarity index 90%
rename from src/mycompiler/mystatement/PreIncExpr.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/PreIncExpr.java
index de1e4de5..fdef9377 100755
--- a/src/mycompiler/mystatement/PreIncExpr.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/PreIncExpr.java
@@ -1,25 +1,18 @@
// ino.module.PreIncExpr.8649.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.PreIncExpr.8649.import
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.Void;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -33,10 +26,24 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/Receiver.java b/src/de/dhbwstuttgart/syntaxtree/statement/Receiver.java
similarity index 90%
rename from src/mycompiler/mystatement/Receiver.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/Receiver.java
index 650839f5..1b566fc1 100755
--- a/src/mycompiler/mystatement/Receiver.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/Receiver.java
@@ -1,16 +1,21 @@
// ino.module.Receiver.8650.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.Receiver.8650.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.myclass.Class;
+
import mycompiler.myexception.SCStatementException;
+
import org.apache.log4j.Logger;
// ino.end
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+
+
+
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
diff --git a/src/mycompiler/mystatement/Return.java b/src/de/dhbwstuttgart/syntaxtree/statement/Return.java
similarity index 86%
rename from src/mycompiler/mystatement/Return.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/Return.java
index 5e9b7dd8..6a4421d9 100755
--- a/src/mycompiler/mystatement/Return.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/Return.java
@@ -1,22 +1,17 @@
// ino.module.Return.8651.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.Return.8651.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -29,13 +24,25 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.FreshTypeVariable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.JavaCodeResult;
-import typinferenz.SingleConstraint;
-import typinferenz.ConstraintsSet;
-import typinferenz.FreshTypeVariable;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/Statement.java b/src/de/dhbwstuttgart/syntaxtree/statement/Statement.java
similarity index 86%
rename from src/mycompiler/mystatement/Statement.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/Statement.java
index 87478156..879bc88e 100755
--- a/src/mycompiler/mystatement/Statement.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/Statement.java
@@ -1,29 +1,29 @@
// ino.module.Statement.8652.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.Statement.8652.import
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.Typeable;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.Typeable;
-import typinferenz.assumptions.TypeAssumptions;
-import mycompiler.IItemWithOffset;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
import mycompiler.mytypereconstruction.replacementlistener.ITypeReplacementListener;
@@ -153,7 +153,7 @@ public abstract class Statement extends SyntaxTreeNode implements IItemWithOffse
}
public Type getReturnType(){
- return new mycompiler.mytype.Void(-1);
+ return new de.dhbwstuttgart.syntaxtree.type.Void(-1);
}
}
// ino.end
diff --git a/src/mycompiler/mystatement/StringLiteral.java b/src/de/dhbwstuttgart/syntaxtree/statement/StringLiteral.java
similarity index 86%
rename from src/mycompiler/mystatement/StringLiteral.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/StringLiteral.java
index 9e56bc8a..53fbdc68 100755
--- a/src/mycompiler/mystatement/StringLiteral.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/StringLiteral.java
@@ -1,21 +1,15 @@
// ino.module.StringLiteral.8653.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.StringLiteral.8653.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.CharacterType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
import mycompiler.mytypereconstruction.set.CTripleSet;
@@ -28,11 +22,25 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.CharacterType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
diff --git a/src/mycompiler/mystatement/This.java b/src/de/dhbwstuttgart/syntaxtree/statement/This.java
similarity index 90%
rename from src/mycompiler/mystatement/This.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/This.java
index a77bb222..3be2dbc1 100755
--- a/src/mycompiler/mystatement/This.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/This.java
@@ -1,22 +1,16 @@
// ino.module.This.8654.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.This.8654.import
import java.util.Hashtable;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCStatementException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -29,10 +23,24 @@ import org.apache.log4j.Logger;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mystatement/UnaryExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/UnaryExpr.java
similarity index 82%
rename from src/mycompiler/mystatement/UnaryExpr.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/UnaryExpr.java
index 86b32dd3..972ed71d 100755
--- a/src/mycompiler/mystatement/UnaryExpr.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/UnaryExpr.java
@@ -1,19 +1,19 @@
// ino.module.UnaryExpr.8655.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.UnaryExpr.8655.import
import java.util.Vector;
-import typinferenz.ConstraintsSet;
-import typinferenz.OderConstraint;
-import typinferenz.UndConstraint;
-import typinferenz.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.OderConstraint;
+import de.dhbwstuttgart.typeinference.UndConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.myexception.JVMCodeException;
// ino.end
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.TypePlaceholder;
diff --git a/src/mycompiler/mystatement/UnaryMinus.java b/src/de/dhbwstuttgart/syntaxtree/statement/UnaryMinus.java
similarity index 93%
rename from src/mycompiler/mystatement/UnaryMinus.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/UnaryMinus.java
index cad93987..d473aa47 100755
--- a/src/mycompiler/mystatement/UnaryMinus.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/UnaryMinus.java
@@ -1,5 +1,5 @@
// ino.module.UnaryMinus.8656.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.UnaryMinus.8656.import
diff --git a/src/mycompiler/mystatement/UnaryNot.java b/src/de/dhbwstuttgart/syntaxtree/statement/UnaryNot.java
similarity index 96%
rename from src/mycompiler/mystatement/UnaryNot.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/UnaryNot.java
index c2cb7b0c..f884b9b8 100755
--- a/src/mycompiler/mystatement/UnaryNot.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/UnaryNot.java
@@ -1,5 +1,5 @@
// ino.module.UnaryNot.8657.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.UnaryNot.8657.import
diff --git a/src/mycompiler/mystatement/UnaryPlus.java b/src/de/dhbwstuttgart/syntaxtree/statement/UnaryPlus.java
similarity index 78%
rename from src/mycompiler/mystatement/UnaryPlus.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/UnaryPlus.java
index 5fbdddf3..32432ca1 100755
--- a/src/mycompiler/mystatement/UnaryPlus.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/UnaryPlus.java
@@ -1,5 +1,5 @@
// ino.module.UnaryPlus.8658.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.class.UnaryPlus.26323.declaration
public class UnaryPlus
diff --git a/src/mycompiler/mystatement/WhileStmt.java b/src/de/dhbwstuttgart/syntaxtree/statement/WhileStmt.java
similarity index 88%
rename from src/mycompiler/mystatement/WhileStmt.java
rename to src/de/dhbwstuttgart/syntaxtree/statement/WhileStmt.java
index ee4e880d..600e3fb2 100755
--- a/src/mycompiler/mystatement/WhileStmt.java
+++ b/src/de/dhbwstuttgart/syntaxtree/statement/WhileStmt.java
@@ -1,5 +1,5 @@
// ino.module.WhileStmt.8659.package
-package mycompiler.mystatement;
+package de.dhbwstuttgart.syntaxtree.statement;
// ino.end
// ino.module.WhileStmt.8659.import
import java.util.Enumeration;
@@ -7,23 +7,13 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mybytecode.ClassFile;
import mycompiler.mybytecode.CodeAttribute;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.Class;
import mycompiler.myexception.CTypeReconstructionException;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myexception.SCExcept;
import mycompiler.myexception.SCStatementException;
-import mycompiler.myoperator.LogOp;
-import mycompiler.myoperator.Operator;
-import mycompiler.myoperator.RelOp;
-import mycompiler.mytype.BooleanType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CSupportData;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
@@ -38,12 +28,30 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.operator.LogOp;
+import de.dhbwstuttgart.syntaxtree.operator.Operator;
+import de.dhbwstuttgart.syntaxtree.operator.RelOp;
+import de.dhbwstuttgart.syntaxtree.type.BooleanType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.JavaCodeResult;
-import typinferenz.SingleConstraint;
-import typinferenz.ConstraintsSet;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
diff --git a/src/mycompiler/mytype/BaseType.java b/src/de/dhbwstuttgart/syntaxtree/type/BaseType.java
similarity index 93%
rename from src/mycompiler/mytype/BaseType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/BaseType.java
index 21c0c6f9..944d19e8 100755
--- a/src/mycompiler/mytype/BaseType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/BaseType.java
@@ -1,8 +1,8 @@
// ino.module.BaseType.8667.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
-import mycompiler.IItemWithOffset;
-import typinferenz.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
// ino.end
// ino.class.BaseType.26435.declaration
diff --git a/src/mycompiler/mytype/BooleanType.java b/src/de/dhbwstuttgart/syntaxtree/type/BooleanType.java
similarity index 89%
rename from src/mycompiler/mytype/BooleanType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/BooleanType.java
index b66073f7..2b8dce52 100755
--- a/src/mycompiler/mytype/BooleanType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/BooleanType.java
@@ -1,8 +1,8 @@
// ino.module.BooleanType.8668.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.end
// ino.class.BooleanType.26451.declaration
diff --git a/src/mycompiler/mytype/BoundedGenericTypeVar.java b/src/de/dhbwstuttgart/syntaxtree/type/BoundedGenericTypeVar.java
similarity index 93%
rename from src/mycompiler/mytype/BoundedGenericTypeVar.java
rename to src/de/dhbwstuttgart/syntaxtree/type/BoundedGenericTypeVar.java
index 80632722..7d0f3308 100755
--- a/src/mycompiler/mytype/BoundedGenericTypeVar.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/BoundedGenericTypeVar.java
@@ -1,17 +1,17 @@
// ino.module.BoundedGenericTypeVar.8669.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
// ino.end
// ino.module.BoundedGenericTypeVar.8669.import
import java.util.Vector;
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
// ino.end
-import typinferenz.ConstraintsSet;
-import typinferenz.SingleConstraint;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
// ino.class.BoundedGenericTypeVar.26464.description type=javadoc
/**
diff --git a/src/mycompiler/mytype/CRefTypeSet.java b/src/de/dhbwstuttgart/syntaxtree/type/CRefTypeSet.java
similarity index 94%
rename from src/mycompiler/mytype/CRefTypeSet.java
rename to src/de/dhbwstuttgart/syntaxtree/type/CRefTypeSet.java
index 296d9e26..9c909450 100755
--- a/src/mycompiler/mytype/CRefTypeSet.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/CRefTypeSet.java
@@ -1,4 +1,4 @@
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
import java.util.Iterator;
import java.util.Vector;
diff --git a/src/mycompiler/mytype/CharacterType.java b/src/de/dhbwstuttgart/syntaxtree/type/CharacterType.java
similarity index 90%
rename from src/mycompiler/mytype/CharacterType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/CharacterType.java
index b8c78462..0b7d61be 100755
--- a/src/mycompiler/mytype/CharacterType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/CharacterType.java
@@ -1,8 +1,8 @@
// ino.module.CharacterType.8670.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.end
// ino.class.CharacterType.26492.declaration
diff --git a/src/mycompiler/mytype/DoubleType.java b/src/de/dhbwstuttgart/syntaxtree/type/DoubleType.java
similarity index 89%
rename from src/mycompiler/mytype/DoubleType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/DoubleType.java
index a497d5e7..975afd92 100755
--- a/src/mycompiler/mytype/DoubleType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/DoubleType.java
@@ -1,8 +1,8 @@
// ino.module.IntegerType.8672.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.end
// ino.class.IntegerType.26527.declaration
diff --git a/src/mycompiler/mytype/ExtendsWildcardType.java b/src/de/dhbwstuttgart/syntaxtree/type/ExtendsWildcardType.java
similarity index 98%
rename from src/mycompiler/mytype/ExtendsWildcardType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/ExtendsWildcardType.java
index 132958c6..9ef46ec7 100755
--- a/src/mycompiler/mytype/ExtendsWildcardType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/ExtendsWildcardType.java
@@ -1,4 +1,4 @@
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
/**
diff --git a/src/mycompiler/mytype/FloatType.java b/src/de/dhbwstuttgart/syntaxtree/type/FloatType.java
similarity index 89%
rename from src/mycompiler/mytype/FloatType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/FloatType.java
index bcfde725..fa5e7a9c 100755
--- a/src/mycompiler/mytype/FloatType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/FloatType.java
@@ -1,8 +1,8 @@
// ino.module.IntegerType.8672.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.end
// ino.class.IntegerType.26527.declaration
diff --git a/src/mycompiler/mytype/FreshExtendsWildcardType.java b/src/de/dhbwstuttgart/syntaxtree/type/FreshExtendsWildcardType.java
similarity index 97%
rename from src/mycompiler/mytype/FreshExtendsWildcardType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/FreshExtendsWildcardType.java
index 731d9376..b79d6c72 100755
--- a/src/mycompiler/mytype/FreshExtendsWildcardType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/FreshExtendsWildcardType.java
@@ -1,4 +1,4 @@
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
public class FreshExtendsWildcardType extends FreshWildcardType implements IMatchable {
diff --git a/src/mycompiler/mytype/FreshSuperWildcardType.java b/src/de/dhbwstuttgart/syntaxtree/type/FreshSuperWildcardType.java
similarity index 97%
rename from src/mycompiler/mytype/FreshSuperWildcardType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/FreshSuperWildcardType.java
index 66889b79..a48cd03e 100755
--- a/src/mycompiler/mytype/FreshSuperWildcardType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/FreshSuperWildcardType.java
@@ -1,4 +1,4 @@
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
public class FreshSuperWildcardType extends FreshWildcardType implements IMatchable {
diff --git a/src/mycompiler/mytype/FreshWildcardType.java b/src/de/dhbwstuttgart/syntaxtree/type/FreshWildcardType.java
similarity index 96%
rename from src/mycompiler/mytype/FreshWildcardType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/FreshWildcardType.java
index e1eb4a9c..cdbba367 100755
--- a/src/mycompiler/mytype/FreshWildcardType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/FreshWildcardType.java
@@ -1,10 +1,10 @@
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
import java.util.Vector;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
public class FreshWildcardType extends Type {
diff --git a/src/mycompiler/mytype/GenericTypeVar.java b/src/de/dhbwstuttgart/syntaxtree/type/GenericTypeVar.java
similarity index 92%
rename from src/mycompiler/mytype/GenericTypeVar.java
rename to src/de/dhbwstuttgart/syntaxtree/type/GenericTypeVar.java
index efb5b9e3..7c6e47ab 100755
--- a/src/mycompiler/mytype/GenericTypeVar.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/GenericTypeVar.java
@@ -1,5 +1,5 @@
// ino.module.GenericTypeVar.8671.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
// ino.end
// ino.module.GenericTypeVar.8671.import
@@ -18,15 +18,20 @@ import java.util.Vector;
+
+
+
+
+
+import de.dhbwstuttgart.typeinference.ConstraintsSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.SingleConstraint;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
import mycompiler.mytypereconstruction.replacementlistener.ITypeReplacementListener;
-import typinferenz.ConstraintsSet;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.SingleConstraint;
-import typinferenz.TypeInsertable;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.typedeployment.TypeInsertPoint;
// ino.class.GenericTypeVar.26505.description type=javadoc
diff --git a/src/mycompiler/mytype/IMatchable.java b/src/de/dhbwstuttgart/syntaxtree/type/IMatchable.java
similarity index 90%
rename from src/mycompiler/mytype/IMatchable.java
rename to src/de/dhbwstuttgart/syntaxtree/type/IMatchable.java
index 0981d13f..0395001e 100755
--- a/src/mycompiler/mytype/IMatchable.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/IMatchable.java
@@ -1,4 +1,4 @@
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
/**
* Dieses Interface wird von allen Klassen implementiert, die weitere Klassen
diff --git a/src/mycompiler/mytype/ITypeContainer.java b/src/de/dhbwstuttgart/syntaxtree/type/ITypeContainer.java
similarity index 89%
rename from src/mycompiler/mytype/ITypeContainer.java
rename to src/de/dhbwstuttgart/syntaxtree/type/ITypeContainer.java
index 0b7fdbae..2c8ad5c0 100755
--- a/src/mycompiler/mytype/ITypeContainer.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/ITypeContainer.java
@@ -1,4 +1,4 @@
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
/**
* Dieses Interface wird von allen Klassen implementiert, die weitere Klassen enthalten.
diff --git a/src/mycompiler/mytype/IntegerType.java b/src/de/dhbwstuttgart/syntaxtree/type/IntegerType.java
similarity index 89%
rename from src/mycompiler/mytype/IntegerType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/IntegerType.java
index 4fa05458..1bd61acf 100755
--- a/src/mycompiler/mytype/IntegerType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/IntegerType.java
@@ -1,8 +1,8 @@
// ino.module.IntegerType.8672.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.end
// ino.class.IntegerType.26527.declaration
diff --git a/src/mycompiler/mytype/LongType.java b/src/de/dhbwstuttgart/syntaxtree/type/LongType.java
similarity index 89%
rename from src/mycompiler/mytype/LongType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/LongType.java
index 9a28792f..53612cb3 100755
--- a/src/mycompiler/mytype/LongType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/LongType.java
@@ -1,8 +1,8 @@
// ino.module.IntegerType.8672.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.end
// ino.class.IntegerType.26527.declaration
diff --git a/src/mycompiler/mytype/Pair.java b/src/de/dhbwstuttgart/syntaxtree/type/Pair.java
similarity index 99%
rename from src/mycompiler/mytype/Pair.java
rename to src/de/dhbwstuttgart/syntaxtree/type/Pair.java
index 35ce4b3d..5e14f3d5 100755
--- a/src/mycompiler/mytype/Pair.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/Pair.java
@@ -1,5 +1,5 @@
// ino.module.Pair.8673.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
// ino.end
// ino.module.Pair.8673.import
import java.util.Hashtable;
diff --git a/src/mycompiler/mytype/ParaList.java b/src/de/dhbwstuttgart/syntaxtree/type/ParaList.java
similarity index 97%
rename from src/mycompiler/mytype/ParaList.java
rename to src/de/dhbwstuttgart/syntaxtree/type/ParaList.java
index 2ea154bb..efa0b35f 100755
--- a/src/mycompiler/mytype/ParaList.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/ParaList.java
@@ -1,5 +1,5 @@
// ino.module.ParaList.8674.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
// ino.end
// ino.module.ParaList.8674.import
import java.util.Vector;
diff --git a/src/mycompiler/mytype/RefType.java b/src/de/dhbwstuttgart/syntaxtree/type/RefType.java
similarity index 98%
rename from src/mycompiler/mytype/RefType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/RefType.java
index 6cc1a93a..5c70c5fe 100755
--- a/src/mycompiler/mytype/RefType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/RefType.java
@@ -1,5 +1,5 @@
// ino.module.RefType.8675.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
// ino.end
// ino.module.RefType.8675.import
import java.util.ArrayList;
@@ -8,9 +8,7 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.IItemWithOffset;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.SCException;
import mycompiler.mytypereconstruction.CSubstitutionGenVar;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
@@ -23,12 +21,22 @@ import org.apache.log4j.Logger;
+
+
+
+
+
+
+
+
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.TypeInsertable;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
diff --git a/src/mycompiler/mytype/ReturnType.java b/src/de/dhbwstuttgart/syntaxtree/type/ReturnType.java
similarity index 89%
rename from src/mycompiler/mytype/ReturnType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/ReturnType.java
index c7663f45..0d93f65f 100755
--- a/src/mycompiler/mytype/ReturnType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/ReturnType.java
@@ -1,8 +1,8 @@
// ino.module.ReturnType.8676.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.end
// ino.class.ReturnType.26703.declaration
diff --git a/src/mycompiler/mytype/SuperWildcardType.java b/src/de/dhbwstuttgart/syntaxtree/type/SuperWildcardType.java
similarity index 94%
rename from src/mycompiler/mytype/SuperWildcardType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/SuperWildcardType.java
index 1a65a4c2..3c7d6bcc 100755
--- a/src/mycompiler/mytype/SuperWildcardType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/SuperWildcardType.java
@@ -1,7 +1,7 @@
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
/**
* Stellt eine Wildcard mit unterer Grenze dar.
diff --git a/src/mycompiler/mytype/Type.java b/src/de/dhbwstuttgart/syntaxtree/type/Type.java
similarity index 94%
rename from src/mycompiler/mytype/Type.java
rename to src/de/dhbwstuttgart/syntaxtree/type/Type.java
index d5f7dcc0..6d0d73c5 100755
--- a/src/mycompiler/mytype/Type.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/Type.java
@@ -1,19 +1,18 @@
// ino.module.Type.8677.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
// ino.end
// ino.module.Type.8677.import
import java.util.ArrayList;
import java.util.Vector;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
-import mycompiler.IItemWithOffset;
-import mycompiler.SyntaxTreeNode;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import mycompiler.mybytecode.JVMCode;
-import mycompiler.myclass.UsedId;
-// ino.end
diff --git a/src/mycompiler/mytype/TypePlaceholder.java b/src/de/dhbwstuttgart/syntaxtree/type/TypePlaceholder.java
similarity index 98%
rename from src/mycompiler/mytype/TypePlaceholder.java
rename to src/de/dhbwstuttgart/syntaxtree/type/TypePlaceholder.java
index aab6d4da..e4d79441 100755
--- a/src/mycompiler/mytype/TypePlaceholder.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/TypePlaceholder.java
@@ -1,5 +1,5 @@
// ino.module.TypePlaceholder.8678.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
// ino.end
// ino.module.TypePlaceholder.8678.import
@@ -8,12 +8,12 @@ import java.util.Iterator;
import java.util.Vector;
import java.util.logging.Logger;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.TypeInsertable;
-import typinferenz.typedeployment.TypeInsertPoint;
-import typinferenz.typedeployment.TypeInsertSet;
-import mycompiler.MyCompiler;
+import de.dhbwstuttgart.core.MyCompiler;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertSet;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
import mycompiler.mytypereconstruction.replacementlistener.IReplaceTypeEventProvider;
import mycompiler.mytypereconstruction.replacementlistener.ITypeReplacementListener;
diff --git a/src/mycompiler/mytype/Void.java b/src/de/dhbwstuttgart/syntaxtree/type/Void.java
similarity index 85%
rename from src/mycompiler/mytype/Void.java
rename to src/de/dhbwstuttgart/syntaxtree/type/Void.java
index 61426af7..4a07a13a 100755
--- a/src/mycompiler/mytype/Void.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/Void.java
@@ -1,10 +1,10 @@
// ino.module.Void.8679.package
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
-import mycompiler.IItemWithOffset;
-import mycompiler.myclass.Method;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.syntaxtree.Method;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
// ino.end
// ino.class.Void.26857.declaration
diff --git a/src/mycompiler/mytype/WildcardType.java b/src/de/dhbwstuttgart/syntaxtree/type/WildcardType.java
similarity index 92%
rename from src/mycompiler/mytype/WildcardType.java
rename to src/de/dhbwstuttgart/syntaxtree/type/WildcardType.java
index 0a796db7..b3dd66d6 100755
--- a/src/mycompiler/mytype/WildcardType.java
+++ b/src/de/dhbwstuttgart/syntaxtree/type/WildcardType.java
@@ -1,8 +1,8 @@
-package mycompiler.mytype;
+package de.dhbwstuttgart.syntaxtree.type;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
/**
* Stellt eine Wildcard in Java dar.
diff --git a/src/typinferenz/ConstraintsSet.java b/src/de/dhbwstuttgart/typeinference/ConstraintsSet.java
similarity index 94%
rename from src/typinferenz/ConstraintsSet.java
rename to src/de/dhbwstuttgart/typeinference/ConstraintsSet.java
index ba5aa979..6cb026fa 100755
--- a/src/typinferenz/ConstraintsSet.java
+++ b/src/de/dhbwstuttgart/typeinference/ConstraintsSet.java
@@ -1,9 +1,9 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.mytype.Pair;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CSet;
import mycompiler.mytypereconstruction.set.CTripleSet;
diff --git a/src/typinferenz/FreshTypeVariable.java b/src/de/dhbwstuttgart/typeinference/FreshTypeVariable.java
similarity index 88%
rename from src/typinferenz/FreshTypeVariable.java
rename to src/de/dhbwstuttgart/typeinference/FreshTypeVariable.java
index e381f3ab..1d3394fc 100755
--- a/src/typinferenz/FreshTypeVariable.java
+++ b/src/de/dhbwstuttgart/typeinference/FreshTypeVariable.java
@@ -1,7 +1,7 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
+import de.dhbwstuttgart.syntaxtree.type.Type;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import mycompiler.mytype.Type;
public class FreshTypeVariable extends Type{
diff --git a/src/typinferenz/FunN.java b/src/de/dhbwstuttgart/typeinference/FunN.java
similarity index 90%
rename from src/typinferenz/FunN.java
rename to src/de/dhbwstuttgart/typeinference/FunN.java
index f00ae9ec..ea1616b6 100755
--- a/src/typinferenz/FunN.java
+++ b/src/de/dhbwstuttgart/typeinference/FunN.java
@@ -1,17 +1,17 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.myclass.Method;
-import mycompiler.myclass.ParameterList;
-import typinferenz.assumptions.MethodAssumption;
-import typinferenz.assumptions.TypeAssumptions;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.Method;
+import de.dhbwstuttgart.syntaxtree.ParameterList;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.assumptions.MethodAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import mycompiler.mytypereconstruction.replacementlistener.CReplaceTypeEvent;
import mycompiler.mytypereconstruction.replacementlistener.ITypeReplacementListener;
import mycompiler.mytypereconstruction.typeassumption.CMethodTypeAssumption;
diff --git a/src/typinferenz/FunNInterface.java b/src/de/dhbwstuttgart/typeinference/FunNInterface.java
similarity index 77%
rename from src/typinferenz/FunNInterface.java
rename to src/de/dhbwstuttgart/typeinference/FunNInterface.java
index 0b5e3dec..d9226f4f 100644
--- a/src/typinferenz/FunNInterface.java
+++ b/src/de/dhbwstuttgart/typeinference/FunNInterface.java
@@ -1,13 +1,15 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Vector;
-import typinferenz.assumptions.ClassAssumption;
-import typinferenz.assumptions.MethodAssumption;
-import typinferenz.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.assumptions.ClassAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.MethodAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
import mycompiler.mytype.*;
-import mycompiler.myclass.Class;
-import mycompiler.mytype.TypePlaceholder;
/**
* Stellt das Interface FunN dar.
diff --git a/src/typinferenz/FunNMethod.java b/src/de/dhbwstuttgart/typeinference/FunNMethod.java
similarity index 81%
rename from src/typinferenz/FunNMethod.java
rename to src/de/dhbwstuttgart/typeinference/FunNMethod.java
index 269a58ab..bb61be65 100644
--- a/src/typinferenz/FunNMethod.java
+++ b/src/de/dhbwstuttgart/typeinference/FunNMethod.java
@@ -1,11 +1,16 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Vector;
-import typinferenz.typedeployment.TypeInsertPoint;
+import de.dhbwstuttgart.syntaxtree.FormalParameter;
+import de.dhbwstuttgart.syntaxtree.Method;
+import de.dhbwstuttgart.syntaxtree.ParameterList;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
import mycompiler.mytype.*;
import mycompiler.myclass.*;
-import mycompiler.mytype.TypePlaceholder;
public class FunNMethod extends Method{
/**
diff --git a/src/typinferenz/GenericTypeInsertable.java b/src/de/dhbwstuttgart/typeinference/GenericTypeInsertable.java
similarity index 88%
rename from src/typinferenz/GenericTypeInsertable.java
rename to src/de/dhbwstuttgart/typeinference/GenericTypeInsertable.java
index 1d676f76..b6694ce1 100644
--- a/src/typinferenz/GenericTypeInsertable.java
+++ b/src/de/dhbwstuttgart/typeinference/GenericTypeInsertable.java
@@ -1,4 +1,4 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
/**
* Wird von Knoten im Syntaxbaum implementiert, welche ein Einsetzen von generischen Variablendeklarationen erlauben.
diff --git a/src/typinferenz/JavaCodeResult.java b/src/de/dhbwstuttgart/typeinference/JavaCodeResult.java
similarity index 94%
rename from src/typinferenz/JavaCodeResult.java
rename to src/de/dhbwstuttgart/typeinference/JavaCodeResult.java
index 4ec7160c..bd9c1978 100755
--- a/src/typinferenz/JavaCodeResult.java
+++ b/src/de/dhbwstuttgart/typeinference/JavaCodeResult.java
@@ -1,11 +1,10 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Vector;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import mycompiler.mytype.TypePlaceholder;
-
public class JavaCodeResult{
private String javaCode = "";
diff --git a/src/typinferenz/KarthesischesProdukt.java b/src/de/dhbwstuttgart/typeinference/KarthesischesProdukt.java
similarity index 97%
rename from src/typinferenz/KarthesischesProdukt.java
rename to src/de/dhbwstuttgart/typeinference/KarthesischesProdukt.java
index 7add75e3..48db9ff3 100755
--- a/src/typinferenz/KarthesischesProdukt.java
+++ b/src/de/dhbwstuttgart/typeinference/KarthesischesProdukt.java
@@ -1,4 +1,4 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Vector;
diff --git a/src/typinferenz/OderConstraint.java b/src/de/dhbwstuttgart/typeinference/OderConstraint.java
similarity index 88%
rename from src/typinferenz/OderConstraint.java
rename to src/de/dhbwstuttgart/typeinference/OderConstraint.java
index 61aff4fe..92aa327a 100755
--- a/src/typinferenz/OderConstraint.java
+++ b/src/de/dhbwstuttgart/typeinference/OderConstraint.java
@@ -1,11 +1,11 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Vector;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
public class OderConstraint{
private Vector oderConstraintPairs;
diff --git a/src/typinferenz/Overloading.java b/src/de/dhbwstuttgart/typeinference/Overloading.java
similarity index 88%
rename from src/typinferenz/Overloading.java
rename to src/de/dhbwstuttgart/typeinference/Overloading.java
index d371e2f7..c06421ec 100755
--- a/src/typinferenz/Overloading.java
+++ b/src/de/dhbwstuttgart/typeinference/Overloading.java
@@ -1,15 +1,15 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Vector;
-import typinferenz.assumptions.MethodAssumption;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
-import mycompiler.mystatement.Expr;
-import mycompiler.mystatement.MethodCall;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.statement.MethodCall;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.assumptions.MethodAssumption;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import mycompiler.mytypereconstruction.typeassumption.CMethodTypeAssumption;
import mycompiler.mytypereconstruction.typeassumption.CParaTypeAssumption;
diff --git a/src/typinferenz/ResultSet.java b/src/de/dhbwstuttgart/typeinference/ResultSet.java
similarity index 94%
rename from src/typinferenz/ResultSet.java
rename to src/de/dhbwstuttgart/typeinference/ResultSet.java
index 997c5c1d..0a124ca2 100755
--- a/src/typinferenz/ResultSet.java
+++ b/src/de/dhbwstuttgart/typeinference/ResultSet.java
@@ -1,11 +1,11 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Iterator;
import java.util.Vector;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
/**
* Im Grunde Sammlung von Pair s mit Equal-Operatoren.
diff --git a/src/typinferenz/SingleConstraint.java b/src/de/dhbwstuttgart/typeinference/SingleConstraint.java
similarity index 88%
rename from src/typinferenz/SingleConstraint.java
rename to src/de/dhbwstuttgart/typeinference/SingleConstraint.java
index 12d35320..b6bf0d2a 100755
--- a/src/typinferenz/SingleConstraint.java
+++ b/src/de/dhbwstuttgart/typeinference/SingleConstraint.java
@@ -1,14 +1,14 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Vector;
-import typinferenz.exceptions.DebugException;
-import typinferenz.exceptions.TypeinferenceException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import mycompiler.mytypereconstruction.CTriple;
import mycompiler.mytypereconstruction.set.CTripleSet;
diff --git a/src/typinferenz/TIPConstraints.java b/src/de/dhbwstuttgart/typeinference/TIPConstraints.java
similarity index 62%
rename from src/typinferenz/TIPConstraints.java
rename to src/de/dhbwstuttgart/typeinference/TIPConstraints.java
index d664e601..e65fd9bd 100644
--- a/src/typinferenz/TIPConstraints.java
+++ b/src/de/dhbwstuttgart/typeinference/TIPConstraints.java
@@ -1,8 +1,8 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Vector;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
/**
*
diff --git a/src/typinferenz/TypeInsertable.java b/src/de/dhbwstuttgart/typeinference/TypeInsertable.java
similarity index 73%
rename from src/typinferenz/TypeInsertable.java
rename to src/de/dhbwstuttgart/typeinference/TypeInsertable.java
index ca93a49e..bd283a5e 100644
--- a/src/typinferenz/TypeInsertable.java
+++ b/src/de/dhbwstuttgart/typeinference/TypeInsertable.java
@@ -1,8 +1,8 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
-import typinferenz.typedeployment.TypeInsertPoint;
-import mycompiler.IItemWithOffset;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
import mycompiler.mytypereconstruction.replacementlistener.ITypeReplacementListener;
public interface TypeInsertable extends ITypeReplacementListener, Typeable, IItemWithOffset {
diff --git a/src/typinferenz/Typeable.java b/src/de/dhbwstuttgart/typeinference/Typeable.java
similarity index 87%
rename from src/typinferenz/Typeable.java
rename to src/de/dhbwstuttgart/typeinference/Typeable.java
index 2f307e2b..bfcc3559 100755
--- a/src/typinferenz/Typeable.java
+++ b/src/de/dhbwstuttgart/typeinference/Typeable.java
@@ -1,6 +1,6 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
-import mycompiler.mytype.Type;
+import de.dhbwstuttgart.syntaxtree.type.Type;
import mycompiler.mytypereconstruction.replacementlistener.ITypeReplacementListener;
public interface Typeable {
diff --git a/src/mycompiler/mytypereconstruction/TypeinferenceResultSet.java b/src/de/dhbwstuttgart/typeinference/TypeinferenceResultSet.java
similarity index 81%
rename from src/mycompiler/mytypereconstruction/TypeinferenceResultSet.java
rename to src/de/dhbwstuttgart/typeinference/TypeinferenceResultSet.java
index 51575b45..77eee759 100755
--- a/src/mycompiler/mytypereconstruction/TypeinferenceResultSet.java
+++ b/src/de/dhbwstuttgart/typeinference/TypeinferenceResultSet.java
@@ -1,5 +1,5 @@
// ino.module.CTypeReconstructionResult.8689.package
-package mycompiler.mytypereconstruction;
+package de.dhbwstuttgart.typeinference;
// ino.end
// ino.module.CTypeReconstructionResult.8689.import
@@ -7,17 +7,15 @@ import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
-import typinferenz.ConstraintsSet;
-import typinferenz.ResultSet;
-import typinferenz.assumptions.TypeAssumptions;
-import typinferenz.exceptions.TypeinferenceException;
-import typinferenz.typedeployment.TypeInsertPoint;
-import typinferenz.typedeployment.TypeInsertSet;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertPoint;
+import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertSet;
import mycompiler.mytypereconstruction.set.CSubstitutionSet;
import mycompiler.mytypereconstruction.set.CTypeAssumptionSet;
import mycompiler.mytypereconstruction.typeassumption.CMethodTypeAssumption;
@@ -50,10 +48,10 @@ public class TypeinferenceResultSet
* Das unifizierte ConstaraintsSet
*/
private ResultSet unifiedConstraints;
- private mycompiler.myclass.Class ownerOfResultSet;//Jedes Resultset gilt immer nur für eine Klasse. Diese wird in dieser Variable gespeichert.
+ private de.dhbwstuttgart.syntaxtree.Class ownerOfResultSet;//Jedes Resultset gilt immer nur für eine Klasse. Diese wird in dieser Variable gespeichert.
// ino.method.CTypeReconstructionResult.27256.definition
- public TypeinferenceResultSet(mycompiler.myclass.Class inferedClass, Vector constraints, ResultSet unifiedConstraints)
+ public TypeinferenceResultSet(de.dhbwstuttgart.syntaxtree.Class inferedClass, Vector constraints, ResultSet unifiedConstraints)
// ino.end
// ino.method.CTypeReconstructionResult.27256.body
{
@@ -97,7 +95,7 @@ public class TypeinferenceResultSet
* Jedes TypeReconstructionResultSet entstand bei der Typinferierung einer Klasse.
* @return Gibt die Klasse zurück der dieses ResultSet zugeordnet ist.
*/
- public mycompiler.myclass.Class getInterferedClass(){
+ public de.dhbwstuttgart.syntaxtree.Class getInterferedClass(){
return this.ownerOfResultSet;
}
diff --git a/src/typinferenz/UndConstraint.java b/src/de/dhbwstuttgart/typeinference/UndConstraint.java
similarity index 85%
rename from src/typinferenz/UndConstraint.java
rename to src/de/dhbwstuttgart/typeinference/UndConstraint.java
index f5dc8808..96a0f217 100755
--- a/src/typinferenz/UndConstraint.java
+++ b/src/de/dhbwstuttgart/typeinference/UndConstraint.java
@@ -1,9 +1,9 @@
-package typinferenz;
+package de.dhbwstuttgart.typeinference;
import java.util.Vector;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.Type;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.Type;
/**
* Stellt ein Constraint dar, welches aus mehreren Constraint-Paaren besteht. Diese gelten alle stets gleichzeitig / sind per "Und" miteinander verknüpft.
diff --git a/src/typinferenz/assumptions/Assumption.java b/src/de/dhbwstuttgart/typeinference/assumptions/Assumption.java
similarity index 60%
rename from src/typinferenz/assumptions/Assumption.java
rename to src/de/dhbwstuttgart/typeinference/assumptions/Assumption.java
index 1d52b9d1..d95089ca 100644
--- a/src/typinferenz/assumptions/Assumption.java
+++ b/src/de/dhbwstuttgart/typeinference/assumptions/Assumption.java
@@ -1,10 +1,11 @@
-package typinferenz.assumptions;
+package de.dhbwstuttgart.typeinference.assumptions;
-import typinferenz.TypeInsertable;
-import typinferenz.Typeable;
-import mycompiler.myparser.JavaClassName;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
+import de.dhbwstuttgart.typeinference.Typeable;
+import de.dhbwstuttgart.typeinference.parser.JavaClassName;
import mycompiler.mytype.*;
-import mycompiler.myclass.Class;
public class Assumption {
diff --git a/src/typinferenz/assumptions/ClassAssumption.java b/src/de/dhbwstuttgart/typeinference/assumptions/ClassAssumption.java
similarity index 87%
rename from src/typinferenz/assumptions/ClassAssumption.java
rename to src/de/dhbwstuttgart/typeinference/assumptions/ClassAssumption.java
index 98b9f4b6..16699e0d 100644
--- a/src/typinferenz/assumptions/ClassAssumption.java
+++ b/src/de/dhbwstuttgart/typeinference/assumptions/ClassAssumption.java
@@ -1,7 +1,7 @@
-package typinferenz.assumptions;
+package de.dhbwstuttgart.typeinference.assumptions;
+import de.dhbwstuttgart.syntaxtree.Class;
import mycompiler.myclass.*;
-import mycompiler.myclass.Class;
import mycompiler.mytype.*;
/**
diff --git a/src/typinferenz/assumptions/ConstructorAssumption.java b/src/de/dhbwstuttgart/typeinference/assumptions/ConstructorAssumption.java
similarity index 57%
rename from src/typinferenz/assumptions/ConstructorAssumption.java
rename to src/de/dhbwstuttgart/typeinference/assumptions/ConstructorAssumption.java
index 855c40f9..8bc393bb 100644
--- a/src/typinferenz/assumptions/ConstructorAssumption.java
+++ b/src/de/dhbwstuttgart/typeinference/assumptions/ConstructorAssumption.java
@@ -1,9 +1,9 @@
-package typinferenz.assumptions;
+package de.dhbwstuttgart.typeinference.assumptions;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.Field;
-import mycompiler.myclass.Method;
-import mycompiler.mystatement.ArgumentList;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.Field;
+import de.dhbwstuttgart.syntaxtree.Method;
+import de.dhbwstuttgart.syntaxtree.statement.ArgumentList;
public class ConstructorAssumption extends MethodAssumption{
diff --git a/src/typinferenz/assumptions/FieldAssumption.java b/src/de/dhbwstuttgart/typeinference/assumptions/FieldAssumption.java
similarity index 76%
rename from src/typinferenz/assumptions/FieldAssumption.java
rename to src/de/dhbwstuttgart/typeinference/assumptions/FieldAssumption.java
index 46243e71..79b60d5c 100644
--- a/src/typinferenz/assumptions/FieldAssumption.java
+++ b/src/de/dhbwstuttgart/typeinference/assumptions/FieldAssumption.java
@@ -1,9 +1,9 @@
-package typinferenz.assumptions;
+package de.dhbwstuttgart.typeinference.assumptions;
-import mycompiler.myclass.Field;
-import mycompiler.myclass.Class;
-import mycompiler.myparser.JavaClassName;
-import mycompiler.mytype.RefType;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.Field;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.typeinference.parser.JavaClassName;
public class FieldAssumption extends Assumption {
diff --git a/src/typinferenz/assumptions/GenericVarAssumption.java b/src/de/dhbwstuttgart/typeinference/assumptions/GenericVarAssumption.java
similarity index 60%
rename from src/typinferenz/assumptions/GenericVarAssumption.java
rename to src/de/dhbwstuttgart/typeinference/assumptions/GenericVarAssumption.java
index c564878a..9f45b5c4 100644
--- a/src/typinferenz/assumptions/GenericVarAssumption.java
+++ b/src/de/dhbwstuttgart/typeinference/assumptions/GenericVarAssumption.java
@@ -1,10 +1,10 @@
-package typinferenz.assumptions;
+package de.dhbwstuttgart.typeinference.assumptions;
-import mycompiler.myparser.JavaClassName;
-import mycompiler.mystatement.LocalVarDecl;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
+import de.dhbwstuttgart.syntaxtree.statement.LocalVarDecl;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.parser.JavaClassName;
public class GenericVarAssumption extends Assumption{
diff --git a/src/typinferenz/assumptions/LocalVarAssumption.java b/src/de/dhbwstuttgart/typeinference/assumptions/LocalVarAssumption.java
similarity index 67%
rename from src/typinferenz/assumptions/LocalVarAssumption.java
rename to src/de/dhbwstuttgart/typeinference/assumptions/LocalVarAssumption.java
index 218c9fd2..11530f64 100644
--- a/src/typinferenz/assumptions/LocalVarAssumption.java
+++ b/src/de/dhbwstuttgart/typeinference/assumptions/LocalVarAssumption.java
@@ -1,8 +1,7 @@
-package typinferenz.assumptions;
+package de.dhbwstuttgart.typeinference.assumptions;
-import mycompiler.mytype.Type;
-
-import mycompiler.mystatement.LocalVarDecl;
+import de.dhbwstuttgart.syntaxtree.statement.LocalVarDecl;
+import de.dhbwstuttgart.syntaxtree.type.Type;
public class LocalVarAssumption extends Assumption {
private LocalVarDecl localVar;
diff --git a/src/typinferenz/assumptions/MethodAssumption.java b/src/de/dhbwstuttgart/typeinference/assumptions/MethodAssumption.java
similarity index 87%
rename from src/typinferenz/assumptions/MethodAssumption.java
rename to src/de/dhbwstuttgart/typeinference/assumptions/MethodAssumption.java
index 5981d0a1..98c8a564 100644
--- a/src/typinferenz/assumptions/MethodAssumption.java
+++ b/src/de/dhbwstuttgart/typeinference/assumptions/MethodAssumption.java
@@ -1,13 +1,13 @@
-package typinferenz.assumptions;
+package de.dhbwstuttgart.typeinference.assumptions;
import java.util.Iterator;
-import mycompiler.myclass.FormalParameter;
-import mycompiler.myclass.Method;
-import mycompiler.myclass.Class;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.FormalParameter;
+import de.dhbwstuttgart.syntaxtree.Method;
+import de.dhbwstuttgart.syntaxtree.type.Type;
import mycompiler.mytypereconstruction.typeassumption.CParaTypeAssumption;
import mycompiler.mytype.*;
-import mycompiler.myclass.Class;
public class MethodAssumption extends FieldAssumption {
diff --git a/src/typinferenz/assumptions/ParameterAssumption.java b/src/de/dhbwstuttgart/typeinference/assumptions/ParameterAssumption.java
similarity index 72%
rename from src/typinferenz/assumptions/ParameterAssumption.java
rename to src/de/dhbwstuttgart/typeinference/assumptions/ParameterAssumption.java
index 543573d6..ffbcec8f 100644
--- a/src/typinferenz/assumptions/ParameterAssumption.java
+++ b/src/de/dhbwstuttgart/typeinference/assumptions/ParameterAssumption.java
@@ -1,6 +1,6 @@
-package typinferenz.assumptions;
+package de.dhbwstuttgart.typeinference.assumptions;
-import mycompiler.myclass.FormalParameter;
+import de.dhbwstuttgart.syntaxtree.FormalParameter;
/**
* ParameterAssumptions repräsentieren die Methodenparameter innerhalb des Rumpfes einer Methode.
diff --git a/src/typinferenz/assumptions/TypeAssumptions.java b/src/de/dhbwstuttgart/typeinference/assumptions/TypeAssumptions.java
similarity index 96%
rename from src/typinferenz/assumptions/TypeAssumptions.java
rename to src/de/dhbwstuttgart/typeinference/assumptions/TypeAssumptions.java
index e2df73ab..13ee6266 100755
--- a/src/typinferenz/assumptions/TypeAssumptions.java
+++ b/src/de/dhbwstuttgart/typeinference/assumptions/TypeAssumptions.java
@@ -1,21 +1,19 @@
-package typinferenz.assumptions;
+package de.dhbwstuttgart.typeinference.assumptions;
import java.util.Iterator;
-
-import mycompiler.IItemWithOffset;
-import mycompiler.myclass.Class;
-
import java.util.Vector;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.FunN;
+import de.dhbwstuttgart.typeinference.FunNInterface;
+import de.dhbwstuttgart.typeinference.FunNMethod;
+import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-import typinferenz.FunN;
-import typinferenz.FunNInterface;
-import typinferenz.FunNMethod;
-import typinferenz.exceptions.TypeinferenceException;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
import mycompiler.mytypereconstruction.set.CTypeAssumptionSet;
import mycompiler.mytypereconstruction.typeassumption.CInstVarTypeAssumption;
import mycompiler.mytypereconstruction.typeassumption.CLocalVarTypeAssumption;
diff --git a/src/typinferenz/exceptions/DebugException.java b/src/de/dhbwstuttgart/typeinference/exceptions/DebugException.java
similarity index 72%
rename from src/typinferenz/exceptions/DebugException.java
rename to src/de/dhbwstuttgart/typeinference/exceptions/DebugException.java
index 2043320a..1f2e2775 100644
--- a/src/typinferenz/exceptions/DebugException.java
+++ b/src/de/dhbwstuttgart/typeinference/exceptions/DebugException.java
@@ -1,4 +1,4 @@
-package typinferenz.exceptions;
+package de.dhbwstuttgart.typeinference.exceptions;
public class DebugException extends RuntimeException {
diff --git a/src/typinferenz/exceptions/ParserError.java b/src/de/dhbwstuttgart/typeinference/exceptions/ParserError.java
similarity index 56%
rename from src/typinferenz/exceptions/ParserError.java
rename to src/de/dhbwstuttgart/typeinference/exceptions/ParserError.java
index 02105ba5..7d1d51ef 100644
--- a/src/typinferenz/exceptions/ParserError.java
+++ b/src/de/dhbwstuttgart/typeinference/exceptions/ParserError.java
@@ -1,6 +1,6 @@
-package typinferenz.exceptions;
+package de.dhbwstuttgart.typeinference.exceptions;
-import mycompiler.myparser.JavaParser.yyException;
+import de.dhbwstuttgart.typeinference.parser.JavaParser.yyException;
public class ParserError extends TypeinferenceException{
diff --git a/src/typinferenz/exceptions/TypeinferenceException.java b/src/de/dhbwstuttgart/typeinference/exceptions/TypeinferenceException.java
similarity index 92%
rename from src/typinferenz/exceptions/TypeinferenceException.java
rename to src/de/dhbwstuttgart/typeinference/exceptions/TypeinferenceException.java
index 2fe6897e..7a72266c 100755
--- a/src/typinferenz/exceptions/TypeinferenceException.java
+++ b/src/de/dhbwstuttgart/typeinference/exceptions/TypeinferenceException.java
@@ -1,6 +1,6 @@
-package typinferenz.exceptions;
+package de.dhbwstuttgart.typeinference.exceptions;
-import mycompiler.IItemWithOffset;
+import de.dhbwstuttgart.core.IItemWithOffset;
/**
* Eine RuntimeException, welche bei einem Fehler während des Typinferenzalgorithmus ausgelöst wird.
diff --git a/bin/mycompiler/myparser/.cvsignore b/src/de/dhbwstuttgart/typeinference/parser/.cvsignore
similarity index 100%
rename from bin/mycompiler/myparser/.cvsignore
rename to src/de/dhbwstuttgart/typeinference/parser/.cvsignore
diff --git a/src/mycompiler/myparser/BoundedClassIdentifierList.java b/src/de/dhbwstuttgart/typeinference/parser/BoundedClassIdentifierList.java
similarity index 75%
rename from src/mycompiler/myparser/BoundedClassIdentifierList.java
rename to src/de/dhbwstuttgart/typeinference/parser/BoundedClassIdentifierList.java
index da4a48cd..1dcdb4d0 100644
--- a/src/mycompiler/myparser/BoundedClassIdentifierList.java
+++ b/src/de/dhbwstuttgart/typeinference/parser/BoundedClassIdentifierList.java
@@ -1,9 +1,9 @@
-package mycompiler.myparser;
+package de.dhbwstuttgart.typeinference.parser;
import java.util.Vector;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
public class BoundedClassIdentifierList extends Vector{
diff --git a/src/mycompiler/myparser/ClassAndParameter.java b/src/de/dhbwstuttgart/typeinference/parser/ClassAndParameter.java
similarity index 94%
rename from src/mycompiler/myparser/ClassAndParameter.java
rename to src/de/dhbwstuttgart/typeinference/parser/ClassAndParameter.java
index a72acd31..ef928aee 100755
--- a/src/mycompiler/myparser/ClassAndParameter.java
+++ b/src/de/dhbwstuttgart/typeinference/parser/ClassAndParameter.java
@@ -1,12 +1,12 @@
// ino.module.ClassAndParameter.8613.package
-package mycompiler.myparser;
+package de.dhbwstuttgart.typeinference.parser;
// ino.end
// ino.module.ClassAndParameter.8613.import
import java.util.Vector;
-import mycompiler.mytype.ParaList;
-import mycompiler.mytype.Type;
-// ino.end
+
+import de.dhbwstuttgart.syntaxtree.type.ParaList;
+import de.dhbwstuttgart.syntaxtree.type.Type;
// ino.class.ClassAndParameter.24323.description type=javadoc
/**
diff --git a/src/mycompiler/myparser/GenericVarDeclarationList.java b/src/de/dhbwstuttgart/typeinference/parser/GenericVarDeclarationList.java
similarity index 74%
rename from src/mycompiler/myparser/GenericVarDeclarationList.java
rename to src/de/dhbwstuttgart/typeinference/parser/GenericVarDeclarationList.java
index fc9f6727..0833d370 100644
--- a/src/mycompiler/myparser/GenericVarDeclarationList.java
+++ b/src/de/dhbwstuttgart/typeinference/parser/GenericVarDeclarationList.java
@@ -1,9 +1,9 @@
-package mycompiler.myparser;
+package de.dhbwstuttgart.typeinference.parser;
import java.util.Vector;
-import typinferenz.exceptions.DebugException;
-import mycompiler.mytype.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
public class GenericVarDeclarationList {
diff --git a/src/mycompiler/myparser/InterfaceAndParameter.java b/src/de/dhbwstuttgart/typeinference/parser/InterfaceAndParameter.java
similarity index 94%
rename from src/mycompiler/myparser/InterfaceAndParameter.java
rename to src/de/dhbwstuttgart/typeinference/parser/InterfaceAndParameter.java
index b003846c..b13858d9 100755
--- a/src/mycompiler/myparser/InterfaceAndParameter.java
+++ b/src/de/dhbwstuttgart/typeinference/parser/InterfaceAndParameter.java
@@ -1,12 +1,12 @@
// ino.module.InterfaceAndParameter.8614.package
-package mycompiler.myparser;
+package de.dhbwstuttgart.typeinference.parser;
// ino.end
// ino.module.InterfaceAndParameter.8614.import
import java.util.Vector;
-import mycompiler.mytype.ParaList;
-import mycompiler.mytype.Type;
-// ino.end
+
+import de.dhbwstuttgart.syntaxtree.type.ParaList;
+import de.dhbwstuttgart.syntaxtree.type.Type;
// ino.class.InterfaceAndParameter.24353.description type=javadoc
/**
diff --git a/src/mycompiler/myparser/InterfaceList.java b/src/de/dhbwstuttgart/typeinference/parser/InterfaceList.java
similarity index 91%
rename from src/mycompiler/myparser/InterfaceList.java
rename to src/de/dhbwstuttgart/typeinference/parser/InterfaceList.java
index c09a2c55..3e20555f 100755
--- a/src/mycompiler/myparser/InterfaceList.java
+++ b/src/de/dhbwstuttgart/typeinference/parser/InterfaceList.java
@@ -1,11 +1,11 @@
// ino.module.InterfaceList.8615.package
-package mycompiler.myparser;
+package de.dhbwstuttgart.typeinference.parser;
// ino.end
// ino.module.InterfaceList.8615.import
import java.util.Vector;
-import mycompiler.myclass.UsedId;
-// ino.end
+
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
// ino.class.InterfaceList.24383.description type=javadoc
/**
diff --git a/src/mycompiler/myparser/JavaClassName.java b/src/de/dhbwstuttgart/typeinference/parser/JavaClassName.java
similarity index 96%
rename from src/mycompiler/myparser/JavaClassName.java
rename to src/de/dhbwstuttgart/typeinference/parser/JavaClassName.java
index adf9b054..12c41520 100644
--- a/src/mycompiler/myparser/JavaClassName.java
+++ b/src/de/dhbwstuttgart/typeinference/parser/JavaClassName.java
@@ -1,8 +1,8 @@
-package mycompiler.myparser;
+package de.dhbwstuttgart.typeinference.parser;
import java.util.Vector;
-import mycompiler.mytype.RefType;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
/**
* Stellt den Namen einer Java Klasse dar.
diff --git a/src/mycompiler/myparser/JavaLexer.java b/src/de/dhbwstuttgart/typeinference/parser/JavaLexer.java
similarity index 99%
rename from src/mycompiler/myparser/JavaLexer.java
rename to src/de/dhbwstuttgart/typeinference/parser/JavaLexer.java
index 88c7f7cd..92f09f6a 100644
--- a/src/mycompiler/myparser/JavaLexer.java
+++ b/src/de/dhbwstuttgart/typeinference/parser/JavaLexer.java
@@ -6,7 +6,7 @@
* *
********************************************/
// user code:
-package mycompiler.myparser;
+package de.dhbwstuttgart.typeinference.parser;
public class JavaLexer {
diff --git a/bin/mycompiler/myparser/JavaLexer.lex b/src/de/dhbwstuttgart/typeinference/parser/JavaLexer.lex
similarity index 100%
rename from bin/mycompiler/myparser/JavaLexer.lex
rename to src/de/dhbwstuttgart/typeinference/parser/JavaLexer.lex
diff --git a/src/mycompiler/myparser/JavaParser.java b/src/de/dhbwstuttgart/typeinference/parser/JavaParser.java
similarity index 97%
rename from src/mycompiler/myparser/JavaParser.java
rename to src/de/dhbwstuttgart/typeinference/parser/JavaParser.java
index de680870..8b944a83 100644
--- a/src/mycompiler/myparser/JavaParser.java
+++ b/src/de/dhbwstuttgart/typeinference/parser/JavaParser.java
@@ -6,25 +6,96 @@
Backup von JavaParser.jay 10.April 17 Uhr
*/
-package mycompiler.myparser;
+package de.dhbwstuttgart.typeinference.parser;
-import mycompiler.myclass.FieldDeclaration;
-import mycompiler.myclass.GenericDeclarationList;
-import mycompiler.myclass.Field;
import java.util.Vector;
-import mycompiler.SourceFile;
-import mycompiler.AClassOrInterface;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.ClassBody;
-import mycompiler.myclass.Constructor;
-import mycompiler.myclass.Constant;
-import mycompiler.myclass.ImportDeclarations;
-import mycompiler.myclass.DeclId;
-import mycompiler.myclass.ExceptionList;
-import mycompiler.myclass.FormalParameter;
-import mycompiler.myclass.Method;
-import mycompiler.myclass.ParameterList;
-import mycompiler.myclass.UsedId;
+
+import de.dhbwstuttgart.core.AClassOrInterface;
+import de.dhbwstuttgart.core.SourceFile;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.ClassBody;
+import de.dhbwstuttgart.syntaxtree.Constant;
+import de.dhbwstuttgart.syntaxtree.Constructor;
+import de.dhbwstuttgart.syntaxtree.ExceptionList;
+import de.dhbwstuttgart.syntaxtree.Field;
+import de.dhbwstuttgart.syntaxtree.FieldDeclaration;
+import de.dhbwstuttgart.syntaxtree.FormalParameter;
+import de.dhbwstuttgart.syntaxtree.GenericDeclarationList;
+import de.dhbwstuttgart.syntaxtree.ImportDeclarations;
+import de.dhbwstuttgart.syntaxtree.Method;
+import de.dhbwstuttgart.syntaxtree.ParameterList;
+import de.dhbwstuttgart.syntaxtree.misc.DeclId;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.operator.AndOp;
+import de.dhbwstuttgart.syntaxtree.operator.DivideOp;
+import de.dhbwstuttgart.syntaxtree.operator.EqualOp;
+import de.dhbwstuttgart.syntaxtree.operator.GreaterEquOp;
+import de.dhbwstuttgart.syntaxtree.operator.GreaterOp;
+import de.dhbwstuttgart.syntaxtree.operator.LessEquOp;
+import de.dhbwstuttgart.syntaxtree.operator.LessOp;
+import de.dhbwstuttgart.syntaxtree.operator.MinusOp;
+import de.dhbwstuttgart.syntaxtree.operator.ModuloOp;
+import de.dhbwstuttgart.syntaxtree.operator.NotEqualOp;
+import de.dhbwstuttgart.syntaxtree.operator.Operator;
+import de.dhbwstuttgart.syntaxtree.operator.OrOp;
+import de.dhbwstuttgart.syntaxtree.operator.PlusOp;
+import de.dhbwstuttgart.syntaxtree.operator.TimesOp;
+import de.dhbwstuttgart.syntaxtree.statement.ArgumentList;
+import de.dhbwstuttgart.syntaxtree.statement.Assign;
+import de.dhbwstuttgart.syntaxtree.statement.Binary;
+import de.dhbwstuttgart.syntaxtree.statement.Block;
+import de.dhbwstuttgart.syntaxtree.statement.BoolLiteral;
+import de.dhbwstuttgart.syntaxtree.statement.CastExpr;
+import de.dhbwstuttgart.syntaxtree.statement.CharLiteral;
+import de.dhbwstuttgart.syntaxtree.statement.DoubleLiteral;
+import de.dhbwstuttgart.syntaxtree.statement.EmptyStmt;
+import de.dhbwstuttgart.syntaxtree.statement.Expr;
+import de.dhbwstuttgart.syntaxtree.statement.ExprStmt;
+import de.dhbwstuttgart.syntaxtree.statement.FloatLiteral;
+import de.dhbwstuttgart.syntaxtree.statement.ForStmt;
+import de.dhbwstuttgart.syntaxtree.statement.IfStmt;
+import de.dhbwstuttgart.syntaxtree.statement.InstVar;
+import de.dhbwstuttgart.syntaxtree.statement.InstanceOf;
+import de.dhbwstuttgart.syntaxtree.statement.IntLiteral;
+import de.dhbwstuttgart.syntaxtree.statement.LambdaExpression;
+import de.dhbwstuttgart.syntaxtree.statement.Literal;
+import de.dhbwstuttgart.syntaxtree.statement.LocalOrFieldVar;
+import de.dhbwstuttgart.syntaxtree.statement.LocalVarDecl;
+import de.dhbwstuttgart.syntaxtree.statement.LongLiteral;
+import de.dhbwstuttgart.syntaxtree.statement.MethodCall;
+import de.dhbwstuttgart.syntaxtree.statement.NegativeExpr;
+import de.dhbwstuttgart.syntaxtree.statement.NewClass;
+import de.dhbwstuttgart.syntaxtree.statement.NotExpr;
+import de.dhbwstuttgart.syntaxtree.statement.Null;
+import de.dhbwstuttgart.syntaxtree.statement.PositivExpr;
+import de.dhbwstuttgart.syntaxtree.statement.PostDecExpr;
+import de.dhbwstuttgart.syntaxtree.statement.PostIncExpr;
+import de.dhbwstuttgart.syntaxtree.statement.PreDecExpr;
+import de.dhbwstuttgart.syntaxtree.statement.PreIncExpr;
+import de.dhbwstuttgart.syntaxtree.statement.Receiver;
+import de.dhbwstuttgart.syntaxtree.statement.Return;
+import de.dhbwstuttgart.syntaxtree.statement.Statement;
+import de.dhbwstuttgart.syntaxtree.statement.StringLiteral;
+import de.dhbwstuttgart.syntaxtree.statement.This;
+import de.dhbwstuttgart.syntaxtree.statement.UnaryMinus;
+import de.dhbwstuttgart.syntaxtree.statement.UnaryNot;
+import de.dhbwstuttgart.syntaxtree.statement.UnaryPlus;
+import de.dhbwstuttgart.syntaxtree.statement.WhileStmt;
+import de.dhbwstuttgart.syntaxtree.type.BaseType;
+import de.dhbwstuttgart.syntaxtree.type.BooleanType;
+import de.dhbwstuttgart.syntaxtree.type.BoundedGenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.CharacterType;
+import de.dhbwstuttgart.syntaxtree.type.ExtendsWildcardType;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.IntegerType;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.ParaList;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.SuperWildcardType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.syntaxtree.type.Void;
+import de.dhbwstuttgart.syntaxtree.type.WildcardType;
import mycompiler.myinterface.Interface;
import mycompiler.myinterface.InterfaceBody;
import mycompiler.mymodifier.Abstract;
@@ -35,76 +106,6 @@ import mycompiler.mymodifier.Private;
import mycompiler.mymodifier.Protected;
import mycompiler.mymodifier.Public;
import mycompiler.mymodifier.Static;
-import mycompiler.myoperator.AndOp;
-import mycompiler.myoperator.DivideOp;
-import mycompiler.myoperator.EqualOp;
-import mycompiler.myoperator.GreaterEquOp;
-import mycompiler.myoperator.GreaterOp;
-import mycompiler.myoperator.LessEquOp;
-import mycompiler.myoperator.LessOp;
-import mycompiler.myoperator.MinusOp;
-import mycompiler.myoperator.ModuloOp;
-import mycompiler.myoperator.NotEqualOp;
-import mycompiler.myoperator.Operator;
-import mycompiler.myoperator.OrOp;
-import mycompiler.myoperator.PlusOp;
-import mycompiler.myoperator.TimesOp;
-import mycompiler.mystatement.ArgumentList;
-import mycompiler.mystatement.Assign;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Block;
-import mycompiler.mystatement.BoolLiteral;
-import mycompiler.mystatement.FloatLiteral;
-import mycompiler.mystatement.DoubleLiteral;
-import mycompiler.mystatement.LongLiteral;
-import mycompiler.mystatement.CastExpr;
-import mycompiler.mystatement.CharLiteral;
-import mycompiler.mystatement.EmptyStmt;
-import mycompiler.mystatement.Expr;
-import mycompiler.mystatement.ExprStmt;
-import mycompiler.mystatement.IfStmt;
-import mycompiler.mystatement.InstanceOf;
-import mycompiler.mystatement.IntLiteral;
-import mycompiler.mystatement.Literal;
-import mycompiler.mystatement.InstVar;
-import mycompiler.mystatement.LocalOrFieldVar;
-import mycompiler.mystatement.LocalVarDecl;
-import mycompiler.mystatement.MethodCall;
-import mycompiler.mystatement.NegativeExpr;
-import mycompiler.mystatement.NewClass;
-import mycompiler.mystatement.NotExpr;
-import mycompiler.mystatement.Null;
-import mycompiler.mystatement.PositivExpr;
-import mycompiler.mystatement.PostDecExpr;
-import mycompiler.mystatement.PostIncExpr;
-import mycompiler.mystatement.PreDecExpr;
-import mycompiler.mystatement.PreIncExpr;
-import mycompiler.mystatement.Receiver;
-import mycompiler.mystatement.Return;
-import mycompiler.mystatement.Statement;
-import mycompiler.mystatement.StringLiteral;
-import mycompiler.mystatement.This;
-import mycompiler.mystatement.UnaryMinus;
-import mycompiler.mystatement.UnaryNot;
-import mycompiler.mystatement.UnaryPlus;
-import mycompiler.mystatement.WhileStmt;
-import mycompiler.mystatement.ForStmt;
-import mycompiler.mystatement.LambdaExpression;
-import mycompiler.mytype.BaseType;
-import mycompiler.mytype.BooleanType;
-import mycompiler.mytype.CharacterType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.BoundedGenericTypeVar;
-import mycompiler.mytype.IntegerType;
-import mycompiler.mytype.ParaList;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytype.Void;
-import mycompiler.mytype.WildcardType;
-import mycompiler.mytype.ExtendsWildcardType;
-import mycompiler.mytype.SuperWildcardType;
-import mycompiler.mytype.Pair;
public class JavaParser{
public Vector path = new Vector();
diff --git a/bin/mycompiler/myparser/JavaParser.jay b/src/de/dhbwstuttgart/typeinference/parser/JavaParser.jay
similarity index 100%
rename from bin/mycompiler/myparser/JavaParser.jay
rename to src/de/dhbwstuttgart/typeinference/parser/JavaParser.jay
diff --git a/bin/mycompiler/myparser/JavaParser_old.jay b/src/de/dhbwstuttgart/typeinference/parser/JavaParser_old.jay
similarity index 100%
rename from bin/mycompiler/myparser/JavaParser_old.jay
rename to src/de/dhbwstuttgart/typeinference/parser/JavaParser_old.jay
diff --git a/src/mycompiler/myparser/Scanner.java b/src/de/dhbwstuttgart/typeinference/parser/Scanner.java
similarity index 96%
rename from src/mycompiler/myparser/Scanner.java
rename to src/de/dhbwstuttgart/typeinference/parser/Scanner.java
index 95553520..e8a0f9b9 100755
--- a/src/mycompiler/myparser/Scanner.java
+++ b/src/de/dhbwstuttgart/typeinference/parser/Scanner.java
@@ -1,5 +1,5 @@
// ino.module.Scanner.8618.package
-package mycompiler.myparser;
+package de.dhbwstuttgart.typeinference.parser;
// ino.end
// ino.class.Scanner.24842.declaration
public class Scanner extends JavaLexer implements JavaParser.yyInput
diff --git a/src/mycompiler/myparser/Token.java b/src/de/dhbwstuttgart/typeinference/parser/Token.java
similarity index 98%
rename from src/mycompiler/myparser/Token.java
rename to src/de/dhbwstuttgart/typeinference/parser/Token.java
index 3a7133bf..4c433d08 100755
--- a/src/mycompiler/myparser/Token.java
+++ b/src/de/dhbwstuttgart/typeinference/parser/Token.java
@@ -1,5 +1,5 @@
// ino.module.Token.8619.package
-package mycompiler.myparser;
+package de.dhbwstuttgart.typeinference.parser;
// ino.end
// ino.class.Token.24859.declaration
public class Token
diff --git a/src/typinferenz/typedeployment/GenericTypeInsertPoint.java b/src/de/dhbwstuttgart/typeinference/typedeployment/GenericTypeInsertPoint.java
similarity index 87%
rename from src/typinferenz/typedeployment/GenericTypeInsertPoint.java
rename to src/de/dhbwstuttgart/typeinference/typedeployment/GenericTypeInsertPoint.java
index 61322247..5939a91b 100644
--- a/src/typinferenz/typedeployment/GenericTypeInsertPoint.java
+++ b/src/de/dhbwstuttgart/typeinference/typedeployment/GenericTypeInsertPoint.java
@@ -1,20 +1,20 @@
-package typinferenz.typedeployment;
+package de.dhbwstuttgart.typeinference.typedeployment;
import java.util.Iterator;
import java.util.Vector;
-import typinferenz.GenericTypeInsertable;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.TypeInsertable;
-import typinferenz.exceptions.DebugException;
-import mycompiler.IItemWithOffset;
-import mycompiler.SyntaxTreeNode;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.GenericTypeInsertable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
/**
* Ein InsertPoint für Generische Variablen
diff --git a/src/typinferenz/typedeployment/SourcePatchPoint.java b/src/de/dhbwstuttgart/typeinference/typedeployment/SourcePatchPoint.java
similarity index 69%
rename from src/typinferenz/typedeployment/SourcePatchPoint.java
rename to src/de/dhbwstuttgart/typeinference/typedeployment/SourcePatchPoint.java
index b6139669..75c69b01 100644
--- a/src/typinferenz/typedeployment/SourcePatchPoint.java
+++ b/src/de/dhbwstuttgart/typeinference/typedeployment/SourcePatchPoint.java
@@ -1,8 +1,8 @@
-package typinferenz.typedeployment;
+package de.dhbwstuttgart.typeinference.typedeployment;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.TypeInsertable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
public abstract class SourcePatchPoint implements Comparable{
protected ResultSet resultSet;
diff --git a/src/typinferenz/typedeployment/TypeInsertPoint.java b/src/de/dhbwstuttgart/typeinference/typedeployment/TypeInsertPoint.java
similarity index 85%
rename from src/typinferenz/typedeployment/TypeInsertPoint.java
rename to src/de/dhbwstuttgart/typeinference/typedeployment/TypeInsertPoint.java
index a00258b1..54ad0c1a 100644
--- a/src/typinferenz/typedeployment/TypeInsertPoint.java
+++ b/src/de/dhbwstuttgart/typeinference/typedeployment/TypeInsertPoint.java
@@ -1,16 +1,18 @@
-package typinferenz.typedeployment;
+package de.dhbwstuttgart.typeinference.typedeployment;
import java.util.Vector;
-import typinferenz.GenericTypeInsertable;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.TypeInsertable;
-import typinferenz.exceptions.DebugException;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.Field;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.GenericTypeInsertable;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
+import de.dhbwstuttgart.typeinference.exceptions.DebugException;
import mycompiler.myclass.*;
-import mycompiler.myclass.Class;
-import mycompiler.IItemWithOffset;
-import mycompiler.SyntaxTreeNode;
import mycompiler.mytype.*;
import mycompiler.mytypereconstruction.replacementlistener.ITypeReplacementListener;
diff --git a/src/typinferenz/typedeployment/TypeInsertSet.java b/src/de/dhbwstuttgart/typeinference/typedeployment/TypeInsertSet.java
similarity index 89%
rename from src/typinferenz/typedeployment/TypeInsertSet.java
rename to src/de/dhbwstuttgart/typeinference/typedeployment/TypeInsertSet.java
index 5503cf62..5d939f3c 100644
--- a/src/typinferenz/typedeployment/TypeInsertSet.java
+++ b/src/de/dhbwstuttgart/typeinference/typedeployment/TypeInsertSet.java
@@ -1,4 +1,4 @@
-package typinferenz.typedeployment;
+package de.dhbwstuttgart.typeinference.typedeployment;
import java.util.Collections;
import java.util.HashMap;
@@ -7,15 +7,15 @@ import java.util.Vector;
import org.apache.log4j.Logger;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-import typinferenz.TypeInsertable;
-import mycompiler.IItemWithOffset;
-import mycompiler.SyntaxTreeNode;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.Pair;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.TypePlaceholder;
+import de.dhbwstuttgart.core.IItemWithOffset;
+import de.dhbwstuttgart.core.SyntaxTreeNode;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.Pair;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
+import de.dhbwstuttgart.typeinference.TypeInsertable;
/**
* Bündelt ein Set von TypeInsertPoints, welche zu einem TypeInferenceResultSet gehören.
diff --git a/src/mycompiler/mybytecode/ClassFile.java b/src/mycompiler/mybytecode/ClassFile.java
index 619c8aed..2306a10f 100755
--- a/src/mycompiler/mybytecode/ClassFile.java
+++ b/src/mycompiler/mybytecode/ClassFile.java
@@ -13,20 +13,25 @@ import java.io.OutputStream;
import java.lang.reflect.Array;
import java.util.Vector;
-import mycompiler.myclass.ParameterList;
-import mycompiler.myclass.UsedId;
-import mycompiler.MyCompiler;
import mycompiler.myexception.JVMCodeException;
import mycompiler.myinterface.Interface;
-import mycompiler.mystatement.Assign;
-import mycompiler.mystatement.Block;
-import mycompiler.mytype.Type;
-import mycompiler.SourceFile;
import org.apache.log4j.Logger;
// ino.end
+
+
+
+import de.dhbwstuttgart.core.MyCompiler;
+import de.dhbwstuttgart.core.SourceFile;
+import de.dhbwstuttgart.syntaxtree.ParameterList;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.statement.Assign;
+import de.dhbwstuttgart.syntaxtree.statement.Block;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+
+
// ino.class.ClassFile.21492.description type=javadoc
/**
* Darstellung einer Klassendatei aus Sicht fuer die JVM.
diff --git a/src/mycompiler/mybytecode/CodeAttribute.java b/src/mycompiler/mybytecode/CodeAttribute.java
index 86997fdc..d8844f20 100755
--- a/src/mycompiler/mybytecode/CodeAttribute.java
+++ b/src/mycompiler/mybytecode/CodeAttribute.java
@@ -14,10 +14,9 @@ import java.io.OutputStream;
import java.lang.reflect.Array;
import java.util.Vector;
+import de.dhbwstuttgart.syntaxtree.type.Type;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.Type;
-// ino.end
// ino.class.CodeAttribute.21681.declaration
public class CodeAttribute extends Attribute
diff --git a/src/mycompiler/mybytecode/JVMCode.java b/src/mycompiler/mybytecode/JVMCode.java
index aaa0392b..7e3e5c90 100755
--- a/src/mycompiler/mybytecode/JVMCode.java
+++ b/src/mycompiler/mybytecode/JVMCode.java
@@ -3,11 +3,14 @@ package mycompiler.mybytecode;
// ino.end
// ino.module.JVMCode.8547.import
import java.util.Vector;
+
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.GenericTypeVar;
+
import org.apache.log4j.Logger;
// ino.end
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+
// ino.class.JVMCode.22140.description type=javadoc
/**
* Enthaelt die Befehle fuer die Umsetzung in JVM-Code und
diff --git a/src/mycompiler/mybytecode/SignatureInfo.java b/src/mycompiler/mybytecode/SignatureInfo.java
index a7d2e6c1..8bb42166 100755
--- a/src/mycompiler/mybytecode/SignatureInfo.java
+++ b/src/mycompiler/mybytecode/SignatureInfo.java
@@ -8,17 +8,20 @@ import java.io.IOException;
import java.io.OutputStream;
import java.util.Vector;
-import mycompiler.myclass.ParameterList;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.JVMCodeException;
-import mycompiler.mytype.BoundedGenericTypeVar;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import org.apache.log4j.Logger;
// ino.end
+
+
+
+import de.dhbwstuttgart.syntaxtree.ParameterList;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.type.BoundedGenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
// ino.class.SignatureInfo.22968.description type=javadoc
diff --git a/src/mycompiler/myexception/CTypeReconstructionException.java b/src/mycompiler/myexception/CTypeReconstructionException.java
index ccb15f67..132daf7b 100755
--- a/src/mycompiler/myexception/CTypeReconstructionException.java
+++ b/src/mycompiler/myexception/CTypeReconstructionException.java
@@ -4,8 +4,8 @@ package mycompiler.myexception;
// ino.module.CTypeReconstructionException.8572.import
import java.util.Vector;
-import mycompiler.IItemWithOffset;
-// ino.end
+
+import de.dhbwstuttgart.core.IItemWithOffset;
// ino.class.CTypeReconstructionException.23746.description type=javadoc
/**
diff --git a/src/mycompiler/myinterface/Interface.java b/src/mycompiler/myinterface/Interface.java
index 2e7cad7f..d19a49b1 100755
--- a/src/mycompiler/myinterface/Interface.java
+++ b/src/mycompiler/myinterface/Interface.java
@@ -5,28 +5,27 @@ package mycompiler.myinterface;
// ino.module.Interface.8582.import
import java.util.Vector;
-import mycompiler.AClassOrInterface;
+import de.dhbwstuttgart.core.AClassOrInterface;
+import de.dhbwstuttgart.core.SourceFile;
+import de.dhbwstuttgart.syntaxtree.Class;
+import de.dhbwstuttgart.syntaxtree.ClassHelper;
+import de.dhbwstuttgart.syntaxtree.Constant;
+import de.dhbwstuttgart.syntaxtree.FormalParameter;
+import de.dhbwstuttgart.syntaxtree.Method;
+import de.dhbwstuttgart.syntaxtree.ParameterList;
+import de.dhbwstuttgart.syntaxtree.misc.UsedId;
+import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
+import de.dhbwstuttgart.syntaxtree.type.RefType;
+import de.dhbwstuttgart.syntaxtree.type.Type;
+import de.dhbwstuttgart.typeinference.TypeinferenceResultSet;
import mycompiler.mybytecode.ClassFile;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.ClassHelper;
-import mycompiler.myclass.Constant;
-import mycompiler.myclass.FormalParameter;
-import mycompiler.myclass.Method;
-import mycompiler.myclass.ParameterList;
-import mycompiler.myclass.UsedId;
import mycompiler.myexception.JVMCodeException;
import mycompiler.mymodifier.Modifiers;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
import mycompiler.mytypereconstruction.CIntersectionType;
-import mycompiler.mytypereconstruction.TypeinferenceResultSet;
import mycompiler.mytypereconstruction.set.CTypeAssumptionSet;
import mycompiler.mytypereconstruction.typeassumption.CInstVarTypeAssumption;
import mycompiler.mytypereconstruction.typeassumption.CMethodTypeAssumption;
import mycompiler.mytypereconstruction.typeassumption.CParaTypeAssumption;
-import mycompiler.SourceFile;
-// ino.end
/**
* Ein Interface ist eine abstrakte Klasse, erbt daher von Class
diff --git a/src/mycompiler/myinterface/InterfaceBody.java b/src/mycompiler/myinterface/InterfaceBody.java
index 35123ef2..56135a0a 100755
--- a/src/mycompiler/myinterface/InterfaceBody.java
+++ b/src/mycompiler/myinterface/InterfaceBody.java
@@ -5,11 +5,10 @@ package mycompiler.myinterface;
// ino.module.InterfaceBody.8583.import
import java.util.Vector;
-import mycompiler.myclass.Field;
-
+import de.dhbwstuttgart.syntaxtree.Constant;
+import de.dhbwstuttgart.syntaxtree.Field;
+import de.dhbwstuttgart.syntaxtree.Method;
import mycompiler.mybytecode.ClassFile;
-import mycompiler.myclass.Constant;
-import mycompiler.myclass.Method;
import mycompiler.myexception.JVMCodeException;
import mycompiler.mymodifier.Modifiers;
// ino.end
diff --git a/src/mycompiler/mymodifier/Abstract.java b/src/mycompiler/mymodifier/Abstract.java
index 17a4c21e..69027ed7 100755
--- a/src/mycompiler/mymodifier/Abstract.java
+++ b/src/mycompiler/mymodifier/Abstract.java
@@ -1,9 +1,8 @@
// ino.module.Abstract.8585.package
package mycompiler.mymodifier;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-// ino.end
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.class.Abstract.24015.description type=javadoc
diff --git a/src/mycompiler/mymodifier/Final.java b/src/mycompiler/mymodifier/Final.java
index 487b6424..8330eba5 100755
--- a/src/mycompiler/mymodifier/Final.java
+++ b/src/mycompiler/mymodifier/Final.java
@@ -1,9 +1,8 @@
// ino.module.Final.8586.package
package mycompiler.mymodifier;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-// ino.end
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.class.Final.24022.description type=javadoc
diff --git a/src/mycompiler/mymodifier/InterfaceModifier.java b/src/mycompiler/mymodifier/InterfaceModifier.java
index 6c38c8c3..8de2bee1 100755
--- a/src/mycompiler/mymodifier/InterfaceModifier.java
+++ b/src/mycompiler/mymodifier/InterfaceModifier.java
@@ -3,8 +3,8 @@
*/
package mycompiler.mymodifier;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
/**
* @author Daniel
diff --git a/src/mycompiler/mymodifier/Modifier.java b/src/mycompiler/mymodifier/Modifier.java
index 61430824..1d72d4e7 100755
--- a/src/mycompiler/mymodifier/Modifier.java
+++ b/src/mycompiler/mymodifier/Modifier.java
@@ -1,8 +1,8 @@
// ino.module.Modifier.8587.package
package mycompiler.mymodifier;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.end
// ino.class.Modifier.24029.declaration
diff --git a/src/mycompiler/mymodifier/Modifiers.java b/src/mycompiler/mymodifier/Modifiers.java
index 7ae00aeb..c51a0ccd 100755
--- a/src/mycompiler/mymodifier/Modifiers.java
+++ b/src/mycompiler/mymodifier/Modifiers.java
@@ -5,11 +5,11 @@ package mycompiler.mymodifier;
// ino.module.Modifiers.8588.import
import java.util.Vector;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.syntaxtree.type.BaseType;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.end
-import mycompiler.mytype.BaseType;
// ino.class.Modifiers.24035.description type=javadoc
/**
diff --git a/src/mycompiler/mymodifier/Private.java b/src/mycompiler/mymodifier/Private.java
index d2ab98f5..4b36125c 100755
--- a/src/mycompiler/mymodifier/Private.java
+++ b/src/mycompiler/mymodifier/Private.java
@@ -1,9 +1,8 @@
// ino.module.Private.8589.package
package mycompiler.mymodifier;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-// ino.end
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.class.Private.24059.declaration
diff --git a/src/mycompiler/mymodifier/Protected.java b/src/mycompiler/mymodifier/Protected.java
index 9f05e62d..c732b00f 100755
--- a/src/mycompiler/mymodifier/Protected.java
+++ b/src/mycompiler/mymodifier/Protected.java
@@ -1,9 +1,8 @@
// ino.module.Protected.8590.package
package mycompiler.mymodifier;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-// ino.end
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.class.Protected.24066.declaration
diff --git a/src/mycompiler/mymodifier/Public.java b/src/mycompiler/mymodifier/Public.java
index 79444d89..0236b80e 100755
--- a/src/mycompiler/mymodifier/Public.java
+++ b/src/mycompiler/mymodifier/Public.java
@@ -1,9 +1,8 @@
// ino.module.Public.8591.package
package mycompiler.mymodifier;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-// ino.end
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.class.Public.24073.declaration
diff --git a/src/mycompiler/mymodifier/Static.java b/src/mycompiler/mymodifier/Static.java
index 1e79cd7c..c5de6ead 100755
--- a/src/mycompiler/mymodifier/Static.java
+++ b/src/mycompiler/mymodifier/Static.java
@@ -1,9 +1,8 @@
// ino.module.Static.8592.package
package mycompiler.mymodifier;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
-// ino.end
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
// ino.class.Static.24080.declaration
diff --git a/src/mycompiler/mymodifier/Super.java b/src/mycompiler/mymodifier/Super.java
index e5608506..c12de826 100755
--- a/src/mycompiler/mymodifier/Super.java
+++ b/src/mycompiler/mymodifier/Super.java
@@ -3,8 +3,8 @@
*/
package mycompiler.mymodifier;
-import typinferenz.JavaCodeResult;
-import typinferenz.ResultSet;
+import de.dhbwstuttgart.typeinference.JavaCodeResult;
+import de.dhbwstuttgart.typeinference.ResultSet;
/**
* @author Daniel
diff --git a/src/mycompiler/myoperator/AndOp.java b/src/mycompiler/myoperator/AndOp.java
deleted file mode 100755
index 91926d7d..00000000
--- a/src/mycompiler/myoperator/AndOp.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// ino.module.AndOp.8595.package
-package mycompiler.myoperator;
-
-import mycompiler.mystatement.Expr;
-import mycompiler.mytype.BooleanType;
-import mycompiler.mytype.IntegerType;
-import mycompiler.mytype.Type;
-import typinferenz.ConstraintsSet;
-import typinferenz.SingleConstraint;
-import typinferenz.assumptions.TypeAssumptions;
-// ino.end
-
-// ino.class.AndOp.24101.declaration
-public class AndOp extends LogOp
-// ino.end
-// ino.class.AndOp.24101.body
-{
-
- // ino.method.AndOp.24105.definition
- public AndOp(int offset, int variableLength)
- // ino.end
- // ino.method.AndOp.24105.body
- {
- super(offset,variableLength);
- }
- // ino.end
-
-
-}
-// ino.end
diff --git a/src/mycompiler/myparser/.cvsignore b/src/mycompiler/myparser/.cvsignore
deleted file mode 100755
index 4f70a70a..00000000
--- a/src/mycompiler/myparser/.cvsignore
+++ /dev/null
@@ -1,3 +0,0 @@
-JavaLexer.java
-JavaParser.java
-
diff --git a/src/mycompiler/myparser/JavaLexer.lex b/src/mycompiler/myparser/JavaLexer.lex
deleted file mode 100755
index cae5b2ce..00000000
--- a/src/mycompiler/myparser/JavaLexer.lex
+++ /dev/null
@@ -1,173 +0,0 @@
-/********************************************
- * file: JavaLexer.lex *
- * *
- * enth�lt die JLex-Spezifikation f�r die *
- * Generierung des lexical analyzers *
- * *
- ********************************************/
-
-// user code:
-package mycompiler.myparser;
-
-%%
-
-%char
-%line
-
-%{
- Token token;
-%}
-
-%public
-%class JavaLexer
-%type boolean
-%eofval{
- return false;
-%eofval}
-
-ws = [ \t\r\n\b\015]+
-%state commentblock
-%state commentsingleline
-%%
-
-abstract {this.token = new Token(JavaParser.ABSTRACT, yytext(), yyline, yychar);return true;}
-boolean {this.token = new Token(JavaParser.BOOLEAN, yytext(), yyline, yychar);return true;}
-break {this.token = new Token(JavaParser.BREAK, yytext(), yyline, yychar);return true;}
-case {this.token = new Token(JavaParser.CASE, yytext(), yyline, yychar);return true;}
-catch {this.token = new Token(JavaParser.CATCH, yytext(), yyline, yychar);return true;}
-char {this.token = new Token(JavaParser.CHAR, yytext(), yyline, yychar);return true;}
-class {this.token = new Token(JavaParser.CLASS, yytext(), yyline, yychar);return true;}
-continue {this.token = new Token(JavaParser.CONTINUE, yytext(), yyline, yychar);return true;}
-default {this.token = new Token(JavaParser.DEFAULT, yytext(), yyline, yychar);return true;}
-do {this.token = new Token(JavaParser.DO, yytext(), yyline, yychar);return true;}
-else {this.token = new Token(JavaParser.ELSE, yytext(), yyline, yychar);return true;}
-extends {this.token = new Token(JavaParser.EXTENDS, yytext(), yyline, yychar);return true;}
-final {this.token = new Token(JavaParser.FINAL, yytext(), yyline, yychar);return true;}
-finally {this.token = new Token(JavaParser.FINALLY, yytext(), yyline, yychar);return true;}
-for {this.token = new Token(JavaParser.FOR, yytext(), yyline, yychar);return true;}
-if {this.token = new Token(JavaParser.IF, yytext(), yyline, yychar);return true;}
-instanceof {this.token = new Token(JavaParser.INSTANCEOF, yytext(), yyline, yychar);return true;}
-interface {this.token = new Token(JavaParser.INTERFACE, yytext(), yyline, yychar);return true;}
-int {this.token = new Token(JavaParser.INT, yytext(), yyline, yychar);return true;}
-implements {this.token = new Token(JavaParser.IMPLEMENTS, yytext(), yyline, yychar);return true;}
-new {this.token = new Token(JavaParser.NEW, yytext(), yyline, yychar);return true;}
-package {this.token = new Token(JavaParser.PACKAGE, yytext(), yyline, yychar);return true;}
-import {this.token = new Token(JavaParser.IMPORT, yytext(), yyline, yychar);return true;}
-private {this.token = new Token(JavaParser.PRIVATE, yytext(), yyline, yychar);return true;}
-protected {this.token = new Token(JavaParser.PROTECTED, yytext(), yyline, yychar);return true;}
-public {this.token = new Token(JavaParser.PUBLIC, yytext(), yyline, yychar);return true;}
-return {this.token = new Token(JavaParser.RETURN, yytext(), yyline, yychar);return true;}
-static {this.token = new Token(JavaParser.STATIC, yytext(), yyline, yychar);return true;}
-super {this.token = new Token(JavaParser.SUPER, yytext(), yyline, yychar);return true;}
-switch {this.token = new Token(JavaParser.SWITCH, yytext(), yyline, yychar);return true;}
-this {this.token = new Token(JavaParser.THIS, yytext(), yyline,yychar);return true;}
-throw {this.token = new Token(JavaParser.THROW, yytext(), yyline, yychar);return true;}
-throws {this.token = new Token(JavaParser.THROWS, yytext(), yyline, yychar);return true;}
-try {this.token = new Token(JavaParser.TRY, yytext(), yyline, yychar);return true;}
-void {this.token = new Token(JavaParser.VOID, yytext(), yyline, yychar);return true;}
-while {this.token = new Token(JavaParser.WHILE, yytext(), yyline, yychar);return true;}
-
-"//" {yybegin(commentsingleline);}
-"/*" {yybegin(commentblock);}
- "*/" {yybegin(YYINITIAL);}
- [^\*]* {}
- "*" {}
- [\t\r\n\b\015]+ {yybegin(YYINITIAL);}
- [^\\t\r\n\b\015]+ {}
-
-[1-9][0-9]*[L]? {
- String lexem = yytext();
- if(lexem.endsWith("L"))
- {
- lexem = lexem.substring(0, lexem.length() - 1);
- this.token = new Token(JavaParser.LONGLITERAL, lexem, yyline, yychar);return true;
- }
- else
- {
- this.token = new Token(JavaParser.INTLITERAL, lexem, yyline, yychar);return true;
- }
-}
-0[xX][0-9a-fA-F]+[L]? {
- String lexem = yytext();
- if(lexem.endsWith("L"))
- {
- lexem = lexem.substring(0, lexem.length() - 1);
- this.token = new Token(JavaParser.LONGLITERAL, lexem, yyline, yychar);return true;
- }
- else
- {
- this.token = new Token(JavaParser.INTLITERAL, lexem, yyline, yychar);return true;
- }
-}
-0[0-7]*[L]? {
- String lexem = yytext();
- if(lexem.endsWith("L"))
- {
- lexem = lexem.substring(0, lexem.length() - 1);
- this.token = new Token(JavaParser.LONGLITERAL, lexem, yyline, yychar);return true;
- }
- else
- {
- this.token = new Token(JavaParser.INTLITERAL, lexem, yyline, yychar);return true;
- }
-}
-[1-9][0-9]*[.]?[0-9]*[f] {
- this.token = new Token(JavaParser.FLOATLITERAL, yytext(), yyline, yychar);return true;
-}
-
-[1-9][0-9]*[.][0-9]* {
- this.token = new Token(JavaParser.DOUBLELITERAL, yytext(), yyline, yychar);return true;
-}
-
-true|false {
- this.token = new Token(JavaParser.BOOLLITERAL, yytext(), yyline, yychar);return true;
-}
-null {
- this.token = new Token(JavaParser.JNULL, yytext(), yyline, yychar);return true;
-}
-\'[a-zA-Z0-9!@#$%\&*\(\),\<.\>/\?;:]\' {
- this.token = new Token(JavaParser.CHARLITERAL, yytext(), yyline, yychar);return true;
-}
-\"[a-zA-Z0-9!@#$%^&*\(\),\<.\>/\?;:\ ]*\" {
- this.token = new Token(JavaParser.STRINGLITERAL, yytext(), yyline, yychar);return true;
-}
-[a-zA-Z$_][a-zA-Z0-9$_]* {
- this.token = new Token(JavaParser.IDENTIFIER, yytext(), yyline, yychar);return true;
-}
-[()\{\}\[\];,.] {
- this.token = new Token(JavaParser.BRACE,yytext().charAt(0), yyline, yychar);return true;
-}
-[=>=" {this.token = new Token(JavaParser.GREATEREQUAL, yytext(), yyline, yychar);return true;}
-"!=" {this.token = new Token(JavaParser.NOTEQUAL, yytext(), yyline, yychar);return true;}
-"||" {this.token = new Token(JavaParser.LOGICALOR, yytext(), yyline, yychar);return true;}
-"&&" {this.token = new Token(JavaParser.LOGICALAND, yytext(), yyline, yychar);return true;}
-"++" {this.token = new Token(JavaParser.INCREMENT, yytext(), yyline, yychar);return true;}
-"--" {this.token = new Token(JavaParser.DECREMENT, yytext(), yyline, yychar);return true;}
-
-[+\-*/&|^%] {
- this.token = new Token(JavaParser.OP, yytext().charAt(0), yyline, yychar);return true;
-}
-//"<<" {this.token = new Token(JavaParser.SHIFTLEFT, yytext(), yyline, yychar);return true;}
-//">>" {this.token = new Token(JavaParser.SHIFTRIGHT, yytext(), yyline, yychar);return true;}
-//">>>" {this.token = new Token(JavaParser.UNSIGNEDSHIFTRIGHT, yytext(), yyline, yychar);return true;}
-"+=" {this.token = new Token(JavaParser.PLUSEQUAL, yytext(), yyline, yychar);return true;}
-"-=" {this.token = new Token(JavaParser.MINUSEQUAL, yytext(), yyline, yychar);return true;}
-"*=" {this.token = new Token(JavaParser.TIMESEQUAL, yytext(), yyline, yychar);return true;}
-"/=" {this.token = new Token(JavaParser.DIVIDEEQUAL, yytext(), yyline, yychar);return true;}
-"&=" {this.token = new Token(JavaParser.ANDEQUAL, yytext(), yyline, yychar);return true;}
-"|=" {this.token = new Token(JavaParser.OREQUAL, yytext(), yyline, yychar);return true;}
-"^=" {this.token = new Token(JavaParser.XOREQUAL, yytext(), yyline, yychar);return true;}
-"%=" {this.token = new Token(JavaParser.MODULOEQUAL, yytext(), yyline, yychar);return true;}
-//"<<=" {this.token = new Token(JavaParser.SHIFTLEFTEQUAL, yytext(), yyline, yychar);return true;}
-//">>=" {this.token = new Token(JavaParser.SIGNEDSHIFTRIGHTEQUAL, yytext(), yyline, yychar);return true;}
-//">>>=" {this.token = new Token(JavaParser.UNSIGNEDSHIFTRIGHTEQUAL, yytext(), yyline, yychar);return true;}
-{ws}|\n { /* System.out.print(yytext()); */ }
-\\.\n {org.apache.log4j.Logger.getLogger("parser").debug("Kommentar: "+yytext());}
-"->" {this.token = new Token(JavaParser.LAMBDAASSIGNMENT, yytext(), yyline, yychar);return true;}
-
-
diff --git a/src/mycompiler/myparser/JavaParser.jay b/src/mycompiler/myparser/JavaParser.jay
deleted file mode 100755
index 851e8e65..00000000
--- a/src/mycompiler/myparser/JavaParser.jay
+++ /dev/null
@@ -1,2473 +0,0 @@
-%{
-
-/*
-Backup von JavaParser.jay 10.April 17 Uhr
-*/
-
-package mycompiler.myparser;
-
-import mycompiler.myclass.FieldDeclaration;
-import mycompiler.myclass.GenericDeclarationList;
-import mycompiler.myclass.Field;
-import java.util.Vector;
-import mycompiler.SourceFile;
-import mycompiler.AClassOrInterface;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.ClassBody;
-import mycompiler.myclass.Constructor;
-import mycompiler.myclass.Constant;
-import mycompiler.myclass.ImportDeclarations;
-import mycompiler.myclass.DeclId;
-import mycompiler.myclass.ExceptionList;
-import mycompiler.myclass.FormalParameter;
-import mycompiler.myclass.Method;
-import mycompiler.myclass.ParameterList;
-import mycompiler.myclass.UsedId;
-import mycompiler.myinterface.Interface;
-import mycompiler.myinterface.InterfaceBody;
-import mycompiler.mymodifier.Abstract;
-import mycompiler.mymodifier.Final;
-import mycompiler.mymodifier.Modifier;
-import mycompiler.mymodifier.Modifiers;
-import mycompiler.mymodifier.Private;
-import mycompiler.mymodifier.Protected;
-import mycompiler.mymodifier.Public;
-import mycompiler.mymodifier.Static;
-import mycompiler.myoperator.AndOp;
-import mycompiler.myoperator.DivideOp;
-import mycompiler.myoperator.EqualOp;
-import mycompiler.myoperator.GreaterEquOp;
-import mycompiler.myoperator.GreaterOp;
-import mycompiler.myoperator.LessEquOp;
-import mycompiler.myoperator.LessOp;
-import mycompiler.myoperator.MinusOp;
-import mycompiler.myoperator.ModuloOp;
-import mycompiler.myoperator.NotEqualOp;
-import mycompiler.myoperator.Operator;
-import mycompiler.myoperator.OrOp;
-import mycompiler.myoperator.PlusOp;
-import mycompiler.myoperator.TimesOp;
-import mycompiler.mystatement.ArgumentList;
-import mycompiler.mystatement.Assign;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Block;
-import mycompiler.mystatement.BoolLiteral;
-import mycompiler.mystatement.FloatLiteral;
-import mycompiler.mystatement.DoubleLiteral;
-import mycompiler.mystatement.LongLiteral;
-import mycompiler.mystatement.CastExpr;
-import mycompiler.mystatement.CharLiteral;
-import mycompiler.mystatement.EmptyStmt;
-import mycompiler.mystatement.Expr;
-import mycompiler.mystatement.ExprStmt;
-import mycompiler.mystatement.IfStmt;
-import mycompiler.mystatement.InstanceOf;
-import mycompiler.mystatement.IntLiteral;
-import mycompiler.mystatement.Literal;
-import mycompiler.mystatement.InstVar;
-import mycompiler.mystatement.LocalOrFieldVar;
-import mycompiler.mystatement.LocalVarDecl;
-import mycompiler.mystatement.MethodCall;
-import mycompiler.mystatement.NegativeExpr;
-import mycompiler.mystatement.NewClass;
-import mycompiler.mystatement.NotExpr;
-import mycompiler.mystatement.Null;
-import mycompiler.mystatement.PositivExpr;
-import mycompiler.mystatement.PostDecExpr;
-import mycompiler.mystatement.PostIncExpr;
-import mycompiler.mystatement.PreDecExpr;
-import mycompiler.mystatement.PreIncExpr;
-import mycompiler.mystatement.Receiver;
-import mycompiler.mystatement.Return;
-import mycompiler.mystatement.Statement;
-import mycompiler.mystatement.StringLiteral;
-import mycompiler.mystatement.This;
-import mycompiler.mystatement.UnaryMinus;
-import mycompiler.mystatement.UnaryNot;
-import mycompiler.mystatement.UnaryPlus;
-import mycompiler.mystatement.WhileStmt;
-import mycompiler.mystatement.ForStmt;
-import mycompiler.mystatement.LambdaExpression;
-import mycompiler.mytype.BaseType;
-import mycompiler.mytype.BooleanType;
-import mycompiler.mytype.CharacterType;
-import mycompiler.mytype.GenericTypeVar;
-import mycompiler.mytype.BoundedGenericTypeVar;
-import mycompiler.mytype.IntegerType;
-import mycompiler.mytype.ParaList;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TypePlaceholder;
-import mycompiler.mytype.Void;
-import mycompiler.mytype.WildcardType;
-import mycompiler.mytype.ExtendsWildcardType;
-import mycompiler.mytype.SuperWildcardType;
-import mycompiler.mytype.Pair;
-
-public class JavaParser{
-public Vector path = new Vector();
-
-//PL 05-07-30 eingefuegt. ANFANG
-private Vector containedTypes = new Vector();
-private Vector usedIdsToCheck = new Vector();
- //Vektor aller Typdeklarationen die in aktueller Klasse vorkommen.
- //wird nach Beendigung der Klasse des Attributs der jeweiligen
- //Klasse zugeordnet
- //nach dem Parsen wird mit wandleGeneric2RefType die
- //die RefTypes gesetzt.
-void initContainedTypes() {
- this.containedTypes = new Vector();
-}
-void initUsedIdsToCheck() {
- this.usedIdsToCheck = new Vector();
-}
-//PL 05-07-30 eingefuegt. ENDE
-
-//LUAR 07-05-29 Anfang für Wildcard Test
-public Vector testPair = new Vector();
-//LUAR 07-05-29 Ende
-%}
-
-%token ABSTRACT
-%token BOOLEAN
-%token BREAK
-%token CASE
-%token CATCH
-%token CHAR
-%token CLASS
-%token CONTINUE
-%token DEFAULT
-%token DO
-%token ELSE
-%token EXTENDS
-%token FINAL
-%token FINALLY
-%token FOR
-%token IF
-%token INSTANCEOF
-%token INT
-%token NEW
-%token PRIVATE
-%token PROTECTED
-%token PUBLIC
-%token PACKAGE
-%token IMPORT
-%token INTERFACE
-%token IMPLEMENTS
-%token RETURN
-%token STATIC
-%token SUPER
-%token SWITCH
-%token THIS
-%token THROW
-%token THROWS
-%token TRY
-%token VOID
-%token WHILE
-%token INTLITERAL
-%token LONGLITERAL
-%token DOUBLELITERAL
-%token FLOATLITERAL
-%token BOOLLITERAL
-%token JNULL
-%token CHARLITERAL
-%token STRINGLITERAL
-%token IDENTIFIER
-%token EQUAL
-%token LESSEQUAL
-%token GREATEREQUAL
-%token NOTEQUAL
-%token LOGICALOR
-%token LOGICALAND
-%token INCREMENT
-%token DECREMENT
-%token SHIFTLEFT
-%token SHIFTRIGHT
-%token UNSIGNEDSHIFTRIGHT
-%token SIGNEDSHIFTRIGHT
-%token PLUSEQUAL
-%token MINUSEQUAL
-%token TIMESEQUAL
-%token DIVIDEEQUAL
-%token ANDEQUAL
-%token OREQUAL
-%token XOREQUAL
-%token MODULOEQUAL
-%token SHIFTLEFTEQUAL
-%token SIGNEDSHIFTRIGHTEQUAL
-%token UNSIGNEDSHIFTRIGHTEQUAL
-%token BRACE
-%token RELOP
-%token OP
-%token EOF
-%token LAMBDAASSIGNMENT
-%token ENDOFGENERICVARDECLARATION
-
-%type classdeclaration
-%type interfacedeclaration
-%type interfacebody
-%type interfacememberdeclarations
-%type interfacememberdeclaration
-%type abstractmethoddeclaration
-%type classbody
-%type classidentifier
-%type interfaceidentifier
-%type constantdeclaration
-%type genericdeclarationlist
-%type fielddeclaration
-%type methodheader
-%type methoddeclaration
-%type methoddeclarator
-%type classbodydeclarations
-%type classbodydeclaration
-%type classmemberdeclaration
-%type variabledeclarators
-%type fielddeclarator;
-%type variabledeclarator
-%type variabledeclaratorid
-%type simplename
-%type typename
-%type qualifiedname
-%type importqualifiedname
-%type importdeclaration
-%type importdeclarations
-%type name
-%type super
-%type classtype
-%type classorinterfacetype
-%type interfacetype
-%type interfaces
-%type extendsinterfaces
-%type integraltype
-%type numerictype
-%type primitivetype
-%type referencetype
-%type classtypelist
-%type type
-%type modifiers
-%type modifier
-%type block
-%type methodbody
-%type blockstatements
-%type lambdabody
-%type localvariabledeclarationstatement
-%type localvariabledeclaration
-%type throws
-%type formalparameter
-%type formalparameterlist
-%type lambdaexpressionparameter
-%type literal
-%type primarynonewarray
-%type primary
-%type postfixexpression
-%type unaryexpressionnotplusminus
-%type unaryexpression
-%type multiplicativeexpression
-%type additiveexpression
-%type shiftexpression
-%type relationalexpression
-%type equalityexpression
-%type andexpression
-%type exclusiveorexpression
-%type inclusiveorexpression
-%type conditionalandexpression
-%type conditionalorexpression
-%type conditionalexpression
-%type assignmentexpression
-%type lambdaexpression /*added by Andreas Stadelmeier*/
-%type expression
-%type statementexpression
-%type preincrementexpression
-%type predecrementexpression
-%type postincrementexpression
-%type postdecrementexpression
-%type expressionstatement
-%type variableinitializer
-%type statementwithouttrailingsubstatement
-%type blockstatement
-%type statement
-%type statementnoshortif
-%type whilestatement
-%type forstatement
-%type whilestatementnoshortif
-%type ifthenstatement
-%type ifthenelsestatement
-%type ifthenelsestatementnoshortif
-%type emptystatement
-%type returnstatement
-%type classinstancecreationexpression
-%type compilationunit
-%type typedeclarations
-%type boundedMethodParameter;
-%type boundedClassParameter;
-%type boundedclassidentifierlist //Vector
-%type boundedMethodParameters; // Vector
-%type boundedClassParameters; // ParaList
-%type packagedeclaration
-%type assignment
-%type assignmentoperator
-%type lambdaassignmentoperator /*added by Andreas Stadelmeier*/
-%type lefthandside
-%type argumentlist
-%type methodinvocation
-%type typedeclaration
-%type constructordeclaration
-%type constructordeclarator
-%type constructorbody
-%type explicitconstructorinvocation
-%type staticinitializer
-%type castexpression
-%type paralist
-%type typelist parameter
-%type wildcardparameter
-%left ','
-%%
-
-compilationunit : typedeclarations
- {
- $$=$1;
- }
- |importdeclarations typedeclarations
- {
- $2.addImports($1);
- $$=$2;
- }
- | packagedeclaration importdeclarations typedeclarations
- {
- // SCJU: Package
- $3.setPackageName($1);
- $3.addImports($2);
- $$=$3;
- }
- | packagedeclaration typedeclarations
- {
- // SCJU: Package
- $2.setPackageName($1);
- $$=$2;
- }
- | type type compilationunit
- {
- this.testPair.add(new Pair($1,$2));
- $$=$3;
- }
-
-packagedeclaration : PACKAGE name ';' ;
- {
- // SCJU: Package
- $$ = $2;
- }
-
-importdeclarations :importdeclaration
- {
- ImportDeclarations declarations=new ImportDeclarations();
- declarations.addElement($1);
- $$=declarations;
- }
- |importdeclarations importdeclaration
- {
- $1.addElement($2);
- $$=$1;
- }
-
-importdeclaration : IMPORT importqualifiedname ';'
- {
- $$=$2;
- }
-
-typedeclarations :typedeclaration
- {
- SourceFile Scfile = new SourceFile();
- Scfile.addElement($1);
- $$=Scfile;
- }
- |typedeclarations typedeclaration
- {
- $1.addElement($2);
- $$=$1;
- }
-
-name :qualifiedname
- {
- $$=$1;
- }
- |simplename
- {
- $$=$1;
- }
-
-typedeclaration :classdeclaration
- {
- $$=$1;
- }
- | interfacedeclaration
- {
- // SCJU: Interface
- $$=$1;
- }
-
-
-qualifiedname : name '.' IDENTIFIER
- {
- $1.set_Name($3.getLexem());
- $1.setOffset($1.getOffset());
- $$=$1;
- }
-
-importqualifiedname : name '.' IDENTIFIER
- {
- $1.set_Name($3.getLexem());
- $1.setOffset($1.getOffset());
- $$=$1;
- }
- | name '.' '*'
- {
- $1.set_Name("*");
- $1.setOffset($1.getOffset());
- $$=$1;
- }
-
-
-simplename : IDENTIFIER
- {
- UsedId UI = new UsedId($1.getOffset());
- UI.set_Name( $1.getLexem() );
- UI.setOffset($1.getOffset());//hinzugef�gt hoth: 07.04.2006
- $$ = UI;
- }
-
-classdeclaration : CLASS classidentifier classbody
- {
- // SCJU: Um das hier uebersichtlicher zu halten,
- // gibt es einen allumfassenden Konstruktor fuer Class
- // Parameter:
- // String name,
- // Modifiers mod,
- // ClassBody classbody,
- // Vector containedtypes,
- // UsedId superclass,
- // Vector SuperInterfaces,
- // Vector Parameterliste
-
- $$ = new Class($2.getName(), null, $3, containedTypes, usedIdsToCheck, null, null, $2.getParaVector(), $1.getOffset());
- this.initContainedTypes();
- this.initUsedIdsToCheck();
- }
- | modifiers CLASS classidentifier classbody
- {
- $$ = new Class($3.getName(), $1, $4, containedTypes,usedIdsToCheck, null, null, $3.getParaVector(), $2.getOffset());
- this.initContainedTypes();
- this.initUsedIdsToCheck();
- }
- | CLASS classidentifier super classbody
- {
- $$ = new Class($2.getName(), null, $4, containedTypes,usedIdsToCheck, $3, null, $2.getParaVector(), $1.getOffset());
- this.initContainedTypes();
- this.initUsedIdsToCheck();
- }
- | modifiers CLASS classidentifier super classbody
- {
- $$ = new Class($3.getName(), $1, $5, containedTypes, usedIdsToCheck, $4, null, $3.getParaVector(), $2.getOffset());
- this.initContainedTypes();
- this.initUsedIdsToCheck();
- }
- ///* auskommentiert von Andreas Stadelmeier A10023
- | CLASS classidentifier interfaces classbody
- {
- $$ = new Class($2.getName(), null, $4, containedTypes, usedIdsToCheck, null, $3.getVector(), $2.getParaVector(), $1.getOffset());
- this.initContainedTypes();
- this.initUsedIdsToCheck();
- }
- | modifiers CLASS classidentifier interfaces classbody
- {
- $$ = new Class($3.getName(), $1, $5, containedTypes, usedIdsToCheck, null, $4.getVector(), $3.getParaVector(), $2.getOffset());
- this.initContainedTypes();
- this.initUsedIdsToCheck();
- }
- | CLASS classidentifier super interfaces classbody
- {
- $$ = new Class($2.getName(), null, $5, containedTypes,usedIdsToCheck, $3, $4.getVector(), $2.getParaVector(), $1.getOffset());
- this.initContainedTypes();
- this.initUsedIdsToCheck();
- }
- | modifiers CLASS classidentifier super interfaces classbody
- {
- $$ = new Class($3.getName(), $1, $6, containedTypes, usedIdsToCheck, $4, $5.getVector(), $3.getParaVector(), $2.getOffset());
- this.initContainedTypes();
- this.initUsedIdsToCheck();
- }
- //*/
-interfaceidentifier : IDENTIFIER
- {
- // HOTI
- // Verbindet den Namen eines Interfaces mit einer optionalen Parameterliste
- $$ = new InterfaceAndParameter($1.getLexem());
- }
- | IDENTIFIER '<' boundedClassParameters '>'
- {
- $$ = new InterfaceAndParameter($1.getLexem(), $3);
- }
-
-classidentifier : IDENTIFIER
- {
- // SCJU: Hilfskonstrukt, um die Grammatik ueberschaubar zu halten
- // Verbindet den Namen einer Klasse mit einer optionalen Parameterliste
- $$ = new ClassAndParameter($1.getLexem());
- }
- | IDENTIFIER '<' boundedClassParameters '>'
- {
- $$ = new ClassAndParameter($1.getLexem(), $3);
- }
-
-interfacedeclaration: INTERFACE interfaceidentifier interfacebody
- {
- // SCJU: Interface
- Interface ic = new Interface($2.getName(), $1.getOffset());
- ic.setParaList($2.getParaVector());
- ic.setInterfaceBody($3);
- ic.setContainedTypes(containedTypes);
- initContainedTypes();
- $$ = ic;
- }
- | modifiers INTERFACE interfaceidentifier interfacebody
- {
- Interface ic = new Interface($3.getName(), $1, $2.getOffset());
- ic.setInterfaceBody($4);
- ic.setParaList($3.getParaVector());
- ic.setContainedTypes(containedTypes);
- initContainedTypes();
- $$ = ic;
- }
- | INTERFACE interfaceidentifier extendsinterfaces interfacebody
- {
- Interface ic = new Interface($2.getName(), $1.getOffset());
- ic.setParaList($2.getParaVector());
- ic.setSuperInterfaces($3.getVector());
- ic.setInterfaceBody($4);
- ic.setContainedTypes(containedTypes);
- initContainedTypes();
- $$ = ic;
- }
- | modifiers INTERFACE interfaceidentifier extendsinterfaces interfacebody ;
- {
- Interface ic = new Interface($3.getName(), $1, $2.getOffset());
- ic.setParaList($3.getParaVector());
- ic.setSuperInterfaces($4.getVector());
- ic.setInterfaceBody($5);
- ic.setContainedTypes(containedTypes);
- initContainedTypes();
- $$ = ic;
- }
-
-paralist : IDENTIFIER
- {
- ParaList pl = new ParaList();
- /* #JB# 05.04.2005 */
- /* ########################################################### */
- pl.getParalist().addElement(new GenericTypeVar($1.getLexem(), $1.getOffset()));
- //pl.getParalist().addElement( new TypePlaceholder($1.getLexem()) );
- /* ########################################################### */
- org.apache.log4j.Logger.getLogger("parser").debug( "IDENTIFIER --> Paralist f�r " + $1.getLexem() + " TV");
- $$ = pl;
- }
- | IDENTIFIER '<' paralist '>'
- {
- ParaList pl = new ParaList();
- RefType t = new RefType( $1.getLexem(),$1.getOffset() );
- t.set_ParaList( $3.get_ParaList() );
- pl.getParalist().addElement(t);
- org.apache.log4j.Logger.getLogger("parser").debug( "IDENTIFIER '<' paralist '>' --> Paralist f�r " + $1.getLexem() + ": RefType");
- $$ = pl;
- }
- | wildcardparameter
- {
- ParaList pl = new ParaList();
- pl.getParalist().addElement($1);
- $$ = pl;
- }
- | paralist ',' IDENTIFIER
- {
-
- /* #JB# 05.04.2005 */
- /* ########################################################### */
- $1.getParalist().addElement(new GenericTypeVar($3.getLexem(),$3.getOffset()));
- //$1.getParalist().addElement(new TypePlaceholder($3.getLexem()));
- /* ########################################################### */
- org.apache.log4j.Logger.getLogger("parser").debug( "paralist ',' IDENTIFIER --> Paralist f�r " + $3.getLexem() + ": TV");
- org.apache.log4j.Logger.getLogger("parser").debug( "paralist: " + $1.getParalist());
- $$=$1;
- }
-
- | paralist ',' IDENTIFIER '<' paralist '>'
- {
- RefType t = new RefType( $3.getLexem() ,$3.getOffset() );
- t.set_ParaList( $5.get_ParaList() );
- $1.getParalist().addElement(t);
- org.apache.log4j.Logger.getLogger("parser").debug( "paralist ',' IDENTIFIER '<' paralist '>' --> Paralist f�r " + $3.getLexem() + ": RefType");
- $$=$1;
- }
- | paralist ',' wildcardparameter
- {
- $1.getParalist().addElement($3);
- $$=$1;
- }
-
-wildcardparameter : '?'
- {
- //Luar 29.11.06 Offset auf -1, da keine Angabe vorhanden
- WildcardType wc = new WildcardType(-1);
- $$ = wc;
- }
- | '?' EXTENDS referencetype
- {
- ExtendsWildcardType ewc = new ExtendsWildcardType($2.getOffset(),$3);
- $$ = ewc;
- }
- | '?' SUPER referencetype
- {
- SuperWildcardType swc = new SuperWildcardType($2.getOffset(),$3);
- $$ = swc;
- }
-
-classbody : '{' '}'
- {
- ClassBody CB = new ClassBody();
- $$ = CB;
- }
-
- | '{' classbodydeclarations '}'
- {
- $$ = $2;
- }
-
-modifiers :modifier
- {
- Modifiers Mod = new Modifiers();
- Mod.addModifier($1);
- $$ = Mod;
- }
- |modifiers modifier
- {
- $1.addModifier($2);
- $$ = $1;
- }
-
-super :EXTENDS classtype
- {
- $$ = $2;
- }
-
-interfaces : IMPLEMENTS interfacetype
- {
- // SCJU: Interface
- InterfaceList il = new InterfaceList();
- il.addInterface($2);
- $$ = il;
- }
- | interfaces ',' interfacetype ;
- {
- $1.addInterface($3);
- $$ = $1;
- }
-
-interfacebody : '{' '}'
- {
- // SCJU: Interface
- $$ = new InterfaceBody();
- }
- | '{' interfacememberdeclarations '}'
- {
- $$ = $2;
- }
-
-
-
-extendsinterfaces : EXTENDS interfacetype
- {
- // SCJU: Interface
- InterfaceList il = new InterfaceList();
- il.addInterface($2);
- $$ = il;
- }
- | extendsinterfaces ',' interfacetype ;
- {
- $1.addInterface($3);
- $$ = $1;
- }
-
-
-classbodydeclarations : classbodydeclaration
- {
- ClassBody CB = new ClassBody();
- CB.addField( $1 );
- $$=CB;
- }
- | classbodydeclarations classbodydeclaration
- {
- $1.addField($2);
- $$ = $1;
- }
-
-
-modifier : PUBLIC
- {
- Public Pub = new Public();
- $$=Pub;
- }
- | PROTECTED
- {
- Protected Pro = new Protected();
- $$=Pro;
- }
- | PRIVATE
- {
- Private Pri = new Private();
- $$=Pri;
- }
- | STATIC
- {
- Static Sta = new Static();
- $$=Sta;
- }
- | ABSTRACT
- {
- Abstract Abs = new Abstract();
- $$=Abs;
- }
- | FINAL
- { Final fin = new Final();
- $$ = fin;
- }
-
-
-classtype : classorinterfacetype
- {
- //PL 05-07-30 eingefuegt containedTypes ANFANG
- RefType RT = new RefType(-1);
- //RT.set_UsedId($1);
- //RT.setName(RT.get_UsedId().get_Name_1Element());
- RT.set_ParaList($1.get_RealParaList());
- RT.setName($1.get_Name_1Element());
- containedTypes.addElement(RT);
- //PL 05-07-30 eingefuegt containedTypes ENDE
-
- $$ = $1;
- }
-
-
-interfacememberdeclarations : interfacememberdeclaration
- {
- // SCJU: Interface
- InterfaceBody ib = new InterfaceBody();
- ib.addElement($1);
- $$ = ib;
- }
- | interfacememberdeclarations interfacememberdeclaration ;
- {
- $1.addElement($2);
- $$ = $1;
- }
-
-interfacetype : classorinterfacetype ;
- {
- // SCJU: Interfaces
- $$ = $1;
- }
-
-classbodydeclaration : classmemberdeclaration
- {
- $$=$1;
- }
- ///* auskommentiert von Andreas Stadelmeier a10023
- | staticinitializer
- {
- $$=$1;
- }
- | constructordeclaration
- {
- $$=$1;
- }
- //*/
-
-classorinterfacetype : name parameter
- {
- if ($2 != null) {
- //$1.set_ParaList($2.get_ParaList());
- $1.set_ParaList($2);//Änderung von Andreas Stadelmeier. Type statt GenericVarType
- /* otth: originale (also diese) Parameterliste retten */
- //((UsedId)$1).vParaOrg = new Vector( $2.get_ParaList() );
- }
- $$=$1;
- }
-
-typelist : type
- {
- Vector tl = new Vector();
- tl.add($1);
- $$ = tl;
- }
- | typelist ',' type
- {
- $1.add($3);
- $$=$1;
- }
- | typelist ',' wildcardparameter
- {
- $1.add($3);
- $$=$1;
- }
- | wildcardparameter
- {
- Vector tl = new Vector();
- tl.add($1);
- $$ = tl;
- }
-
-/* PL 05-07-28 erg�nzt, weil jeder classorinterfacetype auch parametrisiert sein kann */
-//TODO: Das hier ist möglicherweise falsch. Ein Typ hat keine parameterliste, nur eine Liste von RefTypes
-parameter : { $$ = null; }
- | '<' typelist '>' //'<'paralist'>'//typelist statt
- {
- $$ = $2;
- }
-
-interfacememberdeclaration : constantdeclaration
- {
- // SCJU: Interfaces, Spezialform Konstantendef.
- $$ = $1;
- }
- | abstractmethoddeclaration
- {
- $$ = $1;
- }
-
-classmemberdeclaration : fielddeclaration
- {
- $$=$1;
- }
- | methoddeclaration
- {
- $$=$1;
- }
-
-staticinitializer : STATIC block
- {
- Method STAT = new Method($1.getOffset());
- DeclId DST = new DeclId();
- DST.set_Name($1.getLexem());
- STAT.set_DeclId(DST);
- Static ST = new Static();
- Modifiers MOD = new Modifiers();
- MOD.addModifier(ST);
- STAT.set_Modifiers(MOD);
- STAT.set_Block($2);
- $$=STAT;
- }
-
-constructordeclaration : constructordeclarator constructorbody
- {
- $1.set_Block($2);
- $$ = $1;
- }
- | modifiers constructordeclarator constructorbody
- {
- $2.set_Block($3);
- $2.set_Modifiers($1);
- $$ = $2;
- }
-
-constantdeclaration : modifiers type IDENTIFIER '=' expression';' ;
- {
- // SCJU: Interface
- Constant c = new Constant($3.getLexem(), $1);
- c.setType($2);
- c.setValue($5);
- $$ = c;
- }
-
-abstractmethoddeclaration : methodheader ';' ;
- {
- // SCJU: Interface
- $$ = $1;
- }
-
-/*
-added by Andreas Stadelmeier, a10023
-Bei Lokalen Variablen ist eine initialisierung der Variablen während der Deklarisierung nicht erlaubt.
-Beispiel: var = 2;
-Bei einer lokalen Variable lässt sich hier nicht ermitteln ob die Variable deklariert werden soll oder bereits deklariert wurde und ihr nur ein Wert zugewiesen werden soll.
-Dieses Problem ist bei Feldern nicht der Fall.
-*/
-fielddeclarator :
- /*
- type variabledeclarator '=' expression
- {
- FieldDeclaration ret = new FieldDeclaration($2.getOffset());
- ret.setType($1);
- ret.set_DeclId($2);
- ret.setWert($4);
- $$=ret;
- }
- |
- */
- variabledeclarator '=' expression
- {
- FieldDeclaration ret = new FieldDeclaration($1.getOffset());
- ret.set_DeclId($1);
- ret.setWert($3);
- $$=ret;
- }
- | variabledeclarator
- {
- FieldDeclaration ret = new FieldDeclaration($1.getOffset());
- ret.set_DeclId($1);
- $$=ret;
- }
-
-genericdeclarationlist : '<' boundedMethodParameters '>'
- {
- GenericDeclarationList ret = new GenericDeclarationList($2.getElements(),$2.getEndOffset());
- $$ = ret;
- }
-
-
-fielddeclaration : fielddeclarator ';'
- {
- $$=$1;
- }
- | type fielddeclarator ';'
- {
- $2.setType($1);
- $$=$2;
- }
- | genericdeclarationlist type fielddeclarator ';'
- {//angefügt von Andreas Stadelmeier
- $3.setType($2);
- $3.setGenericParameter($1);
- $$=$3;
- }
- |
- variabledeclarators ';'
- {
- $$=$1;
- }
- |
- type variabledeclarators ';'
- {
- org.apache.log4j.Logger.getLogger("parser").debug("T->Parser->fielddeclaration ...: type " + $1);
- $2.setType($1);
- $$ = $2;
- }
-
- | modifiers type variabledeclarators ';'
- {
- $3.setType($2);
- for(int i=0;i<($3.getDeclIdVector().size());i++)
- {
- $3.getDeclIdVector().elementAt(i).modifiers=$1;
- }
- $$ = $3;
- }
-
-methoddeclaration : methodheader methodbody
- {
- $1.set_Block($2);
- $$=$1;
- }
-
-block : '{' '}'
-
- {
- Block Bl = new Block();
- $$=Bl;
- }
-
- | '{' blockstatements '}'
- {
- $$=$2;
- }
-
-constructordeclarator : simplename '(' ')'
- {
- Constructor CON = new Constructor(null); //TODO: Der Parser kann sowieso nicht zwischen einem Konstruktor und einer Methode unterscheiden. Das hier kann wegfallen...
- DeclId DIDCon = new DeclId();
- DIDCon.set_Name($1.get_Name_1Element());
- CON.set_DeclId(DIDCon);
- $$=CON;
- }
- | simplename '('formalparameterlist')'
- {
- Constructor CONpara = new Constructor(null);
- DeclId DIconpara = new DeclId();
- DIconpara.set_Name($1.get_Name_1Element());
- CONpara.set_DeclId(DIconpara);
- CONpara.setParameterList($3);
- $$=CONpara;
- }
-
-constructorbody : '{' '}'
- {
- Block CBL = new Block();
- $$=CBL;
- }
- | '{' explicitconstructorinvocation '}'
- {
- Block CBLexpl = new Block();
- CBLexpl.set_Statement($2);
- $$=CBLexpl;
- }
- | '{' blockstatements '}'
- {
- $$=$2;
- }
- | '{'explicitconstructorinvocation blockstatements '}'
- {
- Block CBes = new Block();
- CBes.set_Statement($2);
- for(int j=0;j<$3.statements.size();j++)
- {
- CBes.set_Statement((Statement)$3.statements.elementAt(j));
- }
- $$=CBes;
- }
-
-throws : THROWS classtypelist
- {
- ExceptionList EL = new ExceptionList();
- EL.set_addElem($2);
- $$=EL;
- }
-
-boundedClassParameter : boundedMethodParameter
- {
- $$ = $1;
- }
-
-boundedClassParameters : boundedClassParameter
- {
- ParaList p = new ParaList();
- p.add_ParaList($1);
- $$=p;
- }
- | boundedClassParameters ',' boundedClassParameter
- {
- $1.add_ParaList($3);
- $$=$1;
- }
-
-// returns GenericTypeVar
-boundedMethodParameter : IDENTIFIER
- {
- $$=new GenericTypeVar($1.getLexem(),$1.getOffset());
- }
- | IDENTIFIER EXTENDS boundedclassidentifierlist
- {
- BoundedGenericTypeVar gtv=new BoundedGenericTypeVar($1.getLexem(), $3, $1.getOffset() ,$3.getEndOffset());
- //gtv.setBounds($3);
- $$=gtv;
- }
-// returns Vector
-boundedclassidentifierlist : referencetype
- {
- Vector vec=new Vector();
- vec.addElement($1);
- containedTypes.addElement($1);
- $$=new BoundedClassIdentifierList(vec, $1.getOffset()+$1.getName().length());
- }
- | boundedclassidentifierlist '&' referencetype
- {
- $1.addElement($3);
- $1.addOffsetOff($3);
- containedTypes.addElement($3);
- $$=$1;
- }
-// returns Vector
-boundedMethodParameters : boundedMethodParameter
- {
- GenericVarDeclarationList vec=new GenericVarDeclarationList();
- vec.addElement($1);
- $$=vec;
- }
- | boundedMethodParameters ',' boundedMethodParameter
- {
- $1.addElement($3);
- $$=$1;
- }
-
-
-// returns Method
-methodheader :genericdeclarationlist type methoddeclarator
- {
- $3.setType($2);
- $3.setGenericParameter($1);
- $$=$3;
- }
- | type methoddeclarator
- {
- $2.setType($1);
- $$=$2;
- }
- | modifiers type methoddeclarator
- {
- $3.set_Modifiers($1);
- $3.setType($2);
- $$=$3;
- }
- | modifiers genericdeclarationlist type methoddeclarator
- {
- $4.set_Modifiers($1);
- $4.setGenericParameter($2);
- $4.setType($3);
- $$=$4;
- }
- | type methoddeclarator throws
- {
- $2.setType($1);
- $2.set_ExceptionList($3);
- $$=$2;
- }
- | genericdeclarationlist type methoddeclarator throws
- {
- $3.setGenericParameter($1);
- $3.setType($2);
- $3.set_ExceptionList($4);
- $$=$3;
- }
- | modifiers type methoddeclarator throws
- {
- $3.set_Modifiers($1);
- $3.setType($2);
- $3.set_ExceptionList($4);
- $$=$3;
- }
- | modifiers genericdeclarationlist type methoddeclarator throws
- {
- $4.set_Modifiers($1);
- $4.setGenericParameter($2);
- $4.setType($3);
- $4.set_ExceptionList($5);
- $$=$4;
- }
- | VOID methoddeclarator
- {
- Void Voit = new Void($1.getOffset());
- $2.setType(Voit);
- $$=$2;
- }
- | modifiers VOID methoddeclarator
- {
- Void voit = new Void($2.getOffset());
- $3.set_Modifiers($1);
- $3.setType(voit);
- $$=$3;
- }
- | VOID methoddeclarator throws
- {
- Void voyt = new Void($1.getOffset());
- $2.setType(voyt);
- $2.set_ExceptionList($3);
- $$=$2;
- }
- | modifiers VOID methoddeclarator throws
- {
- Void voyd = new Void($2.getOffset());
- $3.set_Modifiers($1);
- $3.setType(voyd);
- $3.set_ExceptionList($4);
- $$=$3;
- }
- | genericdeclarationlist VOID methoddeclarator
- {
- Void Voit = new Void($2.getOffset());
- $3.setType(Voit);
- $3.setGenericParameter($1);
- $$=$3;
- }
- | modifiers genericdeclarationlist VOID methoddeclarator
- {
- Void voit = new Void($3.getOffset());
- $4.set_Modifiers($1);
- $4.setType(voit);
- $4.setGenericParameter($2);
- $$=$4;
- }
- | genericdeclarationlist VOID methoddeclarator throws
- {
- Void voyt = new Void($2.getOffset());
- $3.setType(voyt);
- $3.set_ExceptionList($4);
- $3.setGenericParameter($1);
- $$=$3;
- }
- | modifiers genericdeclarationlist VOID methoddeclarator throws
- {
- Void voyd = new Void($3.getOffset());
- $4.set_Modifiers($1);
- $4.setType(voyd);
- $4.set_ExceptionList($5);
- $4.setGenericParameter($2);
- $$=$4;
- }
-
- | methoddeclarator
- {
- //auskommentiert von Andreas Stadelmeier (a10023) $1.setType(TypePlaceholder.fresh());
- $$=$1;
- }
- | genericdeclarationlist methoddeclarator
- {
- //auskommentiert von Andreas Stadelmeier (a10023) $4.setType(TypePlaceholder.fresh());
- $2.setGenericParameter($1);
- $$=$2;
- }
-
- | modifiers methoddeclarator
- {
- $2.set_Modifiers($1);
- //auskommentiert von Andreas Stadelmeier (a10023) $2.setType(TypePlaceholder.fresh());
- $$=$2;
- }
- | methoddeclarator throws
- {
- //auskommentiert von Andreas Stadelmeier (a10023) $1.setType(TypePlaceholder.fresh());
- $1.set_ExceptionList($2);
- $$=$1;
- }
- | modifiers methoddeclarator throws
- {
- $2.set_Modifiers($1);
- //auskommentiert von Andreas Stadelmeier (a10023) $2.setType(TypePlaceholder.fresh());
- $2.set_ExceptionList($3);
- $$=$2;
- }
-
-
-type : primitivetype
- {
- $$=$1;
- }
- |primitivetype '[' ']'
- {
- $1.setArray(true);
- }
- |referencetype
- {
- $$=$1;
- }
- |referencetype '[' ']'
- {
- $1.setArray(true);
- }
-variabledeclarators : variabledeclarator
- {
- FieldDeclaration IVD = new FieldDeclaration($1.getOffset());
- IVD.getDeclIdVector().addElement( $1 );
- IVD.setOffset($1.getOffset());
- $$ = IVD;
- }
- | variabledeclarators ',' variabledeclarator
- {
- $1.getDeclIdVector().addElement($3);
- $$=$1;
- }
-
-methodbody : block
- {
- $$=$1;
- }
-
-blockstatements : blockstatement
- {
- Block Blstat = new Block();
- Blstat.set_Statement($1);
- $$=Blstat;
- }
-
- | blockstatements blockstatement
- {
- $1.set_Statement($2);
- $$=$1;
- }
-
-formalparameterlist :formalparameter
- {
- ParameterList PL = new ParameterList();
- PL.set_AddParameter($1);
- $$ = PL;
- }
- |formalparameterlist ',' formalparameter
- {
- $1.set_AddParameter($3);
- $$ = $1;
- }
-
-explicitconstructorinvocation : THIS '(' ')' ';'
- {
- This THCON = new This($1.getOffset(),$1.getLexem().length());
- $$=THCON;
- }
- |THIS '(' argumentlist ')' ';'
- {
- This THCONargl = new This($1.getOffset(),$1.getLexem().length());
- THCONargl.set_ArgumentList($3);
- $$=THCONargl;
- }
- // |SUPER '(' ')' ';'
- // |SUPER '(' argumentlist ')' ';'
-
-classtypelist : classtype
- {
- RefType RT = new RefType(-1);
- RT.set_UsedId($1);
- RT.setName(RT.get_UsedId().get_Name_1Element());
- $$=RT;
- }
- | classtypelist ',' classtype
- {
- $1.set_UsedId($3);
- $1.setName($1.get_UsedId().get_Name_1Element());
- $$=$1;
- }
-
-methoddeclarator :IDENTIFIER '(' ')'
- {
- Method met = new Method($1.getOffset());
- /* #JB# 10.04.2005 */
- /* ########################################################### */
- met.setLineNumber($1.getLineNumber());
- met.setOffset($1.getOffset());//hinzugef�gt hoth: 07.04.2006
- /* ########################################################### */
- DeclId DImethod = new DeclId();
- DImethod.set_Name($1.getLexem());
- met.set_DeclId(DImethod);
- $$ = met;
- }
- |IDENTIFIER '(' formalparameterlist ')'
- {
- Method met_para = new Method($1.getOffset());
- /* #JB# 10.04.2005 */
- /* ########################################################### */
- met_para.setLineNumber($1.getLineNumber());
- met_para.setOffset($1.getOffset());//hinzugef�gt hoth: 07.04.2006
- /* ########################################################### */
- DeclId Dimet_para = new DeclId();
- Dimet_para.set_Name($1.getLexem());
- met_para.set_DeclId(Dimet_para);
- met_para.setParameterList($3);
- $$ = met_para;
- }
-
-primitivetype :BOOLEAN
- {
- BooleanType BT = new BooleanType();
- /* #JB# 05.04.2005 */
- /* ########################################################### */
- //BT.setName($1.getLexem());
- /* ########################################################### */
- $$=BT;
- }
- |numerictype
- {
- $$=$1;
- }
-
-referencelongtype : typename parameter
- {
- if ($2 != null) {
- //$1.set_ParaList($2.get_ParaList());
- $1.set_ParaList($2);//Änderung von Andreas Stadelmeier. Type statt GenericVarType
- /* otth: originale (also diese) Parameterliste retten */
- //((UsedId)$1).vParaOrg = new Vector( $2.get_ParaList() );
- }
- UsedId uid = $1;
- RefType RT = new RefType(uid.getOffset());
-
- RT.set_ParaList(uid.get_RealParaList());
- RT.setName(uid.getQualifiedName());
-
-
- //PL 05-07-30 eingefuegt containedTypes ANFANG
- containedTypes.addElement(RT);
- //PL 05-07-30 eingefuegt containedTypes ENDE
-
- $$=RT;
- }
-
-referencetype :classorinterfacetype
- {
- org.apache.log4j.Logger.getLogger("parser").debug("T->Parser->referenctype: " + $1);
- RefType RT = new RefType($1.getOffset());
-
- //ausgetauscht PL 05-07-30
- //RT.set_UsedId($1);
- //RT.setName(RT.get_UsedId().get_Name_1Element());
- RT.set_ParaList($1.get_RealParaList());
- RT.setName($1.getQualifiedName());
-
-
- //PL 05-07-30 eingefuegt containedTypes ANFANG
- containedTypes.addElement(RT);
- //PL 05-07-30 eingefuegt containedTypes ENDE
-
- $$=RT;
- }
-
-
-/* 05-07-28 PL Parameterdeklarationen zur classorinterfacetype verschoben */
-
-variabledeclarator : variabledeclaratorid
- {
- $$=$1;
- }
- /* auskommentiert von Andreas Stadelmeier, a10023:
- eine Variable mit Initialisierung wird sowieso nicht geparst.
- | variabledeclaratorid '=' variableinitializer
- {
- $1.set_Wert($3);
- $$=$1;
- }
- */
-/* 05-07-28 PL auskommentiert
- wird nicht ben�tigt aufgrund neuer classorinterfacetype declaration
- | '<' paralist'>' variabledeclaratorid '=' variableinitializer
- {
- $4.set_Wert($6);
- $4.set_Paratyp($2.get_ParaList());
- $$=$4;
- }
-*/
-blockstatement :localvariabledeclarationstatement
- {
- $$=$1;
- }
- |statement
- {
- $$=$1;
- }
-
-formalparameter : type variabledeclaratorid
- {
- FormalParameter FP = new FormalParameter($2);
- FP.setType($1);
- //FP.set_DeclId($2); //auskommentiert von Andreas Stadelmeier. DeclId wird nun dem Konstruktor von FormalParameter übergeben.
- $$=FP;
- }
-
- /* otth: Methodenargumente koennen hiermit auch polymorph sein. */
-/* 05-07-28 PL auskommentiert
- wird nicht ben�tigt aufgrund neuer classorinterfacetype declaration
- | type '<'paralist'>' variabledeclaratorid
- {
- Parameterliste setzen
- $5.set_Paratyp($3.get_ParaList());
-
- FormalParameter FP = new FormalParameter($5);
- FP.setType($1);
- //FP.set_DeclId($5);
- $$=FP;
-
- org.apache.log4j.Logger.getLogger("parser").debug("P->Polymorphes Methodenargument hinzugefuegt: Name = " + $5.get_Name() + " Typ = " + $1.getName());
- }
-*/
-
- | variabledeclaratorid
- {
- org.apache.log4j.Logger.getLogger("parser").debug("\nFunktionsdeklaration mit typlosen Parametern: " + $1.name);
-
- FormalParameter FP = new FormalParameter($1);
-
- // #JB# 31.03.2005
- // ###########################################################
- //Type T = TypePlaceholder.fresh(); //auskommentiert von Andreas Stadelmeier
- // Type T = new TypePlaceholder(""); /* otth: Name wird automatisch berechnet */
- // ###########################################################
- //org.apache.log4j.Logger.getLogger("parser").debug("\n--> berechneter Name: " + T.getName());
-
- //auskommentiert von Andreas Stadelmeier (a10023) FP.setType( T );
- //FP.set_DeclId($1);
-
- $$=FP;
- }
-
-argumentlist : expression
- {
- ArgumentList AL = new ArgumentList();
- AL.expr.addElement($1);
- $$=AL;
- }
- |argumentlist ',' expression
- {
- $1.expr.addElement($3);
- $$=$1;
- }
-
-numerictype :integraltype
- {
- $$=$1;
- }
-
-variabledeclaratorid : IDENTIFIER
- {
- DeclId DI = new DeclId();
- /* #JB# 10.04.2005 */
- /* ########################################################### */
- DI.setLineNumber($1.getLineNumber());
- DI.setOffset($1.getOffset());//hinzugef�gt hoth: 07.04.2006
- /* ########################################################### */
- DI.set_Name($1.getLexem());
- $$=DI;
- }
-
-variableinitializer :expression
- {
- $$=$1;
- }
-
-localvariabledeclarationstatement :localvariabledeclaration ';'
- {
- $$=$1;
- }
-
-statement :statementwithouttrailingsubstatement
- {
- $$=$1;
- }
- |ifthenstatement
- {
- $$=$1;
- }
- |ifthenelsestatement
- {
- $$=$1;
- }
- |whilestatement
- {
- $$=$1;
- }
- |forstatement
- {
- $$=$1;
- }
-
-expression :assignmentexpression
- {
- $$=$1;
- }
- |classinstancecreationexpression
- {
- $$=$1;
- }
-
-integraltype :INT
- {
- IntegerType IT = new IntegerType();
- /* #JB# 05.04.2005 */
- /* ########################################################### */
- //IT.setName($1.getLexem());
- /* ########################################################### */
- $$=IT;
- }
- | CHAR
- {
- CharacterType CT = new CharacterType();
- /* #JB# 05.04.2005 */
- /* ########################################################### */
- //CT.setName($1.getLexem());
- /* ########################################################### */
- $$=CT;
- }
-
-localvariabledeclaration : type variabledeclarators
- {
- org.apache.log4j.Logger.getLogger("parser").debug("P -> Lokale Variable angelegt!");
- LocalVarDecl LVD = new LocalVarDecl($1.getOffset(),$1.getVariableLength());
- LVD.setType($1);
- LVD.setDeclidVector($2.getDeclIdVector());
- $$ = LVD;
- }
-
- /* #JB# 31.03.2005 */
- /* ########################################################### */
- |variabledeclarators
- {
- org.apache.log4j.Logger.getLogger("parser").debug("P -> Lokale Variable angelegt!");
- LocalVarDecl LVD = new LocalVarDecl($1.getOffset(),$1.getVariableLength());
- //auskommentiert von Andreas Stadelmeier (a10023) LVD.setType(TypePlaceholder.fresh());
- LVD.setDeclidVector($1.getDeclIdVector());
- $$ = LVD;
- }
- /* ########################################################### */
-
-statementwithouttrailingsubstatement : block
- {
- $$=$1;
- }
- | emptystatement
- {
- $$=$1;
- }
- | expressionstatement
- {
- $$=$1;
- }
- | returnstatement
- {
- $$=$1;
- }
-
-ifthenstatement : IF '(' expression ')' statement
- {
- IfStmt Ifst = new IfStmt($3.getOffset(),$3.getVariableLength());
- Ifst.set_Expr($3);
- Ifst.set_Then_block($5);
- $$=Ifst;
- }
-
-ifthenelsestatement : IF '('expression ')'statementnoshortif ELSE statement
- {
- IfStmt IfstElst = new IfStmt($3.getOffset(),$3.getVariableLength());
- IfstElst.set_Expr($3);
- IfstElst.set_Then_block($5);
- IfstElst.set_Else_block($7);
- $$=IfstElst;
- }
-
-whilestatement : WHILE '(' expression ')' statement
- {
- WhileStmt Whlst = new WhileStmt($3.getOffset(),$3.getVariableLength());
- Whlst.set_Expr($3);
- Whlst.set_Loop_block($5);
- $$=Whlst;
- }
-
-//forschleife
-forstatement
- //Bsp: for(i=0 ; i<10 ; i++){System.out.println(i)}
- : FOR '(' expression ';' expression ';' expression ')' statement
- {
- ForStmt Fst = new ForStmt($3.getOffset(),$3.getVariableLength());
- Fst.set_head_Initializer($3);
- Fst.set_head_Condition($5);
- Fst.set_head_Loop_expr($7);
- Fst.set_body_Loop_block($9);
-
- //Typannahme
- $$ = Fst;
- }
- //Bsp: for(i=0 ; i<10 ; ){System.out.println(i)}
- | FOR '(' expression ';' expression ';' ')' statement
- {
- ForStmt Fst = new ForStmt($3.getOffset(),$3.getVariableLength());
- Fst.set_head_Initializer($3);
- Fst.set_head_Condition($5);
- Fst.set_body_Loop_block($8);
-
- //Typannahme
- $$ = Fst;
- }
- //Bsp: for(i=0 ; ; i++){System.out.println(i)}
- | FOR '(' expression ';' ';' expression ')' statement
- {
- ForStmt Fst = new ForStmt($3.getOffset(),$3.getVariableLength());
- Fst.set_head_Initializer($3);
- Fst.set_head_Loop_expr($6);
- Fst.set_body_Loop_block($8);
-
- //Typannahme
- $$ = Fst;
- }
- //Bsp: for( ; i<10 ; i++){System.out.println(i)}
- | FOR '(' ';' expression ';' expression ')' statement
- {
- ForStmt Fst = new ForStmt($4.getOffset(),$4.getVariableLength());
- Fst.set_head_Condition($4);
- Fst.set_head_Loop_expr($6);
- Fst.set_body_Loop_block($8);
-
- //Typannahme
- $$ = Fst;
- }
- //Bsp: for(i=0 ; ; ){System.out.println(i)}
- | FOR '(' expression ';' ';' ')' statement
- {
- ForStmt Fst = new ForStmt($3.getOffset(),$3.getVariableLength());
- Fst.set_head_Initializer($3);
- Fst.set_body_Loop_block($7);
-
- //Typannahme
- $$ = Fst;
- }
- //Bsp: for( ; i<10 ; ){System.out.println(i)}
- | FOR '(' ';' expression ';' ')' statement
- {
- ForStmt Fst = new ForStmt($4.getOffset(),$4.getVariableLength());
- Fst.set_head_Condition($4);
- Fst.set_body_Loop_block($7);
-
- //Typannahme
- $$ = Fst;
- }
- //Bsp: for( ; ; i++){System.out.println(i)}
- | FOR '(' ';' ';' expression ')' statement
- {
- ForStmt Fst = new ForStmt($5.getOffset(),$5.getVariableLength());
- Fst.set_head_Loop_expr($5);
- Fst.set_body_Loop_block($7);
-
- //Typannahme
- $$ = Fst;
- }
- //Bsp: for( ; ; ){System.out.println(i)}
- | FOR '(' ';' ';' ')' statement
- {
- ForStmt Fst = new ForStmt($6.getOffset(),$6.getVariableLength());
- Fst.set_body_Loop_block($6);
-
- //Typannahme
- $$ = Fst;
- }
-
-assignmentexpression : conditionalexpression
- {
- org.apache.log4j.Logger.getLogger("parser").debug("conditionalexpression");
- $$=$1;
- }
- | assignment
- {
- $$=$1;
- }
-
-
-emptystatement : ';'
- {
- EmptyStmt Empst = new EmptyStmt();
- $$=Empst;
- }
-
-expressionstatement : statementexpression ';'
- {
- $$=$1;
- }
-
-returnstatement : RETURN ';'
- {
- Return ret = new Return(-1,-1);
- $$= ret;
- }
- | RETURN expression ';'
- {
- Return retexp = new Return($2.getOffset(),$2.getVariableLength());
- retexp.set_ReturnExpr($2);
- $$=retexp;
- }
-
-statementnoshortif :statementwithouttrailingsubstatement
- {
- $$=$1;
- }
- | ifthenelsestatementnoshortif
- {
- $$=$1;
- }
- | whilestatementnoshortif
- {
- $$=$1;
- }
-
-conditionalexpression :conditionalorexpression
- {
- $$=$1;
- }
- // | conditionalorexpression '?' expression ':' conditionalexpression
-
-assignment :lefthandside assignmentoperator assignmentexpression
- {
- org.apache.log4j.Logger.getLogger("parser").debug("\nParser --> Zuweisung1!\n");
- Assign Ass = new Assign($1.getOffset(),$1.getVariableLength());
- LocalOrFieldVar LOFV = new LocalOrFieldVar($1.getOffset(),$1.getVariableLength());
- LOFV.set_UsedId($1);
- //auskommentiert von Andreas Stadelmeier (a10023) LOFV.setType(TypePlaceholder.fresh());
- //auskommentiert von Andreas Stadelmeier (a10023) Ass.setType(TypePlaceholder.fresh());
- if( $2 == null )
- {
- org.apache.log4j.Logger.getLogger("parser").debug("\nParser --> Zuweisung1 --> " + $3 + " \n");
- Ass.set_Expr( LOFV,$3 );
- }
- else
- {
- Binary Bin = new Binary($3.getOffset(),$3.getVariableLength());
- Bin.set_Expr1(LOFV);
- Bin.set_Operator($2);
- Bin.set_Expr2($3);
- org.apache.log4j.Logger.getLogger("parser").debug("\nParser --> Zuweisung1 --> Binary\n");
- //auskommentiert von Andreas Stadelmeier (a10023) Bin.setType(TypePlaceholder.fresh());
- Ass.set_Expr( LOFV, Bin );
- }
- $$=Ass;
- }
- | lefthandside assignmentoperator classinstancecreationexpression
- {
- Assign Ass =new Assign($1.getOffset(),$1.getVariableLength());
- LocalOrFieldVar LOFV = new LocalOrFieldVar($1.getOffset(),$1.getVariableLength());
- LOFV.set_UsedId($1);
- //auskommentiert von Andreas Stadelmeier (a10023) LOFV.setType(TypePlaceholder.fresh());
- //auskommentiert von Andreas Stadelmeier (a10023) Ass.setType(TypePlaceholder.fresh());
- if($2==null)
- {
- Ass.set_Expr(LOFV,$3);
- }
- else
- {
- Binary Bin = new Binary($3.getOffset(),$3.getVariableLength());
- Bin.set_Expr1(LOFV);
- Bin.set_Operator($2);
- //auskommentiert von Andreas Stadelmeier (a10023) Bin.setType(TypePlaceholder.fresh());
- Bin.set_Expr2($3);
- Ass.set_Expr(LOFV,Bin);
- }
- $$=Ass;
- }
-
-statementexpression :assignment
- {
- $$=$1;
- }
- | preincrementexpression
- {
- $$=$1;
- }
- | predecrementexpression
- {
- $$=$1;
- }
- | postincrementexpression
- {
- $$=$1;
- }
- | postdecrementexpression
- {
- $$=$1;
- }
- | methodinvocation
- {
- $$=$1;
- }
-/* | classinstancecreationexpression
- {
- $$=$1;
- }
-*/
-
-ifthenelsestatementnoshortif :IF '(' expression ')' statementnoshortif
- ELSE statementnoshortif
- {
- IfStmt IfElno = new IfStmt($3.getOffset(),$3.getVariableLength());
- IfElno.set_Expr($3);
- IfElno.set_Then_block($5);
- IfElno.set_Else_block($7);
- $$=IfElno;
- }
-
-whilestatementnoshortif :WHILE '(' expression ')' statementnoshortif
- {
- WhileStmt Whstno = new WhileStmt($3.getOffset(),$3.getVariableLength());
- Whstno.set_Expr($3);
- Whstno.set_Loop_block($5);
- $$=Whstno;
- }
-
-conditionalorexpression : conditionalandexpression
- {
- $$=$1;
- }
- | conditionalorexpression LOGICALOR conditionalandexpression
- {
- Binary LogOr = new Binary($1.getOffset(),$1.getVariableLength());
- OrOp OrO = new OrOp($1.getOffset(),$1.getVariableLength());
- LogOr.set_Expr1($1);
- LogOr.set_Expr2($3);
- LogOr.set_Operator(OrO);
- //auskommentiert von Andreas Stadelmeier (a10023) LogOr.setType(TypePlaceholder.fresh());
- $$=LogOr;
- }
-
-// LambdaExpression eingefügt von Andreas Stadelmeier, a10023:
-
-lambdaassignmentoperator : LAMBDAASSIGNMENT
- {
- $$=null;
- }
-
-lambdabody : block
- {
- $$=$1;
- }
- | expression
- {
- //Lambdabody kann auch nur aus einer Expression bestehen. In diesem Fall wird ein Block erstellt, welcher als einziges Statement ein return statment mit der expression hat.
- //Bsp.: Aus der Expression |var=="hallo"| wird: |{return var=="hallo";}|
- Block ret=new Block();
- ret.statements.add((Statement)new Return(0,0).set_ReturnExpr($1));
- //ret.statements.add((ExprStmt)$1);
- $$=ret;
- }
-
-lambdaexpressionparameter : '(' ')'
- {
- $$=null;
- }
- | '(' formalparameterlist ')'
- {
- $$=$2;
- }
-
-lambdaexpression : lambdaexpressionparameter lambdaassignmentoperator lambdabody
- {
- LambdaExpression lambda = new LambdaExpression(/*((ParameSterList)$2).getOffset(),((ParameterList)$2).getVariableLength()*/0,0);
- if($1!=null)lambda.setParameterList($1);
- lambda.setBody((Block)$3);
- $$=lambda;
- }
-
- /*
- | '(' ')' lambdaassignmentoperator lambdabody
- {
- LambdaExpression lambda = new LambdaExpression(0,0); //hier noch fixen
- lambda.setBody((Block)$4);
- $$=lambda;
- }
- */
-
-
-
-lefthandside :name
- {
- $$=$1;
- }
-
-assignmentoperator : '='
- {
- $$=null;
- }
- | TIMESEQUAL
- {
- TimesOp TEO = new TimesOp(-1,-1);
- $$=TEO;
- }
- | DIVIDEEQUAL
- {
- DivideOp DEO = new DivideOp(-1,-1);
- $$=DEO;
- }
- | MODULOEQUAL
- {
- ModuloOp MEO = new ModuloOp(-1,-1);
- $$=MEO;
- }
- | PLUSEQUAL
- {
- PlusOp PEO = new PlusOp(-1,-1);
- $$=PEO;
- }
- | MINUSEQUAL
- {
- MinusOp MEO = new MinusOp(-1,-1);
- $$=MEO;
- }
- // | SHIFTLEFTEQUAL
- // | SIGNEDSHIFTRIGHTEQUAL
- // | UNSIGNEDSHIFTRIGHTEQUAL
- // | ANDEQUAL
- // | XOREQUAL
- // | OREQUAL
-
-preincrementexpression :INCREMENT unaryexpression
- {
- PreIncExpr PRINC = new PreIncExpr($2.getOffset(),$2.getVariableLength());
- PRINC.set_Expr($2);
- $$=PRINC;
- }
-
-predecrementexpression :DECREMENT unaryexpression
- {
- PreDecExpr PRDEC = new PreDecExpr($2.getOffset(),$2.getVariableLength());
- PRDEC.set_Expr($2);
- $$=PRDEC;
- }
-
-postincrementexpression :postfixexpression INCREMENT
- {
- PostIncExpr PIE = new PostIncExpr($1.getOffset(),$1.getVariableLength());
- PIE.set_Expr($1);
- $$=PIE;
- }
-
-postdecrementexpression :postfixexpression DECREMENT
- {
- PostDecExpr PDE = new PostDecExpr($1.getOffset(),$1.getVariableLength());
- PDE.set_Expr($1);
- $$=PDE;
- }
-
-methodinvocation:
- name '(' ')'
- {
- org.apache.log4j.Logger.getLogger("parser").debug("M1");
- MethodCall MC = new MethodCall($1.getOffset(),$1.getVariableLength());
- UsedId udidmeth = new UsedId($1.getOffset());
- udidmeth.set_Name((String)(($1.get_Name()).elementAt($1.get_Name().size()-1)));
- MC.set_UsedId(udidmeth);
- Receiver rec = null;
- if ($1.get_Name().size() > 2) {
-
- $1.removeLast();
-
- //macht aus der Liste von Strings
- //in usedid.name einen InstVar
- InstVar INSTVA = new InstVar($1,$1.getOffset(),$1.getVariableLength());
-
- //auskommentiert von Andreas Stadelmeier (a10023) INSTVA.setType(TypePlaceholder.fresh());
- rec = new Receiver(INSTVA);
- }
- else if ($1.get_Name().size() == 2) {
- LocalOrFieldVar LOFV = new LocalOrFieldVar($1.getOffset(),$1.getVariableLength());
- $1.removeLast();
- LOFV.set_UsedId($1);
- //auskommentiert von Andreas Stadelmeier (a10023) LOFV.setType(TypePlaceholder.fresh());
- rec = new Receiver(LOFV);
- }
- MC.set_Receiver(rec);
- //auskommentiert von Andreas Stadelmeier (a10023) MC.setType(TypePlaceholder.fresh());
- $$=MC;
- }
- | name '('argumentlist')'
- {
- org.apache.log4j.Logger.getLogger("parser").debug("M2");
- MethodCall MCarg = new MethodCall($1.getOffset(),$1.getVariableLength());
- UsedId udidmeth = new UsedId($1.getOffset());
- udidmeth.set_Name((String)(($1.get_Name()).elementAt($1.get_Name().size()-1)));
- MCarg.set_UsedId(udidmeth);
- Receiver rec = null;
- if ($1.get_Name().size() > 2) {
-
- $1.removeLast();
-
- //macht aus der Liste von Strings
- //in usedid.name einen InstVar
- InstVar INSTVA = new InstVar($1,$1.getOffset(),$1.getVariableLength());
-
- //auskommentiert von Andreas Stadelmeier (a10023) INSTVA.setType(TypePlaceholder.fresh());
- rec = new Receiver(INSTVA);
- }
- else if ($1.get_Name().size() == 2) {
- LocalOrFieldVar LOFV = new LocalOrFieldVar($1.getOffset(),$1.getVariableLength());
- $1.removeLast();
- LOFV.set_UsedId($1);
- //auskommentiert von Andreas Stadelmeier (a10023) LOFV.setType(TypePlaceholder.fresh());
- rec = new Receiver(LOFV);
- }
- MCarg.set_Receiver(rec);
- MCarg.set_ArgumentList($3);
- //auskommentiert von Andreas Stadelmeier (a10023) MCarg.setType(TypePlaceholder.fresh());
- $$=MCarg;
- }
- | primary '.' IDENTIFIER '(' ')'
- {
- org.apache.log4j.Logger.getLogger("parser").debug("M3");
- MethodCall MCpr = new MethodCall($1.getOffset(),$1.getVariableLength());
-
- // PL 05-08-21 primary ist kein UsedId
- //$1.usedid.set_Name($3.getLexem());
- //MCpr.set_UsedId($1.get_UsedId());
- UsedId udidmeth = new UsedId($1.getOffset());
- udidmeth.set_Name($3.getLexem());
- MCpr.set_UsedId(udidmeth);
-
- /* #JB# 04.06.2005 */
- /* ########################################################### */
- MCpr.set_Receiver(new Receiver($1));
- /* ########################################################### */
- //auskommentiert von Andreas Stadelmeier (a10023) MCpr.setType(TypePlaceholder.fresh());
- $$=MCpr;
- }
- | primary '.' IDENTIFIER '('argumentlist ')'
- {
- org.apache.log4j.Logger.getLogger("parser").debug("M4");
- MethodCall MCPA = new MethodCall($1.getOffset(),$1.getVariableLength());
-
- // PL 05-08-21 primary ist kein UsedId
- //$1.usedid.set_Name($3.getLexem());
- //MCPA.set_UsedId($1.get_UsedId());
- UsedId udidmeth = new UsedId($3.getOffset());
- udidmeth.set_Name($3.getLexem());
- MCPA.set_UsedId(udidmeth);
-
- /* #JB# 04.06.2005 */
- /* ########################################################### */
- MCPA.set_Receiver(new Receiver($1));
- /* ########################################################### */
- MCPA.set_ArgumentList($5);
- //auskommentiert von Andreas Stadelmeier (a10023) MCPA.setType(TypePlaceholder.fresh());
- $$=MCPA;
- }
- // | SUPER '.' IDENTIFIER '(' ')'
- // | SUPER '.' IDENTIFIER '('argumentlist')'
-
-classinstancecreationexpression : NEW classtype '(' ')'
- {
- NewClass NC = new NewClass($2.getOffset(),$2.getVariableLength());
- NC.set_UsedId($2);
- usedIdsToCheck.addElement($2);
- //auskommentiert von Andreas Stadelmeier (a10023) NC.setType(TypePlaceholder.fresh());
- $$=NC;
- }
- | NEW classtype '(' argumentlist ')'
- {
- NewClass NCarg = new NewClass($2.getOffset(),$2.getVariableLength());
- NCarg.set_UsedId($2);
- usedIdsToCheck.addElement($2);
- NCarg.set_ArgumentList($4);
- //auskommentiert von Andreas Stadelmeier (a10023) NCarg.setType(TypePlaceholder.fresh());
- $$=NCarg;
- }
-
-conditionalandexpression : inclusiveorexpression
- {
- $$=$1;
- }
- | conditionalandexpression LOGICALAND inclusiveorexpression
- {
- Binary And = new Binary($1.getOffset(),$1.getVariableLength());
- AndOp AndO = new AndOp($1.getOffset(),$1.getVariableLength());
- And.set_Expr1($1);
- And.set_Expr2($3);
- And.set_Operator(AndO);
- //auskommentiert von Andreas Stadelmeier (a10023) And.setType(TypePlaceholder.fresh());
- $$=And;
- }
-
-/*
-fieldaccess :primary '.' IDENTIFIER
- | SUPER '.' IDENTIFIER
-*/
-
-unaryexpression : preincrementexpression
- {
- $$=$1;
- }
- | predecrementexpression
- {
- $$=$1;
- }
- | '+' unaryexpression
- {
- PositivExpr POSEX=new PositivExpr($2.getOffset(),$2.getVariableLength());
- UnaryPlus UP= new UnaryPlus();
- POSEX.set_UnaryPlus(UP);
- POSEX.set_Expr($2);
- $$=POSEX;
- }
- | '-' unaryexpression
- {
- NegativeExpr NEGEX=new NegativeExpr($2.getOffset(),$2.getVariableLength());
- UnaryMinus UM=new UnaryMinus();
- NEGEX.set_UnaryMinus(UM);
- NEGEX.set_Expr($2);
- $$=NEGEX;
- }
- | unaryexpressionnotplusminus
- {
- $$=$1;
- }
-
-postfixexpression :primary
- {
- $$=$1;
- }
- | name
- {
- if ($1.get_Name().size() > 1) {
-
- //macht aus der Liste von Strings
- //in usedid.name einen InstVar
- InstVar INSTVA = new InstVar($1,$1.getOffset(),$1.getVariableLength());
-
- //auskommentiert von Andreas Stadelmeier (a10023) INSTVA.setType(TypePlaceholder.fresh());
- $$ = INSTVA;
- }
- else {
- LocalOrFieldVar Postincexpr = new LocalOrFieldVar($1.getOffset(),$1.getVariableLength());
- Postincexpr.set_UsedId($1);
- //auskommentiert von Andreas Stadelmeier (a10023) Postincexpr.setType(TypePlaceholder.fresh());
- $$=Postincexpr;
- }
- }
- | postincrementexpression
- {
- $$=$1;
- }
- | postdecrementexpression
- {
- $$=$1;
- }
-
-primary : primarynonewarray
- {
- $$=$1;
- }
-
-inclusiveorexpression : exclusiveorexpression
- {
- $$=$1;
- }
- | inclusiveorexpression '|' exclusiveorexpression
-
-primarynonewarray : literal
- {
- $$=$1;
- }
- | THIS
- {
- This T = new This($1.getOffset(),$1.getLexem().length());
- UsedId UT = new UsedId($1.getOffset());
- UT.set_Name($1.getLexem());
- T.set_UsedId(UT);
- $$=T;
- }
-/* auskommentiert von Andreas Stadelmeier
- | '('expression')'
- {
- $$=$2;
- }
- */
-/*
- | classinstancecreationexpression
- {
- $$=$1;
- }
- | fieldaccess
-*/
- | methodinvocation
- {
- $$=$1;
- }
- |lambdaexpression
- {
- $$=$1;
- }
-
-
-unaryexpressionnotplusminus : postfixexpression {$$=$1;}
- // | '~' unaryexpression
- | '!' unaryexpression {NotExpr NE=new NotExpr($2.getOffset(),$2.getVariableLength());
- UnaryNot UN=new UnaryNot();
- NE.set_UnaryNot(UN);
- NE.set_Expr($2);
- $$=NE;
- }
- | castexpression {$$=$1;}
-
-exclusiveorexpression :andexpression {$$=$1;}
- | exclusiveorexpression '^' andexpression //{
- //
- //}
-
-literal : INTLITERAL {IntLiteral IL = new IntLiteral();
- IL.set_Int($1.String2Int());
- $$ = IL;
- }
-
- | BOOLLITERAL {BoolLiteral BL = new BoolLiteral();
- BL.set_Bool($1.String2Bool());
- $$ = BL;
- }
- | CHARLITERAL {CharLiteral CL = new CharLiteral();
- CL.set_Char($1.CharInString());
- $$=CL;
- }
- | STRINGLITERAL
- {
- StringLiteral ST = new StringLiteral();
- ST.set_String($1.get_String());
- $$=ST;
- }
- | LONGLITERAL { LongLiteral LL = new LongLiteral();
- LL.set_Long($1.String2Long());
- $$ = LL;
- }
- | FLOATLITERAL {
- FloatLiteral FL = new FloatLiteral();
- FL.set_Float($1.String2Float());
- $$ = FL;
- }
- | DOUBLELITERAL {
- DoubleLiteral DL = new DoubleLiteral();
- DL.set_Double($1.String2Double());
- $$ = DL;
- }
- | JNULL;
- {
- Null NN = new Null();
- $$=NN;
- }
-
-castexpression : '(' primitivetype ')' unaryexpression
- {
- CastExpr CaEx=new CastExpr($4.getOffset(),$4.getVariableLength());
- CaEx.set_Type($2);
- CaEx.set_Expr($4);
- $$=CaEx;
- }
- //| '(' expression ')' unaryexpressionnotplusminus
-
-andexpression :equalityexpression
- {
- $$=$1;
- }
- | andexpression '&' equalityexpression
- {
- }
-
-equalityexpression : relationalexpression
- {
- $$=$1;
- }
- | equalityexpression EQUAL relationalexpression
- {
- Binary EQ = new Binary($1.getOffset(),$1.getVariableLength());
- EqualOp EO = new EqualOp($1.getOffset(),$1.getVariableLength());
- EQ.set_Expr1($1);
- EQ.set_Expr2($3);
- EQ.set_Operator(EO);
- //auskommentiert von Andreas Stadelmeier (a10023) EQ.setType(TypePlaceholder.fresh());
- $$=EQ;
- }
- | equalityexpression NOTEQUAL relationalexpression
- {
- Binary NEQ = new Binary($1.getOffset(),$1.getVariableLength());
- NotEqualOp NEO = new NotEqualOp($1.getOffset(),$1.getVariableLength());
- NEQ.set_Expr1($1);
- NEQ.set_Expr2($3);
- NEQ.set_Operator(NEO);
- //auskommentiert von Andreas Stadelmeier (a10023) NEQ.setType(TypePlaceholder.fresh());
- $$=NEQ;
- }
-
-relationalexpression : shiftexpression
- {
- $$=$1;
- }
- | relationalexpression '<' shiftexpression
- {
- Binary LO = new Binary($1.getOffset(),$1.getVariableLength());
- LessOp LOO = new LessOp($1.getOffset(),$1.getVariableLength());
- LO.set_Expr1($1);
- LO.set_Expr2($3);
- LO.set_Operator(LOO);
- //auskommentiert von Andreas Stadelmeier (a10023) LO.setType(TypePlaceholder.fresh());
- $$=LO;
- }
- | relationalexpression '>' shiftexpression
- {
- Binary GO = new Binary($1.getOffset(),$1.getVariableLength());
- GreaterOp GOO = new GreaterOp($1.getOffset(),$1.getVariableLength());
- GO.set_Expr1($1);
- GO.set_Expr2($3);
- GO.set_Operator( GOO );
- //auskommentiert von Andreas Stadelmeier (a10023) GO.setType(TypePlaceholder.fresh());
- $$=GO;
- }
- | relationalexpression LESSEQUAL shiftexpression
- {
- Binary LE = new Binary($1.getOffset(),$1.getVariableLength());
- LessEquOp LEO = new LessEquOp($1.getOffset(),$1.getVariableLength());
- LE.set_Expr1($1);
- LE.set_Expr2($3);
- LE.set_Operator(LEO);
- //auskommentiert von Andreas Stadelmeier (a10023) LE.setType(TypePlaceholder.fresh());
- $$=LE;
- }
- | relationalexpression GREATEREQUAL shiftexpression
- {
- Binary GE = new Binary($1.getOffset(),$1.getVariableLength());
- GreaterEquOp GEO = new GreaterEquOp($1.getOffset(),$1.getVariableLength());
- GE.set_Expr1($1);
- GE.set_Expr2($3);
- GE.set_Operator(GEO);
- //auskommentiert von Andreas Stadelmeier (a10023) GE.setType(TypePlaceholder.fresh());
- $$=GE;
- }
- | relationalexpression INSTANCEOF referencetype
- {
- InstanceOf ISO=new InstanceOf($1.getOffset(),$1.getVariableLength());
- ISO.set_Expr($1);
- ISO.set_Type($3);
- $$=ISO;
- }
-
-shiftexpression : additiveexpression
- {
- $$=$1;
- }
-
-additiveexpression :multiplicativeexpression
- {
- $$=$1;
- }
- | additiveexpression '+' multiplicativeexpression
- {
- Binary AD = new Binary($1.getOffset(),$1.getVariableLength());
- PlusOp PO = new PlusOp($1.getOffset(),$1.getVariableLength());
- AD.set_Expr1($1);
- AD.set_Expr2($3);
- AD.set_Operator(PO);
- //auskommentiert von Andreas Stadelmeier (a10023) AD.setType(TypePlaceholder.fresh());
- $$=AD;
- }
- | additiveexpression '-' multiplicativeexpression
- {
- Binary MI = new Binary($1.getOffset(),$1.getVariableLength());
- MinusOp MO = new MinusOp($1.getOffset(),$1.getVariableLength());
- MI.set_Expr1($1);
- MI.set_Expr2($3);
- MI.set_Operator(MO);
- //auskommentiert von Andreas Stadelmeier (a10023) MI.setType(TypePlaceholder.fresh());
- $$=MI;
- }
-
-multiplicativeexpression : unaryexpression
- {
- $$=$1;
- }
- | multiplicativeexpression '*' unaryexpression
- {
- Binary ML = new Binary($1.getOffset(),$1.getVariableLength());
- TimesOp TO = new TimesOp($1.getOffset(),$1.getVariableLength());
- ML.set_Expr1($1);
- ML.set_Expr2($3);
- ML.set_Operator(TO);
- //auskommentiert von Andreas Stadelmeier (a10023) ML.setType(TypePlaceholder.fresh());
- $$=ML;
- }
- | multiplicativeexpression '/' unaryexpression
- {
- Binary DV = new Binary($1.getOffset(),$1.getVariableLength());
- DivideOp DO = new DivideOp($1.getOffset(),$1.getVariableLength());
- DV.set_Expr1($1);
- DV.set_Expr2($3);
- DV.set_Operator(DO);
- //auskommentiert von Andreas Stadelmeier (a10023) DV.setType(TypePlaceholder.fresh());
- $$ = DV;
- }
- | multiplicativeexpression '%' unaryexpression
- {
- Binary MD = new Binary($1.getOffset(),$1.getVariableLength());
- ModuloOp MO = new ModuloOp($1.getOffset(),$1.getVariableLength());
- MD.set_Expr1($1);
- MD.set_Expr2($3);
- MD.set_Operator(MO);
- //auskommentiert von Andreas Stadelmeier (a10023) MD.setType(TypePlaceholder.fresh());
- $$ =MD;
- }
-
-
-%%
\ No newline at end of file
diff --git a/src/mycompiler/myparser/JavaParser_old.jay b/src/mycompiler/myparser/JavaParser_old.jay
deleted file mode 100755
index 4c5a00e4..00000000
--- a/src/mycompiler/myparser/JavaParser_old.jay
+++ /dev/null
@@ -1,1567 +0,0 @@
-%{
-package mycompiler.myparser;
-
-import java.util.Vector;
-
-import mycompiler.DeclId;
-import mycompiler.ExceptionList;
-import mycompiler.MyCompiler;
-import mycompiler.ParaList;
-import mycompiler.SourceFile;
-import mycompiler.UsedId;
-import mycompiler.myclass.Class;
-import mycompiler.myclass.ClassBody;
-import mycompiler.myclass.ClassDeclId;
-import mycompiler.myclass.Constructor;
-import mycompiler.myclass.FieldDecl;
-import mycompiler.myclass.FormalParameter;
-import mycompiler.myclass.InstVarDecl;
-import mycompiler.myclass.Method;
-import mycompiler.myclass.ParameterList;
-import mycompiler.mymodifier.Abstract;
-import mycompiler.mymodifier.Modifier;
-import mycompiler.mymodifier.Modifiers;
-import mycompiler.mymodifier.Private;
-import mycompiler.mymodifier.Protected;
-import mycompiler.mymodifier.Public;
-import mycompiler.mymodifier.Static;
-import mycompiler.myoperator.AndOp;
-import mycompiler.myoperator.DivideOp;
-import mycompiler.myoperator.EqualOp;
-import mycompiler.myoperator.GreaterEquOp;
-import mycompiler.myoperator.GreaterOp;
-import mycompiler.myoperator.LessEquOp;
-import mycompiler.myoperator.LessOp;
-import mycompiler.myoperator.MinusOp;
-import mycompiler.myoperator.ModuloOp;
-import mycompiler.myoperator.NotEqualOp;
-import mycompiler.myoperator.Operator;
-import mycompiler.myoperator.OrOp;
-import mycompiler.myoperator.PlusOp;
-import mycompiler.myoperator.TimesOp;
-import mycompiler.mystatement.ArgumentList;
-import mycompiler.mystatement.Assign;
-import mycompiler.mystatement.Binary;
-import mycompiler.mystatement.Block;
-import mycompiler.mystatement.BoolLiteral;
-import mycompiler.mystatement.CastExpr;
-import mycompiler.mystatement.CharLiteral;
-import mycompiler.mystatement.EmptyStmt;
-import mycompiler.mystatement.Expr;
-import mycompiler.mystatement.ExprStmt;
-import mycompiler.mystatement.IfStmt;
-import mycompiler.mystatement.InstanceOf;
-import mycompiler.mystatement.IntLiteral;
-import mycompiler.mystatement.Literal;
-import mycompiler.mystatement.LocalOrFieldVar;
-import mycompiler.mystatement.LocalVarDecl;
-import mycompiler.mystatement.MethodCall;
-import mycompiler.mystatement.NegativeExpr;
-import mycompiler.mystatement.NewClass;
-import mycompiler.mystatement.NotExpr;
-import mycompiler.mystatement.Null;
-import mycompiler.mystatement.PositivExpr;
-import mycompiler.mystatement.PostDecExpr;
-import mycompiler.mystatement.PostIncExpr;
-import mycompiler.mystatement.PreDecExpr;
-import mycompiler.mystatement.PreIncExpr;
-import mycompiler.mystatement.Return;
-import mycompiler.mystatement.Statement;
-import mycompiler.mystatement.StringLiteral;
-import mycompiler.mystatement.This;
-import mycompiler.mystatement.UnaryMinus;
-import mycompiler.mystatement.UnaryNot;
-import mycompiler.mystatement.UnaryPlus;
-import mycompiler.mystatement.WhileStmt;
-import mycompiler.mytype.BaseType;
-import mycompiler.mytype.BooleanType;
-import mycompiler.mytype.CharacterType;
-import mycompiler.mytype.IntegerType;
-import mycompiler.mytype.RefType;
-import mycompiler.mytype.Type;
-import mycompiler.mytype.TyploseVariable;
-
-public class JavaParser{
-public Vector path = new Vector();
-%}
-
-%token ABSTRACT
-%token BOOLEAN
-%token BREAK
-%token CASE
-%token CATCH
-%token CHAR
-%token CLASS
-%token CONTINUE
-%token DEFAULT
-%token DO
-%token ELSE
-%token EXTENDS
-%token FINALLY
-%token FOR
-%token IF
-%token INSTANCEOF
-%token INT
-%token NEW
-%token PRIVATE
-%token PROTECTED
-%token PUBLIC
-%token RETURN
-%token STATIC
-%token SUPER
-%token SWITCH
-%token THIS
-%token THROW
-%token THROWS
-%token TRY
-%token VOID
-%token WHILE
-%token INTLITERAL
-%token BOOLLITERAL
-%token JNULL
-%token CHARLITERAL
-%token STRINGLITERAL
-%token IDENTIFIER
-%token EQUAL
-%token LESSEQUAL
-%token GREATEREQUAL
-%token NOTEQUAL
-%token LOGICALOR
-%token LOGICALAND
-%token INCREMENT
-%token DECREMENT
-%token SHIFTLEFT
-%token SHIFTRIGHT
-%token UNSIGNEDSHIFTRIGHT
-%token SIGNEDSHIFTRIGHT
-%token PLUSEQUAL
-%token MINUSEQUAL
-%token TIMESEQUAL
-%token DIVIDEEQUAL
-%token ANDEQUAL
-%token OREQUAL
-%token XOREQUAL
-%token MODULOEQUAL
-%token SHIFTLEFTEQUAL
-%token SIGNEDSHIFTRIGHTEQUAL
-%token UNSIGNEDSHIFTRIGHTEQUAL
-%token BRACE
-%token RELOP
-%token OP
-%token EOF
-
-%type classdeclaration
-%type classbody
-%type fielddeclaration
-%type methodheader
-%type methoddeclaration
-%type methoddeclarator
-%type classbodydeclarations
-%type classbodydeclaration
-%type classmemberdeclaration
-%type variabledeclarators
-%type variabledeclarator
-%type variabledeclaratorid
-%type simplename
-%type qualifiedname
-%type name
-%type super
-%type classtype
-%type classorinterfacetype
-%type integraltype
-%type numerictype
-%type primitivetype
-%type referencetype
-%type classtypelist
-%type type
-%type modifiers
-%type modifier
-%type block
-%type methodbody
-%type blockstatements
-%type localvariabledeclarationstatement
-%type localvariabledeclaration
-%type throws
-%type formalparameter
-%type formalparameterlist
-%type literal
-%type primarynonewarray
-%type primary
-%type postfixexpression
-%type unaryexpressionnotplusminus
-%type unaryexpression
-%type multiplicativeexpression
-%type additiveexpression
-%type shiftexpression
-%type relationalexpression
-%type equalityexpression
-%type andexpression
-%type exclusiveorexpression
-%type inclusiveorexpression
-%type conditionalandexpression
-%type conditionalorexpression
-%type