Class AnnotatedMember


  • class AnnotatedMember
    extends java.lang.Object
    Representation of a field/method that is annotated. Used by AbstractAnnotationReader to hold the annotations for a field/method when extracting them for the class.
    • Constructor Detail

      • AnnotatedMember

        public AnnotatedMember​(Member field,
                               AnnotationObject[] annotations)
        Constructor.
        Parameters:
        field - The field
        annotations - The annotation objects
    • Method Detail

      • getName

        public java.lang.String getName()
        Accessor for the field name
        Returns:
        The name
      • getMember

        public Member getMember()
        Accessor for the field / method.
        Returns:
        field/method information
      • getAnnotations

        public AnnotationObject[] getAnnotations()
        Accessor for the annotations
        Returns:
        The annotation objects
      • addAnnotations

        public void addAnnotations​(AnnotationObject[] annotations)
        Method to add more annotations for this member.
        Parameters:
        annotations - Annotations to add
      • toString

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