Class AnnotatedElementImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotatedElementImpl​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void addAnnotation​(AnnotationModel annotation)  
      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.
      boolean isApplicationClass()  
      protected void print​(java.lang.StringBuffer sb)  
      void setApplicationClass​(boolean applicationClass)  
      java.lang.String shortDesc()
      Construct and return a short description name that can be used to display the instance value
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
      • isApplicationClass

        private boolean isApplicationClass
    • Constructor Detail

      • AnnotatedElementImpl

        public AnnotatedElementImpl​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: AnnotatedElement
        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()
        Specified by:
        getName in interface AnnotatedElement
        Returns:
        the annotated element name
      • getAnnotations

        public java.util.Collection<AnnotationModel> getAnnotations()
        Description copied from interface: AnnotatedElement
        Returns a unmodifiable set of annotations that are present on this annotated element.
        Specified by:
        getAnnotations in interface AnnotatedElement
        Returns:
        the collection of annotations
      • getAnnotation

        public AnnotationModel getAnnotation​(java.lang.String name)
        Description copied from interface: AnnotatedElement
        Returns an annotation model if the type is annotated with the passed annotation name
        Specified by:
        getAnnotation in interface AnnotatedElement
        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.
      • isApplicationClass

        public boolean isApplicationClass()
      • setApplicationClass

        public void setApplicationClass​(boolean applicationClass)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • shortDesc

        public java.lang.String shortDesc()
        Description copied from interface: AnnotatedElement
        Construct and return a short description name that can be used to display the instance value
        Specified by:
        shortDesc in interface AnnotatedElement
        Returns:
        a short description
      • print

        protected void print​(java.lang.StringBuffer sb)