Class AnnotationFinder

java.lang.Object
org.jbehave.core.configuration.AnnotationFinder

public class AnnotationFinder extends Object
Helper class to find and retrieve annotated values
Author:
Cristiano GaviĆ£o, Brian Repko, Mauro Talevi
  • Constructor Details

    • AnnotationFinder

      public AnnotationFinder(Class<?> annotatedClass)
  • Method Details

    • isAnnotationPresent

      public <A extends Annotation> boolean isAnnotationPresent(Class<A> annotationClass)
    • 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

      protected String createInheritMemberName(String memberName)
      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

      public <T, A extends Annotation> List<Class<T>> getAnnotatedClasses(Class<A> annotationClass, Class<T> type, String memberName)
    • getAnnotation

      protected <A extends Annotation> Annotation getAnnotation(Class<A> annotationClass)
    • getAnnotationValue

      protected Object getAnnotationValue(Annotation annotation, String attributeName)