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

Method getType

java/jakarta/el/BeanELResolver.java:59–74  ·  view source on GitHub ↗
(ELContext context, Object base, Object property)

Source from the content-addressed store, hash-verified

57 }
58
59 @Override
60 public Class<?> getType(ELContext context, Object base, Object property) {
61 Objects.requireNonNull(context);
62 if (base == null || property == null) {
63 return null;
64 }
65
66 context.setPropertyResolved(base, property);
67 BeanProperty beanProperty = property(context, base, property);
68
69 if (readOnly || beanProperty.isReadOnly(base)) {
70 return null;
71 }
72
73 return beanProperty.getPropertyType();
74 }
75
76 @Override
77 public Object getValue(ELContext context, Object base, Object property) {

Callers 5

testGetType01Method · 0.95
testGetType03Method · 0.95
testGetType04Method · 0.95
testGetType05Method · 0.95
doNegativeTestMethod · 0.95

Calls 4

propertyMethod · 0.95
isReadOnlyMethod · 0.95
getPropertyTypeMethod · 0.95
setPropertyResolvedMethod · 0.45

Tested by 5

testGetType01Method · 0.76
testGetType03Method · 0.76
testGetType04Method · 0.76
testGetType05Method · 0.76
doNegativeTestMethod · 0.76