public class StaticFunctionMapper extends FunctionMapper
Modifier and Type | Field and Description |
---|---|
protected Map<String,Method> |
m_functions |
protected String |
m_prefix |
protected Class<?> |
m_staticClass |
protected FunctionMapper |
m_wrapped |
protected static Map<Class<?>,Map<String,Method>> |
s_functions |
Constructor and Description |
---|
StaticFunctionMapper() |
StaticFunctionMapper(FunctionMapper wrapped) |
StaticFunctionMapper(FunctionMapper wrapped,
String prefix,
Class<?> staticClass) |
Modifier and Type | Method and Description |
---|---|
Map<String,Method> |
getFunctions() |
protected static Map<String,Method> |
getFunctions(Class<?> cls)
Returns the function mapping for the specified static class.
|
String |
getPrefix() |
Class<?> |
getStaticClass() |
FunctionMapper |
getWrapped() |
Method |
resolveFunction(String prefix,
String localName) |
void |
setFunctions(Map<String,Method> functions) |
void |
setPrefix(String prefix) |
void |
setStaticClass(Class<?> staticClass) |
void |
setWrapped(FunctionMapper wrapped) |
protected FunctionMapper m_wrapped
protected String m_prefix
protected Class<?> m_staticClass
public StaticFunctionMapper()
public StaticFunctionMapper(FunctionMapper wrapped)
public StaticFunctionMapper(FunctionMapper wrapped, String prefix, Class<?> staticClass)
public Method resolveFunction(String prefix, String localName)
resolveFunction
in class FunctionMapper
protected static Map<String,Method> getFunctions(Class<?> cls)
public FunctionMapper getWrapped()
public void setWrapped(FunctionMapper wrapped)
public String getPrefix()
public void setPrefix(String prefix)
public Class<?> getStaticClass()
public void setStaticClass(Class<?> staticClass)