For a detailed description of the project please see the project paper.
How to install (For now)
Run ./install.sh
Add 507 Project into Eclipse/IntelliJ
Add javasymbolsolver-core, javasymbolsolver-model, javasymbolsolver-logic to Eclipse/IntelliJ
Run 507
- Integrated changes
javaparser/javaparser#882 - CPSC_507/javasymbolsolver/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserInterfaceDeclaration.java
Changed toReferenceType()
List<com.github.javaparser.ast.type.Type> superClassTypeParameters = classOrInterfaceType.getTypeArguments()
.get();
for (com.github.javaparser.ast.type.Type type : superClassTypeParameters) {
if (type.toString().equals(this.getWrappedNode().getNameAsString())) {
superClassTypeParameters.remove(type);
}
}
List<Type> solvedTypeParameters = superClassTypeParameters.stream()
.map(ta -> JavaParserFacade.get(typeSolver).convert(ta, ta)).collect(Collectors.toList());
return new ReferenceTypeImpl(ref.getCorrespondingDeclaration().asReferenceType(), solvedTypeParameters,
typeSolver);