public class FunctionMapperImpl extends FunctionMapper implements Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
FunctionMapperImpl.Function |
Modifier and Type | Field and Description |
---|---|
protected Map<String,FunctionMapperImpl.Function> |
functions |
Constructor and Description |
---|
FunctionMapperImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addFunction(String prefix,
String localName,
Method m) |
void |
readExternal(ObjectInput in) |
Method |
resolveFunction(String prefix,
String localName)
Resolves the specified prefix and local name into a
java.lang.Method . |
void |
writeExternal(ObjectOutput out) |
mapFunction
protected Map<String,FunctionMapperImpl.Function> functions
public Method resolveFunction(String prefix, String localName)
FunctionMapper
java.lang.Method
.
Returns null
if no function could be found that matches
the given prefix and local name.
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()}
.null
if no
match was found.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright (c) 2013 Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.