Skip to content

Package: FunctionInfo

FunctionInfo

nameinstructionbranchcomplexitylinemethod
FunctionInfo(String, String, String)
M: 12 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
getFunctionClass()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getFunctionSignature()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getName()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

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.tagext;
20:
21: /**
22: * Information for a function in a Tag Library. This class is instantiated from the Tag Library Descriptor file (TLD)
23: * and is available only at translation time.
24: *
25: * @since JSP 2.0
26: */
27: public class FunctionInfo {
28:
29: /**
30: * Constructor for FunctionInfo.
31: *
32: * @param name The name of the function
33: * @param klass The class of the function
34: * @param signature The signature of the function
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: public String getName() {
49: return name;
50: }
51:
52: /**
53: * The class of the function.
54: *
55: * @return The class of the function
56: */
57: public String getFunctionClass() {
58: return functionClass;
59: }
60:
61: /**
62: * The signature of the function.
63: *
64: * @return The signature of the function
65: */
66: public String getFunctionSignature() {
67: return functionSignature;
68: }
69:
70: /*
71: * fields
72: */
73:
74: private String name;
75: private String functionClass;
76: private String functionSignature;
77: }