/** * Invokes the method, passing it the arguments from the list. The actual * method to call from several overloaded methods will be chosen based * on the classes of the arguments. * @throws TemplateModelException if the method cannot be chosen * unambiguously. */ public Object exec(List arguments) throws TemplateModelException { MemberAndArguments maa = overloadedMethods.getMemberAndArguments(arguments, wrapper); try { return maa.invokeMethod(wrapper, object); } catch (Exception e) { if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException( object, maa.getCallableMemberDescriptor(), e); } }
final MemberAndArguments mma = ((OverloadedMethods) ctors).getMemberAndArguments(arguments, this); try { return mma.invokeConstructor(this);
/** * Invokes the method, passing it the arguments from the list. The actual * method to call from several overloaded methods will be chosen based * on the classes of the arguments. * @throws TemplateModelException if the method cannot be chosen * unambiguously. */ public Object exec(List arguments) throws TemplateModelException { MemberAndArguments maa = overloadedMethods.getMemberAndArguments(arguments, wrapper); try { return maa.invokeMethod(wrapper, object); } catch (Exception e) { if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException( object, maa.getCallableMemberDescriptor(), e); } }
/** * Invokes the method, passing it the arguments from the list. The actual * method to call from several overloaded methods will be chosen based * on the classes of the arguments. * @throws TemplateModelException if the method cannot be chosen * unambiguously. */ public Object exec(List arguments) throws TemplateModelException { MemberAndArguments maa = overloadedMethods.getMemberAndArguments(arguments, wrapper); try { return maa.invokeMethod(wrapper, object); } catch (Exception e) { if (e instanceof TemplateModelException) throw (TemplateModelException) e; throw _MethodUtil.newInvocationTemplateModelException( object, maa.getCallableMemberDescriptor(), e); } }
final MemberAndArguments mma = ((OverloadedMethods) ctors).getMemberAndArguments(arguments, this); try { return mma.invokeConstructor(this);
final MemberAndArguments mma = ((OverloadedMethods) ctors).getMemberAndArguments(arguments, this); try { return mma.invokeConstructor(this);