Class AnnotatedMember
java.lang.Object
org.datanucleus.metadata.annotations.AnnotatedMember
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
FieldsModifier and TypeFieldDescription(package private) AnnotationObject[]
Annotations for field/method(package private) Member
The Field/Method -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotations
(AnnotationObject[] annotations) Method to add more annotations for this member.Accessor for the annotationsAccessor for the field / method.getName()
Accessor for the field nametoString()
-
Field Details
-
member
Member memberThe Field/Method -
annotations
AnnotationObject[] annotationsAnnotations for field/method
-
-
Constructor Details
-
AnnotatedMember
Constructor.- Parameters:
field
- The fieldannotations
- The annotation objects
-
-
Method Details
-
getName
Accessor for the field name- Returns:
- The name
-
getMember
Accessor for the field / method.- Returns:
- field/method information
-
getAnnotations
Accessor for the annotations- Returns:
- The annotation objects
-
addAnnotations
Method to add more annotations for this member.- Parameters:
annotations
- Annotations to add
-
toString
-