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

Method getType

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

Source from the content-addressed store, hash-verified

54 }
55
56 @Override
57 public Class<?> getType(ELContext context, Object base, Object property) {
58 Objects.requireNonNull(context);
59
60 if (base instanceof Map<?,?> map) {
61 context.setPropertyResolved(base, property);
62
63 if (readOnly || map.getClass() == UNMODIFIABLE) {
64 return null;
65 }
66
67 return Object.class;
68 }
69
70 return null;
71 }
72
73 @Override
74 public Object getValue(ELContext context, Object base, Object property) {

Callers 3

testGetType01Method · 0.95
testGetType03Method · 0.95
doNegativeTestMethod · 0.95

Calls 1

setPropertyResolvedMethod · 0.45

Tested by 3

testGetType01Method · 0.76
testGetType03Method · 0.76
doNegativeTestMethod · 0.76