forked from JavaTX/JavaCompilerCore
39 lines
729 B
Java
Executable File
39 lines
729 B
Java
Executable File
package typinferenz;
|
|
|
|
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
|
|
import mycompiler.mytype.Type;
|
|
|
|
public class FreshTypeVariable extends Type{
|
|
|
|
private String hint = "";
|
|
|
|
public FreshTypeVariable(int offset) {
|
|
super(offset);
|
|
}
|
|
|
|
/**
|
|
* Aufruf für Debug-Zwecke.
|
|
* @param hint - Eine Message die von der toString - Methode ausgegeben wird.
|
|
*/
|
|
public FreshTypeVariable(String hint){
|
|
this(0);
|
|
this.hint = hint;
|
|
}
|
|
|
|
public FreshTypeVariable(){
|
|
this(0);
|
|
}
|
|
|
|
@Override
|
|
public String toString(){
|
|
if(hint.length()>0)return hint+" : a";
|
|
return "FreshTypeVariable";
|
|
}
|
|
|
|
@Override
|
|
|
|
public JavaCodeResult printJavaCode(ResultSet resultSet) {
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|