Class MethodAnnotations
- java.lang.Object
-
- com.djrapitops.plan.extension.extractor.MethodAnnotations
-
public class MethodAnnotations extends java.lang.Object
Implementation detail, utility class for handling method annotations.
-
-
Constructor Summary
Constructors Constructor Description MethodAnnotations()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends java.lang.annotation.Annotation>
java.util.Optional<T>get(java.lang.reflect.Method from, java.lang.Class<T> ofClass)
<T extends java.lang.annotation.Annotation>
java.util.Collection<T>getAnnotations(java.lang.Class<T> ofType)
<T extends java.lang.annotation.Annotation>
java.util.Map<java.lang.reflect.Method,T>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>
voidput(java.lang.reflect.Method method, java.lang.Class<T> annotationClass, T annotation)
java.lang.String
toString()
-
-
-
Method Detail
-
hasAnyOf
public static boolean hasAnyOf(java.lang.reflect.Method method, java.lang.Class<?>... annotationClasses)
-
get
public static <T extends java.lang.annotation.Annotation> java.util.Optional<T> get(java.lang.reflect.Method from, java.lang.Class<T> ofClass)
-
put
public <T extends java.lang.annotation.Annotation> void put(java.lang.reflect.Method method, java.lang.Class<T> annotationClass, T annotation)
-
getMethodAnnotations
public <T extends java.lang.annotation.Annotation> java.util.Map<java.lang.reflect.Method,T> getMethodAnnotations(java.lang.Class<T> ofType)
-
getAnnotations
public <T extends java.lang.annotation.Annotation> java.util.Collection<T> getAnnotations(java.lang.Class<T> ofType)
-
isEmpty
public boolean isEmpty()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-