| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<String,CompletableFuture<EvalNode>> |
cache |
protected Converter |
converter |
protected Evaluator |
evaluator |
protected Executor |
executor |
protected HistoneResourceLoader |
loader |
protected Parser |
parser |
protected Map<HistoneType,Map<String,Function>> |
typeMembers |
protected Map<HistoneType,Map<String,Function>> |
userTypes |
| Constructor and Description |
|---|
RunTimeTypeInfo(Executor executor,
HistoneResourceLoader loader,
Evaluator evaluator,
Parser parser)
Creates RTTI object
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<EvalNode> |
callFunction(Context context,
EvalNode node,
String funcName,
List<EvalNode> args) |
CompletableFuture<EvalNode> |
callFunction(Context context,
HistoneType type,
String funcName,
List<EvalNode> args) |
Converter |
getConverter() |
Optional<Function> |
getFunc(HistoneType type,
String funcName) |
void |
register(HistoneType type,
Function func) |
protected CompletableFuture<EvalNode> |
runAsync(Context context,
List<EvalNode> args,
Function f) |
protected final Map<HistoneType,Map<String,Function>> userTypes
protected final Map<HistoneType,Map<String,Function>> typeMembers
protected final Executor executor
protected final HistoneResourceLoader loader
protected final Evaluator evaluator
protected final Parser parser
protected final Converter converter
protected ConcurrentMap<String,CompletableFuture<EvalNode>> cache
public RunTimeTypeInfo(Executor executor, HistoneResourceLoader loader, Evaluator evaluator, Parser parser)
executor - for running async functionsloader - for loading resourcesevaluator - for processing templates in eval function and otherparser - for convert string templates to AST-treepublic Converter getConverter()
public Optional<Function> getFunc(HistoneType type, String funcName)
public void register(HistoneType type, Function func)
public CompletableFuture<EvalNode> callFunction(Context context, HistoneType type, String funcName, List<EvalNode> args)
callFunction in interface Irttiprotected CompletableFuture<EvalNode> runAsync(Context context, List<EvalNode> args, Function f)
public CompletableFuture<EvalNode> callFunction(Context context, EvalNode node, String funcName, List<EvalNode> args)
callFunction in interface IrttiCopyright © 2017. All rights reserved.