public final class ClassUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
getAnnotation(Class<?> annotatedClass,
Class<A> annotationClass)
Gets a type annotation, considering super classes.
|
public static <A extends Annotation> A getAnnotation(Class<?> annotatedClass, Class<A> annotationClass)
A
- annotation typeannotatedClass
- annotation classannotationClass
- class we search for an annotatationnull
if none is foundCopyright © 2008–2023 Norconex Inc.. All rights reserved.