A FunctionMapper maps ${prefix:name()}
style functions to a static method that can execute that function.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | mapFunction(String
the prefix of the function, or "" if no prefix.
For example, prefix, String "fn" in ${fn:method()}, or
"" in ${method()}.the short name of the function. For example,
localName, Method "method" in ${fn:method()}.The static method that is to be invoked, when the function is
referenced. The null value causes the function to be removed from the
map. meth)Adds a static method that can be used as a function. |
| public abstract Method | Returns: the static method to invoke, ornull if no
match was found.the prefix of the function, or "" if no prefix.
For example, prefix, String "fn" in ${fn:method()}, or
"" in ${method()}.the short name of the function. For example,
localName)"method" in ${fn:method()}.Resolves the specified prefix and local name into a
|
| FunctionMapper | back to summary |
|---|---|
| public FunctionMapper() | |
| mapFunction | back to summary |
|---|---|
| public void mapFunction(String prefix, String localName, Method meth) Adds a static method that can be used as a function.
| |
| resolveFunction | back to summary |
|---|---|
| public abstract Method resolveFunction(String prefix, String localName) Resolves the specified prefix and local name into a
Returns | |