예제 #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;
 }