prompto.java.JavaExpression Maven / Gradle / Ivy
The newest version!
package prompto.java;
import prompto.compiler.ResultInfo;
import prompto.compiler.MethodInfo;
import prompto.error.PromptoError;
import prompto.parser.ICodeSection;
import prompto.runtime.Context;
import prompto.type.IType;
import prompto.utils.CodeWriter;
public interface JavaExpression extends ICodeSection {
IType check(Context context);
Object interpret(Context context) throws PromptoError;
void toDialect(CodeWriter writer);
default ResultInfo compile(Context context, MethodInfo method) {
System.err.println("Need to implement compile for " + this.getClass().getName());
throw new UnsupportedOperationException();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy