}
else if (annotation.annotationType().isAnnotationPresent(BindingAnnotation.class)) {
bindingAnnotation = annotation;
}
else if (As.class.isInstance(annotation)) {
As as = (As) annotation;
if (method.isAnnotationPresent(Get.class)
|| method.isAnnotationPresent(Head.class)
|| method.isAnnotationPresent(Trace.class)) {
if (! as.value().equals(Form.class)) {
throw new IllegalArgumentException("Cannot accept a @As(...) request body from" +
" method marked @Get, @Head or @Trace: "
+ method.getDeclaringClass().getName() + "#" + method.getName() + "()");
}
}
preInjectableFound = true;
args.add(new AsParameter(as.value(), TypeLiteral.get(method.getGenericParameterTypes()[i])));
break;
}
}
if (!preInjectableFound) {