Exemple #1
0
 public ActionInfo(Method method) {
   this.method = method;
   Class<?>[] parameterTypes = method.getParameterTypes(); // never null
   Annotation[][] annotations = method.getParameterAnnotations(); // never null
   parameters = new Parameter[parameterTypes.length];
   for (int i = 0; i < parameters.length; i++) {
     Parameter arg = new Parameter();
     arg.type = parameterTypes[i];
     arg.contextParamName = getContextParamAnnotationValue(annotations[i]);
     parameters[i] = arg;
   }
 }
 public T type(GenericType type) {
   parameter.type = type.getRawType();
   parameter.genericType = type.getType();
   return (T) this;
 }
 public T type(Class<?> type) {
   parameter.type = type;
   return (T) this;
 }