public class AnnotationUtils extends Object
| Constructor and Description |
|---|
AnnotationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Set<Method> |
getAnnotatedMethods(Class<?> clazz,
Class<? extends Annotation> annotationClass) |
static List<AnnotatedParameter> |
getAnnotatedParameters(Method method) |
static String |
getMethodRequestMappingValue(Method method) |
static boolean |
hasApiParam(Method method) |
public static boolean hasApiParam(Method method)
method - Method - check to see if this method has a parameter annotated
with @ApiParampublic static String getMethodRequestMappingValue(Method method)
method - Method - get the request mapping for this methodpublic static List<AnnotatedParameter> getAnnotatedParameters(Method method)
method - Methodpublic static Set<Method> getAnnotatedMethods(Class<?> clazz, Class<? extends Annotation> annotationClass)
clazz - Class - scan this class for methods with the specified annotationannotationClass - Class - return all methods with this annotationCopyright © 2014. All rights reserved.