Пример #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;
   }
 }
Пример #2
0
 public T type(GenericType type) {
   parameter.type = type.getRawType();
   parameter.genericType = type.getType();
   return (T) this;
 }
Пример #3
0
 public T type(Class<?> type) {
   parameter.type = type;
   return (T) this;
 }