public class MethodAnnotations
extends java.lang.Object
Constructor and Description |
---|
MethodAnnotations() |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.annotation.Annotation> |
get(java.lang.reflect.Method from,
java.lang.Class<T> ofClass) |
<T extends java.lang.annotation.Annotation> |
getAnnotations(java.lang.Class<T> ofType) |
<T extends java.lang.annotation.Annotation> |
getMethodAnnotations(java.lang.Class<T> ofType) |
static boolean |
hasAnyOf(java.lang.reflect.Method method,
java.lang.Class<?>... annotationClasses) |
boolean |
isEmpty() |
<T extends java.lang.annotation.Annotation> |
put(java.lang.reflect.Method method,
java.lang.Class<T> annotationClass,
T annotation) |
java.lang.String |
toString() |
public static boolean hasAnyOf(java.lang.reflect.Method method, java.lang.Class<?>... annotationClasses)
public static <T extends java.lang.annotation.Annotation> java.util.Optional<T> get(java.lang.reflect.Method from, java.lang.Class<T> ofClass)
public <T extends java.lang.annotation.Annotation> void put(java.lang.reflect.Method method, java.lang.Class<T> annotationClass, T annotation)
public <T extends java.lang.annotation.Annotation> java.util.Map<java.lang.reflect.Method,T> getMethodAnnotations(java.lang.Class<T> ofType)
public <T extends java.lang.annotation.Annotation> java.util.Collection<T> getAnnotations(java.lang.Class<T> ofType)
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object