MCPcopy Create free account
hub / github.com/apache/tomcat / getValue

Method getValue

java/jakarta/el/MapELResolver.java:73–83  ·  view source on GitHub ↗
(ELContext context, Object base, Object property)

Source from the content-addressed store, hash-verified

71 }
72
73 @Override
74 public Object getValue(ELContext context, Object base, Object property) {
75 Objects.requireNonNull(context);
76
77 if (base instanceof Map<?,?>) {
78 context.setPropertyResolved(base, property);
79 return ((Map<?,?>) base).get(property);
80 }
81
82 return null;
83 }
84
85 @Override
86 public void setValue(ELContext context, Object base, Object property, Object value) {

Callers 4

testGetValue01Method · 0.95
testGetValue03Method · 0.95
testSetValue04Method · 0.95
doNegativeTestMethod · 0.95

Calls 2

getMethod · 0.65
setPropertyResolvedMethod · 0.45

Tested by 4

testGetValue01Method · 0.76
testGetValue03Method · 0.76
testSetValue04Method · 0.76
doNegativeTestMethod · 0.76