From 9919ecd083ba248ece1730128bcc0320ff84d43a Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Fri, 15 Dec 2017 00:06:57 +0100 Subject: [PATCH] Anfangen mit Masterarbeit --- .../dhbwstuttgart/sat/asp/ASPGenerator.java | 24 +++++++++++++++++++ .../dhbwstuttgart/sat/asp/model/ASPType.java | 9 +++++++ 2 files changed, 33 insertions(+) create mode 100644 src/de/dhbwstuttgart/sat/asp/ASPGenerator.java create mode 100644 src/de/dhbwstuttgart/sat/asp/model/ASPType.java diff --git a/src/de/dhbwstuttgart/sat/asp/ASPGenerator.java b/src/de/dhbwstuttgart/sat/asp/ASPGenerator.java new file mode 100644 index 00000000..26ab0957 --- /dev/null +++ b/src/de/dhbwstuttgart/sat/asp/ASPGenerator.java @@ -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 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(".", "_"); + } +} diff --git a/src/de/dhbwstuttgart/sat/asp/model/ASPType.java b/src/de/dhbwstuttgart/sat/asp/model/ASPType.java new file mode 100644 index 00000000..4de8759d --- /dev/null +++ b/src/de/dhbwstuttgart/sat/asp/model/ASPType.java @@ -0,0 +1,9 @@ +package de.dhbwstuttgart.sat.asp.model; + +import java.util.List; + +public class ASPType { + public ASPType(String name, List params){ + + } +}