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

Method getType

java/org/apache/el/parser/AstIdentifier.java:40–55  ·  view source on GitHub ↗
(EvaluationContext ctx)

Source from the content-addressed store, hash-verified

38 }
39
40 @Override
41 public Class<?> getType(EvaluationContext ctx) throws ELException {
42 VariableMapper varMapper = ctx.getVariableMapper();
43 if (varMapper != null) {
44 ValueExpression expr = varMapper.resolveVariable(this.image);
45 if (expr != null) {
46 return expr.getType(ctx.getELContext());
47 }
48 }
49 ctx.setPropertyResolved(false);
50 Class<?> result = ctx.getELResolver().getType(ctx, null, this.image);
51 if (!ctx.isPropertyResolved()) {
52 throw new PropertyNotFoundException(MessageFactory.get("error.resolver.unhandled.null", this.image));
53 }
54 return result;
55 }
56
57 @Override
58 public Object getValue(EvaluationContext ctx) throws ELException {

Callers

nothing calls this directly

Calls 9

resolveVariableMethod · 0.95
getTypeMethod · 0.95
getMethod · 0.95
getTypeMethod · 0.65
getVariableMapperMethod · 0.45
getELContextMethod · 0.45
setPropertyResolvedMethod · 0.45
getELResolverMethod · 0.45
isPropertyResolvedMethod · 0.45

Tested by

no test coverage detected