@Override TemplateModel invokeMethod(BeansWrapper bw, Object obj, Object[] args) throws TemplateModelException, InvocationTargetException, IllegalAccessException { return bw.invokeMethod(obj, (Method) member, args); }
protected TemplateModel invokeGenericGet(Map/*<Object, Object>*/ classInfo, Class<?> clazz, String key) throws IllegalAccessException, InvocationTargetException, TemplateModelException { Method genericGet = (Method) classInfo.get(ClassIntrospector.GENERIC_GET_KEY); if (genericGet == null) { return UNKNOWN; } return wrapper.invokeMethod(object, genericGet, new Object[] { key }); }
/** * Invokes the method, passing it the arguments from the list. */ public Object exec(List arguments) throws TemplateModelException { try { return wrapper.invokeMethod(object, (Method) getMember(), unwrapArguments(arguments, wrapper)); } catch (TemplateModelException e) { throw e; } catch (Exception e) { throw _MethodUtil.newInvocationTemplateModelException(object, getMember(), e); } }
if (indexedReadMethod != null) { if (!wrapper.getPreferIndexedReadMethod() && (pd.getReadMethod()) != null) { resultModel = wrapper.invokeMethod(object, pd.getReadMethod(), null); resultModel = wrapper.invokeMethod(object, pd.getReadMethod(), null);
@Override TemplateModel invokeMethod(BeansWrapper bw, Object obj, Object[] args) throws TemplateModelException, InvocationTargetException, IllegalAccessException { return bw.invokeMethod(obj, (Method) member, args); }
@Override TemplateModel invokeMethod(BeansWrapper bw, Object obj, Object[] args) throws TemplateModelException, InvocationTargetException, IllegalAccessException { return bw.invokeMethod(obj, (Method) member, args); }
protected TemplateModel invokeGenericGet(Map keyMap, Class clazz, String key) throws IllegalAccessException, InvocationTargetException, TemplateModelException { Method genericGet = (Method)keyMap.get(BeansWrapper.GENERIC_GET_KEY); if(genericGet == null) return UNKNOWN; return wrapper.invokeMethod(object, genericGet, new Object[] { key }); }
protected TemplateModel invokeGenericGet(Map/*<Object, Object>*/ classInfo, Class<?> clazz, String key) throws IllegalAccessException, InvocationTargetException, TemplateModelException { Method genericGet = (Method) classInfo.get(ClassIntrospector.GENERIC_GET_KEY); if (genericGet == null) { return UNKNOWN; } return wrapper.invokeMethod(object, genericGet, new Object[] { key }); }
protected TemplateModel invokeGenericGet(Map/*<Object, Object>*/ classInfo, Class<?> clazz, String key) throws IllegalAccessException, InvocationTargetException, TemplateModelException { Method genericGet = (Method) classInfo.get(ClassIntrospector.GENERIC_GET_KEY); if (genericGet == null) { return UNKNOWN; } return wrapper.invokeMethod(object, genericGet, new Object[] { key }); }
/** * Invokes the method, passing it the arguments from the list. */ public Object exec(List arguments) throws TemplateModelException { try { return wrapper.invokeMethod(object, (Method) getMember(), unwrapArguments(arguments, wrapper)); } catch (TemplateModelException e) { throw e; } catch (Exception e) { throw _MethodUtil.newInvocationTemplateModelException(object, getMember(), e); } }
/** * Invokes the method, passing it the arguments from the list. */ public Object exec(List arguments) throws TemplateModelException { try { return wrapper.invokeMethod(object, (Method) getMember(), unwrapArguments(arguments, wrapper)); } catch (TemplateModelException e) { throw e; } catch (Exception e) { throw _MethodUtil.newInvocationTemplateModelException(object, getMember(), e); } }
Method method = (Method)maa.getMember(); try { return methodMap.getWrapper().invokeMethod(object, method, maa.getArgs());
retval = wrapper.invokeMethod(object, pd.getReadMethod(), null);
if (indexedReadMethod != null) { if (!wrapper.getPreferIndexedReadMethod() && (pd.getReadMethod()) != null) { resultModel = wrapper.invokeMethod(object, pd.getReadMethod(), null); resultModel = wrapper.invokeMethod(object, pd.getReadMethod(), null);
if (indexedReadMethod != null) { if (!wrapper.getPreferIndexedReadMethod() && (pd.getReadMethod()) != null) { resultModel = wrapper.invokeMethod(object, pd.getReadMethod(), null); resultModel = wrapper.invokeMethod(object, pd.getReadMethod(), null);
return wrapper.invokeMethod(object, (Method)getMember(), unwrapArguments(arguments, wrapper));