net.sf.aguacate.function.Function Maven / Gradle / Ivy
package net.sf.aguacate.function;
import java.util.Map;
public interface Function {
String LT = "LT";
String LE = "LE";
String GT = "GT";
String GE = "GE";
String EQ = "EQ";
String NE = "NE";
String ZERO = "ZERO";
String NOT_ZERO = "NOT_ZERO";
String REN = "REN";
String COPY = "COPY";
String SCRIPT = "SCRIPT";
String STRUCTURE_ARRAY_ITERATOR = "STRUCTURE_ARRAY_ITERATOR";
String LITERAL_STRING = "LITERAL_STRING";
String LITERAL_INTEGER = "LITERAL_INTEGER";
String CONDITIONAL = "CONDITIONAL";
String SQL_SELECT_SINGLE = "SQL_SELECT_SINGLE";
String SQL_COUNT_NOT_ZERO = "SQL_COUNT_NOT_ZERO";
String SQL_COUNT_ZERO = "SQL_COUNT_ZERO";
String BASE64_DECODE = "BASE64_DECODE";
String BASE64_ENCODE = "BASE64_ENCODE";
String SHA256 = "SHA256";
String JSON_ENCODE = "JSON_ENCODE";
String JSON_DECODE = "JSON_DECODE";
String STRING_SUBSTITUTOR = "STRING_SUBSTITUTOR";
String CONNECTOR_CALL = "CONNECTOR_CALL";
String getName();
default String[] getOutputContext() {
return null;
}
default String getOutputName() {
return null;
}
FunctionEvalResult evaluate(FunctionContext functionContext, Map context);
boolean validFor(String method);
}