01: /*
02: * The contents of this file are subject to the terms
03: * of the Common Development and Distribution License
04: * (the "License"). You may not use this file except
05: * in compliance with the License.
06: *
07: * You can obtain a copy of the license at
08: * glassfish/bootstrap/legal/CDDLv1.0.txt or
09: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
10: * See the License for the specific language governing
11: * permissions and limitations under the License.
12: *
13: * When distributing Covered Code, include this CDDL
14: * HEADER in each file and include the License file at
15: * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
16: * add the following below this CDDL HEADER, with the
17: * fields enclosed by brackets "[]" replaced with your
18: * own identifying information: Portions Copyright [yyyy]
19: * [name of copyright owner]
20: *
21: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
22: */
23:
24: package javax.el;
25:
26: /**
27: * The interface to a map between EL function names and methods.
28: *
29: * <p>A <code>FunctionMapper</code> maps <code>${prefix:name()}</code>
30: * style functions to a static method that can execute that function.</p>
31: *
32: * @since JSP 2.1
33: */
34: public abstract class FunctionMapper {
35:
36: /**
37: * Resolves the specified prefix and local name into a
38: * <code>java.lang.Method</code>.
39: *
40: * <p>Returns <code>null</code> if no function could be found that matches
41: * the given prefix and local name.</p>
42: *
43: * @param prefix the prefix of the function, or "" if no prefix.
44: * For example, <code>"fn"</code> in <code>${fn:method()}</code>, or
45: * <code>""</code> in <code>${method()}</code>.
46: * @param localName the short name of the function. For example,
47: * <code>"method"</code> in <code>${fn:method()}</code>.
48: * @return the static method to invoke, or <code>null</code> if no
49: * match was found.
50: */
51: public abstract java.lang.reflect.Method resolveFunction(
52: String prefix, String localName);
53:
54: }
|