public class AnnotationFinder extends Object
Constructor and Description |
---|
AnnotationFinder(Class<?> annotatedClass) |
Modifier and Type | Method and Description |
---|---|
protected String |
createInheritMemberName(String memberName)
Creates the inherit member name by prefixing "inherit" to the capitalized
member name.
|
<T,A extends Annotation> |
getAnnotatedClasses(Class<A> annotationClass,
Class<T> type,
String memberName) |
<T,A extends Annotation> |
getAnnotatedValue(Class<A> annotationClass,
Class<T> memberType,
String memberName) |
<T,A extends Annotation> |
getAnnotatedValues(Class<A> annotationClass,
Class<T> type,
String memberName) |
protected <A extends Annotation> |
getAnnotation(Class<A> annotationClass) |
protected Object |
getAnnotationValue(Annotation annotation,
String attributeName) |
<A extends Annotation> |
isAnnotationPresent(Class<A> annotationClass) |
<A extends Annotation> |
isAnnotationValuePresent(Class<A> annotationClass,
String memberName) |
public AnnotationFinder(Class<?> annotatedClass)
public <A extends Annotation> boolean isAnnotationPresent(Class<A> annotationClass)
public <A extends Annotation> boolean isAnnotationValuePresent(Class<A> annotationClass, String memberName)
public <T,A extends Annotation> T getAnnotatedValue(Class<A> annotationClass, Class<T> memberType, String memberName)
public <T,A extends Annotation> List<T> getAnnotatedValues(Class<A> annotationClass, Class<T> type, String memberName)
protected String createInheritMemberName(String memberName)
memberName
- public <T,A extends Annotation> List<Class<T>> getAnnotatedClasses(Class<A> annotationClass, Class<T> type, String memberName)
protected <A extends Annotation> Annotation getAnnotation(Class<A> annotationClass)
protected Object getAnnotationValue(Annotation annotation, String attributeName)
Copyright © 2003–2016. All rights reserved.