MCPcopy Index your code
hub / github.com/apache/tomcat / setValue

Method setValue

java/org/apache/el/parser/AstValue.java:172–184  ·  view source on GitHub ↗
(EvaluationContext ctx, Object value)

Source from the content-addressed store, hash-verified

170 }
171
172 @Override
173 public void setValue(EvaluationContext ctx, Object value) throws ELException {
174 Target t = getTarget(ctx);
175 ctx.setPropertyResolved(false);
176 ELResolver resolver = ctx.getELResolver();
177
178 // coerce to the expected type
179 Class<?> targetClass = resolver.getType(ctx, t.base, t.property);
180 resolver.setValue(ctx, t.base, t.property, ELSupport.coerceToType(ctx, value, targetClass));
181 if (!ctx.isPropertyResolved()) {
182 throw new PropertyNotFoundException(MessageFactory.get("error.resolver.unhandled", t.base, t.property));
183 }
184 }
185
186 @Override
187 // Interface el.parser.Node uses raw types (and is auto-generated)

Callers

nothing calls this directly

Calls 8

getTargetMethod · 0.95
getTypeMethod · 0.95
setValueMethod · 0.95
coerceToTypeMethod · 0.95
getMethod · 0.95
setPropertyResolvedMethod · 0.45
getELResolverMethod · 0.45
isPropertyResolvedMethod · 0.45

Tested by

no test coverage detected