Class AnnotatedMember

java.lang.Object
org.datanucleus.metadata.annotations.AnnotatedMember

class AnnotatedMember extends 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.
  • Field Details

    • member

      Member member
      The Field/Method
    • annotations

      AnnotationObject[] annotations
      Annotations for field/method
  • Constructor Details

    • AnnotatedMember

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

    • getName

      public 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 String toString()
      Overrides:
      toString in class Object