示例#1
0
 @Override
 public Object run(JavaEvaluator eval, Object[] args) {
   Type[] params = new Type[args.length - 1];
   for (int i = 0; i < params.length; i++) {
     if (args[i + 1] instanceof String) {
       params[i] = new Type((String) args[i + 1]);
     } else {
       params[i] = (Type) args[i + 1];
     }
   }
   return eval.getMethod((String) args[0], params);
 }
示例#2
0
 @Override
 public Object run(JavaEvaluator eval, Object[] args) {
   return eval.getType((String) args[0]);
 }