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

Method getMethodInfo

java/org/apache/el/parser/AstValue.java:186–200  ·  view source on GitHub ↗
(EvaluationContext ctx, @SuppressWarnings("rawtypes") Class[] paramTypes)

Source from the content-addressed store, hash-verified

184 }
185
186 @Override
187 // Interface el.parser.Node uses raw types (and is auto-generated)
188 public MethodInfo getMethodInfo(EvaluationContext ctx, @SuppressWarnings("rawtypes") Class[] paramTypes)
189 throws ELException {
190 Target t = getTarget(ctx);
191 Class<?>[] types;
192 if (isParametersProvided()) {
193 Object[] values = ((AstMethodParameters) this.jjtGetChild(this.jjtGetNumChildren() - 1)).getParameters(ctx);
194 types = getTypesFromValues(values);
195 } else {
196 types = paramTypes;
197 }
198 Method m = ReflectionUtil.getMethod(ctx, t.base, t.property, types, null);
199 return new MethodInfo(m.getName(), m.getReturnType(), m.getParameterTypes());
200 }
201
202 @Override
203 // Interface el.parser.Node uses a raw type (and is auto-generated)

Callers 1

getMethodReferenceMethod · 0.95

Calls 10

getTargetMethod · 0.95
isParametersProvidedMethod · 0.95
getTypesFromValuesMethod · 0.95
getMethodMethod · 0.95
getParametersMethod · 0.65
jjtGetChildMethod · 0.65
jjtGetNumChildrenMethod · 0.65
getNameMethod · 0.65
getReturnTypeMethod · 0.45
getParameterTypesMethod · 0.45

Tested by

no test coverage detected