forked from JavaTX/JavaCompilerCore
Merge branch 'bigRefactoring' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into bytecode2
This commit is contained in:
commit
ab36050f9b
8
src/de/dhbwstuttgart/sat/CNF/CNF.java
Normal file
8
src/de/dhbwstuttgart/sat/CNF/CNF.java
Normal file
@ -0,0 +1,8 @@
|
||||
package de.dhbwstuttgart.sat.CNF;
|
||||
|
||||
public class CNF {
|
||||
/*
|
||||
Baut die CNF Datei.
|
||||
Hier muss man überlegen, in welchem Form die Constraints gebaut werden
|
||||
*/
|
||||
}
|
12
src/de/dhbwstuttgart/sat/CNF/Writer.java
Normal file
12
src/de/dhbwstuttgart/sat/CNF/Writer.java
Normal file
@ -0,0 +1,12 @@
|
||||
package de.dhbwstuttgart.sat.CNF;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
/**
|
||||
* Schreibt CNFs in eine Datei im DIMACS CNF Format
|
||||
*/
|
||||
public class Writer {
|
||||
public Writer(FileWriter output){
|
||||
|
||||
}
|
||||
}
|
24
src/de/dhbwstuttgart/sat/asp/ASPGenerator.java
Normal file
24
src/de/dhbwstuttgart/sat/asp/ASPGenerator.java
Normal 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(".", "_");
|
||||
}
|
||||
}
|
9
src/de/dhbwstuttgart/sat/asp/model/ASPType.java
Normal file
9
src/de/dhbwstuttgart/sat/asp/model/ASPType.java
Normal 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){
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package de.dhbwstuttgart.typeinference.result;
|
||||
|
||||
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPHOrWildcardOrGeneric;
|
||||
import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
|
||||
|
||||
public class PairTPHEqualTPH extends ResultPair<TypePlaceholder, TypePlaceholder> {
|
||||
public PairTPHEqualTPH(TypePlaceholder tl, TypePlaceholder tr) {
|
||||
super(tl, tr);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ResultSetVisitor visitor) {
|
||||
visitor.visit(this);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user