Package dev.quantumfusion.hyphen.util
Class ScanUtil
java.lang.Object
dev.quantumfusion.hyphen.util.ScanUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<Class<? extends Annotation>,Object>acquireAnnotations(SerializerHandler<?,?> handler, @NotNull AnnotatedType self, @Nullable Clazz parent)static voidaddAnnotations(AnnotatedElement annotations, Map<Class<? extends Annotation>,Object> map)static AnnotatedType[]append(AnnotatedType[] oldArray, AnnotatedType value)static AnnotatedType[]findPath(AnnotatedType root, Predicate<AnnotatedType> matcher, Function<AnnotatedType,AnnotatedType[]> splitter)static @Nullable MethodgetAnnotationValueGetter(Class<? extends Annotation> annotation)static Class<?>getClassFrom(AnnotatedType type)static Class<?>getClassFrom(Type type)static @Nullable Class<?>getClassFromOrNull(Type type)static AnnotatedType
-
Constructor Details
-
ScanUtil
public ScanUtil()
-
-
Method Details
-
findPath
public static AnnotatedType[] findPath(AnnotatedType root, Predicate<AnnotatedType> matcher, Function<AnnotatedType,AnnotatedType[]> splitter) -
append
-
acquireAnnotations
public static Map<Class<? extends Annotation>,Object> acquireAnnotations(SerializerHandler<?,?> handler, @NotNull @NotNull AnnotatedType self, @Nullable @Nullable Clazz parent) -
addAnnotations
public static void addAnnotations(AnnotatedElement annotations, Map<Class<? extends Annotation>,Object> map) -
getAnnotationValueGetter
@Nullable public static @Nullable Method getAnnotationValueGetter(Class<? extends Annotation> annotation) -
wrap
-
getClassFrom
-
getClassFrom
-
getClassFromOrNull
-