org.jbehave.core.configuration
Class AnnotationFinder
java.lang.Object
org.jbehave.core.configuration.AnnotationFinder
public class AnnotationFinder
- extends java.lang.Object
Helper class to find and retrieve annotated values
- Author:
- Cristiano Gavião, Brian Repko, Mauro Talevi
Method Summary |
protected java.lang.String |
createInheritMemberName(java.lang.String memberName)
Creates the inherit member name by prefixing "inherit" to the capitalized
member name. |
<T,A extends java.lang.annotation.Annotation>
java.util.List<java.lang.Class<T>> |
|
getAnnotatedClasses(java.lang.Class<A> annotationClass,
java.lang.Class<T> type,
java.lang.String memberName)
|
<T,A extends java.lang.annotation.Annotation>
T |
|
getAnnotatedValue(java.lang.Class<A> annotationClass,
java.lang.Class<T> memberType,
java.lang.String memberName)
|
<T,A extends java.lang.annotation.Annotation>
java.util.List<T> |
|
getAnnotatedValues(java.lang.Class<A> annotationClass,
java.lang.Class<T> type,
java.lang.String memberName)
|
protected
<A extends java.lang.annotation.Annotation>
java.lang.annotation.Annotation |
|
getAnnotation(java.lang.Class<A> annotationClass)
|
protected java.lang.Object |
getAnnotationValue(java.lang.annotation.Annotation annotation,
java.lang.String attributeName)
|
<A extends java.lang.annotation.Annotation>
boolean |
|
isAnnotationPresent(java.lang.Class<A> annotationClass)
|
<A extends java.lang.annotation.Annotation>
boolean |
|
isAnnotationValuePresent(java.lang.Class<A> annotationClass,
java.lang.String memberName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationFinder
public AnnotationFinder(java.lang.Class<?> annotatedClass)
isAnnotationPresent
public <A extends java.lang.annotation.Annotation> boolean isAnnotationPresent(java.lang.Class<A> annotationClass)
isAnnotationValuePresent
public <A extends java.lang.annotation.Annotation> boolean isAnnotationValuePresent(java.lang.Class<A> annotationClass,
java.lang.String memberName)
getAnnotatedValue
public <T,A extends java.lang.annotation.Annotation> T getAnnotatedValue(java.lang.Class<A> annotationClass,
java.lang.Class<T> memberType,
java.lang.String memberName)
getAnnotatedValues
public <T,A extends java.lang.annotation.Annotation> java.util.List<T> getAnnotatedValues(java.lang.Class<A> annotationClass,
java.lang.Class<T> type,
java.lang.String memberName)
createInheritMemberName
protected java.lang.String createInheritMemberName(java.lang.String memberName)
- Creates the inherit member name by prefixing "inherit" to the capitalized
member name.
- Parameters:
memberName
-
- Returns:
- The inherit member name
getAnnotatedClasses
public <T,A extends java.lang.annotation.Annotation> java.util.List<java.lang.Class<T>> getAnnotatedClasses(java.lang.Class<A> annotationClass,
java.lang.Class<T> type,
java.lang.String memberName)
getAnnotation
protected <A extends java.lang.annotation.Annotation> java.lang.annotation.Annotation getAnnotation(java.lang.Class<A> annotationClass)
getAnnotationValue
protected java.lang.Object getAnnotationValue(java.lang.annotation.Annotation annotation,
java.lang.String attributeName)
Copyright © 2003-2010. All Rights Reserved.