public class ReflectionUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Set<java.lang.reflect.Method> |
findMethod(java.lang.Class clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Returns a
Set of Method instances that
are annotated with the annotation provided. |
public static final java.util.Set<java.lang.reflect.Method> findMethod(java.lang.Class clazz, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Set
of Method
instances that
are annotated with the annotation provided.clazz
- The class to search for a method with the given annotation typeannotationType
- The type of annotation to look forMethod
instances if any are found, an empty set if not.