Class FunctionEvaluator
java.lang.Object
io.github.erdos.stencil.functions.FunctionEvaluator
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCalls a function by name.Returns a thread-safe sequence of all registered functions.voidregisterFunctions(Function... functions) Registers a function to this evaluator engine.
- 
Constructor Details- 
FunctionEvaluatorpublic FunctionEvaluator()
 
- 
- 
Method Details- 
registerFunctionsRegisters a function to this evaluator engine. Registered functions can be invoked from inside template files.- Parameters:
- functions- list of functions to register
 
- 
callCalls a function by name.- Parameters:
- functionName- Case Insensitive name of fn to call.
- arguments- arguments dispatched to called function
- Returns:
- result of function call
- Throws:
- IllegalArgumentException- when function name is null or missing
 
- 
listFunctionsReturns a thread-safe sequence of all registered functions.
 
-