Skip to content

Package: ValueReference

ValueReference

nameinstructionbranchcomplexitylinemethod
ValueReference(Object, Object)
M: 9 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
getBase()
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%
getProperty()
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) 2010, 2020 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: import java.io.Serializable;
21:
22: /**
23: * This encapsulates a base model object and one of its properties.
24: *
25: * @since Jakarta Expression Language 2.2
26: */
27: public class ValueReference implements Serializable {
28:
29: private static final long serialVersionUID = -4076659531951367109L;
30:
31: private Object base;
32: private Object property;
33:
34: public ValueReference(Object base, Object property) {
35: this.base = base;
36: this.property = property;
37: }
38:
39: public Object getBase() {
40: return base;
41: }
42:
43: public Object getProperty() {
44: return property;
45: }
46:
47: }