MCPcopy Create free account
hub / github.com/apache/tomcat / mapFunction

Method mapFunction

java/jakarta/el/ELManager.java:106–108  ·  view source on GitHub ↗

Maps a static method to an EL function name with the given prefix and local name. The function can then be invoked in EL expressions as prefix:function(args). @param prefix the namespace prefix for the function @param function the local function name @param method the static {@link java

(String prefix, String function, Method method)

Source from the content-addressed store, hash-verified

104 * @param method the static {@link java.lang.reflect.Method} to map
105 */
106 public void mapFunction(String prefix, String function, Method method) {
107 getELContext().getFunctionMapper().mapFunction(prefix, function, method);
108 }
109
110 /**
111 * Registers a variable in the EL context's variable mapper. The variable can then be

Callers 2

testVarargMethodMethod · 0.45
defineFunctionMethod · 0.45

Calls 2

getELContextMethod · 0.95
getFunctionMapperMethod · 0.45

Tested by 1

testVarargMethodMethod · 0.36