Skip to content

Package: ELClass

ELClass

nameinstructionbranchcomplexitylinemethod
ELClass(Class)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
getKlass()
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) 2013, 2019 Oracle and/or its affiliates and others.
3: * All rights reserved.
4: *
5: * This program and the accompanying materials are made available under the
6: * terms of the Eclipse Public License v. 2.0, which is available at
7: * http://www.eclipse.org/legal/epl-2.0.
8: *
9: * This Source Code may also be made available under the following Secondary
10: * Licenses when the conditions for such availability set forth in the
11: * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
12: * version 2 with the GNU Classpath Exception, which is available at
13: * https://www.gnu.org/software/classpath/license.html.
14: *
15: * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16: */
17:
18: package jakarta.el;
19:
20: /**
21: * A runtime representation of a Class in the Jakarta Expression Language expressions. It encapsulates the
22: * java.lang.Class instance.
23: *
24: * <p>
25: * This class is used only in {@link StaticFieldELResolver} and will probably only be of interest to Jakarta Expression
26: * Language implementors, and not Jakarta Expression Language users.
27: *
28: * @since Jakarta Expression Language 3.0
29: */
30: public class ELClass {
31:
32: private Class<?> klass;
33:
34: /**
35: * Constructor
36: *
37: * @param klass The Class instance
38: */
39: public ELClass(Class<?> klass) {
40: this.klass = klass;
41: }
42:
43: /**
44: * Returns the Class instance
45: *
46: * @return The Class instance
47: */
48: public Class<?> getKlass() {
49: return this.klass;
50: }
51: }