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

Method isReadOnly

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

Source from the content-addressed store, hash-verified

154 }
155
156 @Override
157 public boolean isReadOnly(ELContext context, Object base, Object property) {
158 Objects.requireNonNull(context);
159 if (base == null || property == null) {
160 return false;
161 }
162
163 context.setPropertyResolved(base, property);
164 return this.readOnly || this.property(context, base, property).isReadOnly(base);
165 }
166
167 @Override
168 public Class<?> getCommonPropertyType(ELContext context, Object base) {

Callers 6

testIsReadOnly01Method · 0.95
testIsReadOnly02Method · 0.95
testIsReadOnly03Method · 0.95
testIsReadOnly04Method · 0.95
testIsReadOnly05Method · 0.95
testIsReadOnly06Method · 0.95

Calls 3

propertyMethod · 0.95
isReadOnlyMethod · 0.65
setPropertyResolvedMethod · 0.45

Tested by 6

testIsReadOnly01Method · 0.76
testIsReadOnly02Method · 0.76
testIsReadOnly03Method · 0.76
testIsReadOnly04Method · 0.76
testIsReadOnly05Method · 0.76
testIsReadOnly06Method · 0.76