示例#1
0
 private Method getMethod() {
   try {
     Class callerType = caller.getValueTypeClass();
     Method method = callerType.getMethod(name, getParameterTypes());
     return method;
   } catch (java.lang.NoSuchMethodException nsme) {
     nsme.printStackTrace();
     return null;
   }
 }
示例#2
0
 /* Implementing ValueSpecifier */
 public Object getValue(DataRow dataRow) {
   Object callerValue = caller.getValue(dataRow);
   if (callerValue == null) {
     return null;
   } else {
     try {
       return getMethod().invoke(callerValue, getParameterValues(dataRow));
     } catch (Exception e) {
       e.printStackTrace();
       System.err.println(showParameterTypes());
       System.err.println(showParameterValueTypes(dataRow));
       return null;
     }
   }
 }