public class CompositeFunctionMapper extends FunctionMapper
FunctionMapper
implemenation which delegates to a list of
mappers. When a function is resolved, the list of mappers is iterated
and the first one to return a method is used.Modifier and Type | Field and Description |
---|---|
protected List<FunctionMapper> |
delegateMappers |
Constructor and Description |
---|
CompositeFunctionMapper(List<FunctionMapper> delegateMappers) |
Modifier and Type | Method and Description |
---|---|
Method |
resolveFunction(String prefix,
String localName)
Resolves the specified prefix and local name into a java.lang.Method.
|
protected List<FunctionMapper> delegateMappers
public CompositeFunctionMapper(List<FunctionMapper> delegateMappers)
public Method resolveFunction(String prefix, String localName)
FunctionMapper
resolveFunction
in class FunctionMapper
prefix
- the prefix of the function, or "" if no prefix. For example, "fn" in
${fn:method()}, or "" in ${method()}.localName
- the short name of the function. For example, "method" in ${fn:method()}.Copyright © 2021. All rights reserved.