public class MacroCall extends AbstractFunction implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
converter, evaluator, executor, logger, parser, resourceLoader| Constructor and Description |
|---|
MacroCall(Executor executor,
HistoneResourceLoader resourceLoader,
Evaluator evaluator,
Parser parser,
Converter converter) |
| Modifier and Type | Method and Description |
|---|---|
protected CompletableFuture<EvalNode> |
callWrappedGlobalFunction(Context context,
List<EvalNode> args,
AstNode body) |
protected CompletableFuture<EvalNode> |
callWrappedValueFunction(Context context,
List<EvalNode> args,
ExpAstNode body,
EvalNode result) |
protected CompletableFuture<EvalNode> |
createSelfObject(EvalNode macro,
String baseURI,
List<EvalNode> args) |
CompletableFuture<EvalNode> |
execute(Context context,
List<EvalNode> args)
Method returns
CompletableFuture with result of execution. |
String |
getName()
Return function name
|
protected List<EvalNode> |
getParams(List<EvalNode> args) |
checkMaxArgsLength, checkMinArgsLength, checkTypes, checkTypes, clearGlobal, createCtx, getLongValue, getValue, getValue, isAsync, isClearpublic static final String NAME
public MacroCall(Executor executor, HistoneResourceLoader resourceLoader, Evaluator evaluator, Parser parser, Converter converter)
protected CompletableFuture<EvalNode> createSelfObject(EvalNode macro, String baseURI, List<EvalNode> args)
public CompletableFuture<EvalNode> execute(Context context, List<EvalNode> args) throws FunctionExecutionException
FunctionCompletableFuture with result of execution.execute in interface Functionargs - arguments from Histone templateFunctionExecutionException - if your function stops with error and you need to put details into log,
then you should use this exceptionprotected CompletableFuture<EvalNode> callWrappedGlobalFunction(Context context, List<EvalNode> args, AstNode body)
protected CompletableFuture<EvalNode> callWrappedValueFunction(Context context, List<EvalNode> args, ExpAstNode body, EvalNode result)
Copyright © 2017. All rights reserved.