| java.lang.Object org.mmbase.util.functions.FunctionProvider
All known Subclasses: org.mmbase.util.functions.ClassFunctionProvider, org.mmbase.util.functions.BeanFunctionProvider, org.mmbase.module.core.MMTable, org.mmbase.util.functions.FunctionSet, org.mmbase.util.functions.DescribedFunctionProvider, org.mmbase.util.functions.IndexFunction, org.mmbase.util.functions.PatternNodeFunctionProvider,
FunctionProvider | abstract public class FunctionProvider (Code) | | A function provider maintains a set of
Function objects.
since: MMBase-1.8 author: Pierre van Rooden version: $Id: FunctionProvider.java,v 1.17 2007/11/25 18:25:49 nklasens Exp $ |
Constructor Summary | |
public | FunctionProvider() The constructor of an FunctionProvider guesses the functions using reflection. |
getFunctions | protected Function<Collection<Function<?>>> getFunctions(Code) | | Every Function Provider provides least the 'getFunctions' function, which returns a Set of all functions which it provides.
|
FunctionProvider | public FunctionProvider()(Code) | | The constructor of an FunctionProvider guesses the functions using reflection.
|
addFunction | public Function> addFunction(Function> function)(Code) | | Adds a function to the FunctionProvider. So, you can implement any function and add it to the
provider, to make it provide this function too.
The function previously assigned with this name or null if no such function. |
createParameters | public Parameters createParameters(String functionName)(Code) | | Creates a new empty Parameters object for given function.
A new empty Parameters object, or null if no such function. |
getFunction | public Function> getFunction(String functionName)(Code) | | Returns the Function object with given name.
Function object or null if no such function is provided. |
getFunctionValue | public Object getFunctionValue(String functionName, List> parameters)(Code) | | Executes a function, and returns the function value.
The function value or null if no such function. |
getFunctions | public Collection<Function<?>> getFunctions()(Code) | | Returns a Collection of all functions currently provided by the FunctionProvider.
|
|
|