public abstract class AbstractFunction extends Object implements Function
| Modifier and Type | Field and Description |
|---|---|
protected Converter |
converter |
protected Evaluator |
evaluator |
protected Executor |
executor |
protected org.slf4j.Logger |
logger |
protected Parser |
parser |
protected HistoneResourceLoader |
resourceLoader |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFunction(Converter converter) |
protected |
AbstractFunction(Executor executor,
HistoneResourceLoader resourceLoader,
Evaluator evaluator,
Parser parser,
Converter converter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkMaxArgsLength(List<EvalNode> args,
int expectedCount) |
protected static void |
checkMinArgsLength(List<EvalNode> args,
int expectedCount) |
protected static void |
checkTypes(EvalNode node,
int index,
HistoneType type,
Class<?> clazz) |
protected static void |
checkTypes(EvalNode node,
int index,
List<HistoneType> expectedTypes,
List<Class<?>> classes)
|
protected List<EvalNode> |
clearGlobal(List<EvalNode> args) |
protected Context |
createCtx(Context baseContext,
String baseUri,
Object params) |
protected Long |
getLongValue(List<EvalNode> args,
int index,
Long defValue) |
protected <T> T |
getValue(List<EvalNode> args,
int index) |
protected <T> T |
getValue(List<EvalNode> args,
int index,
T defValue) |
boolean |
isAsync()
Return true, if function must be run in own thread, otherwise - false
|
boolean |
isClear() |
protected final org.slf4j.Logger logger
protected final Executor executor
protected final HistoneResourceLoader resourceLoader
protected final Evaluator evaluator
protected final Parser parser
protected final Converter converter
protected AbstractFunction(Converter converter)
protected AbstractFunction(Executor executor, HistoneResourceLoader resourceLoader, Evaluator evaluator, Parser parser, Converter converter)
protected static void checkTypes(EvalNode node, int index, List<HistoneType> expectedTypes, List<Class<?>> classes)
EvalNode on int position with specified HistoneType and Class.
If validation will failed, method returns error message. Otherwise method returns null.node - eval node, which wrapping argument valueindex - index in arguments listexpectedTypes - expected types of nodeclasses - expected types of node wrapped valueprotected static void checkTypes(EvalNode node, int index, HistoneType type, Class<?> clazz)
public boolean isAsync()
FunctionCopyright © 2017. All rights reserved.