Class AnnotatedMember
- java.lang.Object
-
- org.datanucleus.metadata.annotations.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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) AnnotationObject[]
annotations
Annotations for field/method(package private) Member
member
The Field/Method
-
Constructor Summary
Constructors Constructor Description AnnotatedMember(Member field, AnnotationObject[] annotations)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAnnotations(AnnotationObject[] annotations)
Method to add more annotations for this member.AnnotationObject[]
getAnnotations()
Accessor for the annotationsMember
getMember()
Accessor for the field / method.java.lang.String
getName()
Accessor for the field namejava.lang.String
toString()
-
-
-
Field Detail
-
member
Member member
The Field/Method
-
annotations
AnnotationObject[] annotations
Annotations for field/method
-
-
Constructor Detail
-
AnnotatedMember
public AnnotatedMember(Member field, AnnotationObject[] annotations)
Constructor.- Parameters:
field
- The fieldannotations
- 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 classjava.lang.Object
-
-