public interface Function
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<EvalNode> |
execute(Context context,
List<EvalNode> args)
Method returns
CompletableFuture with result of execution. |
String |
getName()
Return function name
|
boolean |
isAsync()
Return true, if function must be run in own thread, otherwise - false
|
boolean |
isClear() |
String getName()
CompletableFuture<EvalNode> execute(Context context, List<EvalNode> args) throws FunctionExecutionException
CompletableFuture with result of execution.context - args - arguments from Histone templateFunctionExecutionException - if your function stops with error and you need to put details into log,
then you should use this exceptionboolean isAsync()
boolean isClear()
Copyright © 2017. All rights reserved.