Skip to content

Package: FunctionMapper

FunctionMapper

Coverage

1: /*
2: * Copyright (c) 1997, 2020 Oracle and/or its affiliates and others.
3: * All rights reserved.
4: * Copyright 2004 The Apache Software Foundation
5: *
6: * Licensed under the Apache License, Version 2.0 (the "License");
7: * you may not use this file except in compliance with the License.
8: * You may obtain a copy of the License at
9: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: package jakarta.servlet.jsp.el;
20:
21: /**
22: * <p>
23: * The interface to a map between EL function names and methods.
24: * </p>
25: *
26: * <p>
27: * Classes implementing this interface may, for instance, consult tag library information to resolve the map.
28: * </p>
29: *
30: * @deprecated As of JSP 2.1, replaced by {@link jakarta.el.FunctionMapper}
31: * @since JSP 2.0
32: */
33: @Deprecated
34: public interface FunctionMapper {
35: /**
36: * Resolves the specified local name and prefix into a Java.lang.Method. Returns null if the prefix and local name
37: * are not found.
38: *
39: * @param prefix the prefix of the function, or "" if no prefix.
40: * @param localName the short name of the function
41: * @return the result of the method mapping. Null means no entry found.
42: */
43: public java.lang.reflect.Method resolveFunction(String prefix, String localName);
44: }