![JAR search and dependency download from the Maven repository](/logo.png)
org.opencds.cqf.cql.elm.execution.Executable Maven / Gradle / Ivy
package org.opencds.cqf.cql.elm.execution;
import org.apache.commons.lang3.NotImplementedException;
import org.opencds.cqf.cql.exception.CqlException;
import org.opencds.cqf.cql.exception.CqlExceptionHandler;
import org.opencds.cqf.cql.execution.Context;
import java.util.function.Function;
public class Executable
{
public Object evaluate(Context context) throws CqlException
{
try {
return internalEvaluate(context);
}
catch (Exception e) {
if (e instanceof CqlException) {
throw e;
}
else {
throw new CqlException(e);
}
}
}
protected Object internalEvaluate(Context context) {
throw new NotImplementedException(String.format("evaluate not implemented for class %s",
this.getClass().getSimpleName()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy