(EvaluationContext ctx)
| 236 | } |
| 237 | |
| 238 | @Override |
| 239 | public MethodReference getMethodReference(EvaluationContext ctx) { |
| 240 | Target t = getTarget(ctx); |
| 241 | Method m; |
| 242 | Object[] values = null; |
| 243 | Class<?>[] types = null; |
| 244 | if (isParametersProvided()) { |
| 245 | values = ((AstMethodParameters) this.jjtGetChild(this.jjtGetNumChildren() - 1)).getParameters(ctx); |
| 246 | types = getTypesFromValues(values); |
| 247 | } |
| 248 | m = ReflectionUtil.getMethod(ctx, t.base, t.property, types, values); |
| 249 | |
| 250 | // Handle varArgs and any coercion required |
| 251 | values = convertArgs(ctx, values, m); |
| 252 | |
| 253 | return new MethodReference(t.base, getMethodInfo(ctx, types), m.getAnnotations(), values); |
| 254 | } |
| 255 | |
| 256 | private Object[] convertArgs(EvaluationContext ctx, Object[] src, Method m) { |
| 257 | Class<?>[] types = m.getParameterTypes(); |
nothing calls this directly
no test coverage detected