modified: src/main/java/de/dhbwstuttgart/bytecode/genericsGenerator/GeneratedGenericsFinder.java
modified: src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java
This commit is contained in:
parent
b40cb49b9f
commit
1b9e824b86
@ -169,7 +169,7 @@ public class GeneratedGenericsFinder implements ASTVisitor {
|
|||||||
|
|
||||||
|
|
||||||
if(ggResult != null) { //Hinzufuegen von Fayez ggResult
|
if(ggResult != null) { //Hinzufuegen von Fayez ggResult
|
||||||
generatedGenericsForSF.addGenericGeneratorResultClass(ggResult);
|
//generatedGenericsForSF.addGenericGeneratorResultClass(ggResult);
|
||||||
}
|
}
|
||||||
// Fayez Ansatz Ende
|
// Fayez Ansatz Ende
|
||||||
//*/
|
//*/
|
||||||
@ -198,7 +198,7 @@ public class GeneratedGenericsFinder implements ASTVisitor {
|
|||||||
ggResultAlternative = new GenericsGeneratorResultForClass(className, listOfClassCons, ggRfaM);
|
ggResultAlternative = new GenericsGeneratorResultForClass(className, listOfClassCons, ggRfaM);
|
||||||
|
|
||||||
if(ggResultAlternative != null) {//hinzufuegen von Alis ggResult
|
if(ggResultAlternative != null) {//hinzufuegen von Alis ggResult
|
||||||
//generatedGenericsForSF.addGenericGeneratorResultClass(ggResultAlternative);
|
generatedGenericsForSF.addGenericGeneratorResultClass(ggResultAlternative);
|
||||||
System.out.println(generatedGenericsForSF);
|
System.out.println(generatedGenericsForSF);
|
||||||
}
|
}
|
||||||
System.out.println(ggResultAlternative);
|
System.out.println(ggResultAlternative);
|
||||||
|
@ -638,7 +638,7 @@ public class FamilyOfGeneratedGenerics {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
containedVars.remove(((TypePlaceholder)newPair2.TA2).getName());
|
//containedVars.remove(((TypePlaceholder)newPair2.TA2).getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -654,11 +654,13 @@ public class FamilyOfGeneratedGenerics {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
*/
|
*/
|
||||||
|
//Referenzbeispiel Put.jav
|
||||||
if (containedVars.stream().filter(v -> tcOfCs.contains(new TPHConstraint(pairExtends2RHSName, v, Relation.EXTENDS)))
|
if (containedVars.stream().filter(v -> tcOfCs.contains(new TPHConstraint(pairExtends2RHSName, v, Relation.EXTENDS)))
|
||||||
.count() > 0) {
|
.count() > 0) {
|
||||||
tempSet2.add(pairExtends2);
|
System.out.println();
|
||||||
|
//tempSet2.add(pairExtends2);
|
||||||
}
|
}
|
||||||
if (posOfTphs.containsKey(pairExtends2RHSName)) {
|
if (posOfTphs.containsKey(pairExtends2RHSName)) {//Refrenzbeispiel TestVector.jav
|
||||||
if (posOfTphs.get(pairExtends2RHSName).contains(new PairTphMethod<>(PositionFinder.Position.METHOD, methodAndTPH.getId()))) {
|
if (posOfTphs.get(pairExtends2RHSName).contains(new PairTphMethod<>(PositionFinder.Position.METHOD, methodAndTPH.getId()))) {
|
||||||
tempSet2.add(pairExtends2);
|
tempSet2.add(pairExtends2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user