Class AnnotatedMember
- java.lang.Object
-
- org.datanucleus.metadata.annotations.AnnotatedMember
-
class AnnotatedMember extends java.lang.ObjectRepresentation 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[]annotationsAnnotations for field/method(package private) MembermemberThe 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 voidaddAnnotations(AnnotationObject[] annotations)Method to add more annotations for this member.AnnotationObject[]getAnnotations()Accessor for the annotationsMembergetMember()Accessor for the field / method.java.lang.StringgetName()Accessor for the field namejava.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-