Anfangen mit Masterarbeit

This commit is contained in:
JanUlrich 2017-12-15 00:06:57 +01:00
parent 7d8e8249ed
commit 9919ecd083
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package de.dhbwstuttgart.sat.asp;
import de.dhbwstuttgart.parser.scope.JavaClassName;
import de.dhbwstuttgart.syntaxtree.ClassOrInterface;
import de.dhbwstuttgart.typeinference.constraints.ConstraintSet;
import java.util.Collection;
public class ASPGenerator {
public static String toASP(ConstraintSet constraintSet, Collection<ClassOrInterface> fcClasses){
String ret = "";
for(ClassOrInterface cl : fcClasses){
String className = toConstant(cl.getClassName());
String superClassName = toConstant(cl.getSuperClass().getName());
}
return ret;
}
public static String toConstant(JavaClassName name){
return "c" + name.toString().replace(".", "_");
}
}

View File

@ -0,0 +1,9 @@
package de.dhbwstuttgart.sat.asp.model;
import java.util.List;
public class ASPType {
public ASPType(String name, List<ASPType> params){
}
}