public class FunctionManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FunctionManager.FunctionDescriptor |
| Constructor and Description |
|---|
FunctionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLibrary(Class<?> library)
Adds functions from a library class
|
List<FunctionManager.FunctionDescriptor> |
buildListing()
Builds a listing of all functions sorted A-Z.
|
Method |
getFunction(String name) |
Object |
invokeFunction(EvaluationContext ctx,
String name,
List<Object> args)
Invokes a function
|
public void addLibrary(Class<?> library)
library - the library classpublic Object invokeFunction(EvaluationContext ctx, String name, List<Object> args)
ctx - the evaluation contextname - the function name (case insensitive)args - the arguments to be passed to the functionpublic List<FunctionManager.FunctionDescriptor> buildListing()
Copyright © 2016. All rights reserved.