forked from JavaTX/JavaCompilerCore
Fehler in WildcardType.printJavaCode behoben
This commit is contained in:
parent
37d33b7a31
commit
3232201843
@ -1,5 +1,8 @@
|
|||||||
package de.dhbwstuttgart.syntaxtree.type;
|
package de.dhbwstuttgart.syntaxtree.type;
|
||||||
|
|
||||||
|
import de.dhbwstuttgart.typeinference.JavaCodeResult;
|
||||||
|
import de.dhbwstuttgart.typeinference.ResultSet;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stellt eine Wildcard mit oberer Grenze dar.
|
* Stellt eine Wildcard mit oberer Grenze dar.
|
||||||
@ -121,4 +124,10 @@ public class ExtendsWildcardType extends WildcardType implements ITypeContainer,
|
|||||||
{
|
{
|
||||||
return this.get_ExtendsType();
|
return this.get_ExtendsType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JavaCodeResult printJavaCode(ResultSet resultSet) {
|
||||||
|
return new JavaCodeResult("? extends "+this.extendsType.printJavaCode(resultSet));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -126,7 +126,7 @@ public class SuperWildcardType extends WildcardType implements ITypeContainer, I
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JavaCodeResult printJavaCode(ResultSet result){
|
public JavaCodeResult printJavaCode(ResultSet result){
|
||||||
return new JavaCodeResult("? super " + this.superType.printJavaCode(resultSet));
|
return new JavaCodeResult("? super " + this.superType.printJavaCode(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -89,10 +89,6 @@ public class WildcardType extends Type{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JavaCodeResult printJavaCode(ResultSet resultSet) {
|
public JavaCodeResult printJavaCode(ResultSet resultSet) {
|
||||||
//String ret = "? extends ";
|
throw new NotImplementedException();
|
||||||
//ret+=this.extendsType;
|
|
||||||
//TODO hier wird statt "? extends class" nur "class" ausgegeben
|
|
||||||
return new JavaCodeResult(this.toString());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user