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

Method getType

java/org/apache/el/parser/AstFunction.java:60–74  ·  view source on GitHub ↗
(EvaluationContext ctx)

Source from the content-addressed store, hash-verified

58 }
59
60 @Override
61 public Class<?> getType(EvaluationContext ctx) throws ELException {
62
63 FunctionMapper fnMapper = ctx.getFunctionMapper();
64
65 // quickly validate again for this request
66 if (fnMapper == null) {
67 throw new ELException(MessageFactory.get("error.fnMapper.null"));
68 }
69 Method m = fnMapper.resolveFunction(this.prefix, this.localName);
70 if (m == null) {
71 throw new ELException(MessageFactory.get("error.fnMapper.method", this.getOutputName()));
72 }
73 return m.getReturnType();
74 }
75
76 @Override
77 public Object getValue(EvaluationContext ctx) throws ELException {

Callers

nothing calls this directly

Calls 5

getMethod · 0.95
resolveFunctionMethod · 0.95
getOutputNameMethod · 0.95
getFunctionMapperMethod · 0.45
getReturnTypeMethod · 0.45

Tested by

no test coverage detected