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

Method getType

java/jakarta/el/CompositeELResolver.java:143–164  ·  view source on GitHub ↗
(ELContext context, Object base, Object property)

Source from the content-addressed store, hash-verified

141 }
142
143 @Override
144 public Class<?> getType(ELContext context, Object base, Object property) {
145 context.setPropertyResolved(false);
146 int sz = this.resolversSize;
147 for (int i = 0; i < sz; i++) {
148 Class<?> type = this.resolvers[i].getType(context, base, property);
149 if (context.isPropertyResolved()) {
150 if (SCOPED_ATTRIBUTE_EL_RESOLVER != null &&
151 SCOPED_ATTRIBUTE_EL_RESOLVER.isAssignableFrom(resolvers[i].getClass())) {
152 // Special case since
153 // jakarta.servlet.jsp.el.ScopedAttributeELResolver will
154 // always return Object.class for type
155 Object value = resolvers[i].getValue(context, base, property);
156 if (value != null) {
157 return value.getClass();
158 }
159 }
160 return type;
161 }
162 }
163 return null;
164 }
165
166 @Override
167 public void setValue(ELContext context, Object base, Object property, Object value) {

Callers

nothing calls this directly

Calls 5

getTypeMethod · 0.65
getValueMethod · 0.65
setPropertyResolvedMethod · 0.45
isPropertyResolvedMethod · 0.45
isAssignableFromMethod · 0.45

Tested by

no test coverage detected