Interface AnnotatedElement

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      AnnotationModel getAnnotation​(java.lang.String name)
      Returns an annotation model if the type is annotated with the passed annotation name
      java.util.Collection<AnnotationModel> getAnnotations()
      Returns a unmodifiable set of annotations that are present on this annotated element.
      java.lang.String getName()
      Annotated element have a name, which vary depending on the actual subclass type.
      java.lang.String shortDesc()
      Construct and return a short description name that can be used to display the instance value
    • Method Detail

      • getName

        java.lang.String getName()
        Annotated element have a name, which vary depending on the actual subclass type. For instance, a class annotated element's name is the class name as obtained from Class.getName()
        Returns:
        the annotated element name
      • shortDesc

        java.lang.String shortDesc()
        Construct and return a short description name that can be used to display the instance value
        Returns:
        a short description
      • getAnnotations

        java.util.Collection<AnnotationModel> getAnnotations()
        Returns a unmodifiable set of annotations that are present on this annotated element.
        Returns:
        the collection of annotations
      • getAnnotation

        AnnotationModel getAnnotation​(java.lang.String name)
        Returns an annotation model if the type is annotated with the passed annotation name
        Parameters:
        name - the annotation name
        Returns:
        the annotation model or null if the type is not annotated with this annotation type of the passed name.