forked from JavaTX/JavaCompilerCore
43 lines
843 B
Java
43 lines
843 B
Java
package strucTypes2;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
import de.dhbwstuttgart.syntaxtree.ClassOrInterface;
|
|
import de.dhbwstuttgart.syntaxtree.Field;
|
|
import de.dhbwstuttgart.syntaxtree.Method;
|
|
import de.dhbwstuttgart.syntaxtree.SourceFile;
|
|
|
|
public class FindAssumptions {
|
|
|
|
|
|
|
|
public static void generateFieldAssumptions(ClassOrInterface cl) {
|
|
|
|
List<Assumption_Field> res = new ArrayList<Assumption_Field>();
|
|
|
|
for (Field f : cl.getFieldDecl()) {
|
|
res.add(new Assumption_Field(f.getType(), f));
|
|
}
|
|
|
|
}
|
|
|
|
|
|
public static void generateMethodAssumptions(ClassOrInterface cl) {
|
|
List<Assumption_Method> res = new ArrayList<Assumption_Method>();
|
|
|
|
for (Method m : cl.getMethods() ) {
|
|
//res.add(new Assumption_Method());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
public static void generateArgumentAssumptions() {
|
|
|
|
}
|
|
|
|
|
|
}
|