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

Method isReadOnly

java/jakarta/el/BeanNameELResolver.java:124–146  ·  view source on GitHub ↗
(ELContext context, Object base, Object property)

Source from the content-addressed store, hash-verified

122 }
123
124 @Override
125 public boolean isReadOnly(ELContext context, Object base, Object property) {
126 Objects.requireNonNull(context);
127 if (base != null || !(property instanceof String beanName)) {
128 // Return value undefined
129 return false;
130 }
131
132 if (beanNameResolver.isNameResolved(beanName)) {
133 boolean result;
134 try {
135 result = beanNameResolver.isReadOnly(beanName);
136 } catch (Throwable t) {
137 Util.handleThrowable(t);
138 throw new ELException(t);
139 }
140 context.setPropertyResolved(null, property);
141 return result;
142 }
143
144 // Return value undefined
145 return false;
146 }
147
148 @Override
149 public Class<?> getCommonPropertyType(ELContext context, Object base) {

Callers 8

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

Calls 4

handleThrowableMethod · 0.95
isReadOnlyMethod · 0.65
isNameResolvedMethod · 0.45
setPropertyResolvedMethod · 0.45

Tested by 7

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