01 /*
02 * Copyright 2004 The Apache Software Foundation
03 *
04 * Licensed under the Apache License, Version 2.0 (the "License");
05 * you may not use this file except in compliance with the License.
06 * You may obtain a copy of the License at
07 *
08 * http://www.apache.org/licenses/LICENSE-2.0
09 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package javax.servlet.jsp.tagext;
18
19 /**
20 * Information for a function in a Tag Library.
21 * This class is instantiated from the Tag Library Descriptor file (TLD)
22 * and is available only at translation time.
23 *
24 * @since 2.0
25 */
26 public class FunctionInfo {
27
28 /**
29 * Constructor for FunctionInfo.
30 *
31 * @param name The name of the function
32 * @param klass The class of the function
33 * @param signature The signature of the function
34 */
35
36 public FunctionInfo(String name, String klass, String signature) {
37
38 this .name = name;
39 this .functionClass = klass;
40 this .functionSignature = signature;
41 }
42
43 /**
44 * The name of the function.
45 *
46 * @return The name of the function
47 */
48
49 public String getName() {
50 return name;
51 }
52
53 /**
54 * The class of the function.
55 *
56 * @return The class of the function
57 */
58
59 public String getFunctionClass() {
60 return functionClass;
61 }
62
63 /**
64 * The signature of the function.
65 *
66 * @return The signature of the function
67 */
68
69 public String getFunctionSignature() {
70 return functionSignature;
71 }
72
73 /*
74 * fields
75 */
76
77 private String name;
78 private String functionClass;
79 private String functionSignature;
80 }
|