Package org.jbehave.core.configuration
Class AnnotationFinder
java.lang.Object
org.jbehave.core.configuration.AnnotationFinder
Helper class to find and retrieve annotated values
- Author:
- Cristiano Gavião, Brian Repko, Mauro Talevi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
createInheritMemberName
(String memberName) Creates the inherit member name by prefixing "inherit" to the capitalized member name.<T,
A extends Annotation>
List<Class<T>>getAnnotatedClasses
(Class<A> annotationClass, Class<T> type, String memberName) <T,
A extends Annotation>
TgetAnnotatedValue
(Class<A> annotationClass, Class<T> memberType, String memberName) <T,
A extends Annotation>
List<T>getAnnotatedValues
(Class<A> annotationClass, Class<T> type, String memberName) protected <A extends Annotation>
AnnotationgetAnnotation
(Class<A> annotationClass) protected Object
getAnnotationValue
(Annotation annotation, String attributeName) <A extends Annotation>
booleanisAnnotationPresent
(Class<A> annotationClass) <A extends Annotation>
booleanisAnnotationValuePresent
(Class<A> annotationClass, String memberName)
-
Constructor Details
-
AnnotationFinder
-
-
Method Details
-
isAnnotationPresent
-
isAnnotationValuePresent
public <A extends Annotation> boolean isAnnotationValuePresent(Class<A> annotationClass, String memberName) -
getAnnotatedValue
public <T,A extends Annotation> T getAnnotatedValue(Class<A> annotationClass, Class<T> memberType, String memberName) -
getAnnotatedValues
public <T,A extends Annotation> List<T> getAnnotatedValues(Class<A> annotationClass, Class<T> type, String memberName) -
createInheritMemberName
Creates the inherit member name by prefixing "inherit" to the capitalized member name.- Parameters:
memberName
- the initial member name- Returns:
- The inherit member name
-
getAnnotatedClasses
-
getAnnotation
-
getAnnotationValue
-