Class AnnotationMap
java.lang.Object
org.codehaus.jackson.map.introspect.AnnotationMap
- All Implemented Interfaces:
Annotations
Simple helper class used to keep track of collection of
Jackson Annotations associated with annotatable things
(methods, constructors, classes).
Note that only Jackson-owned annotations are tracked (for now?).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
_add
(Annotation ann) void
add
(Annotation ann) Method called to add specified annotation in the Map.void
Method called to add specified annotation in the Map, but only if it didn't yet exist.<A extends Annotation>
AMain access method used to find value for given annotation.static AnnotationMap
merge
(AnnotationMap primary, AnnotationMap secondary) int
size()
Returns number of annotation entries in this collection.toString()
-
Field Details
-
_annotations
-
-
Constructor Details
-
AnnotationMap
public AnnotationMap()
-
-
Method Details
-
get
Description copied from interface:Annotations
Main access method used to find value for given annotation.- Specified by:
get
in interfaceAnnotations
-
merge
-
size
public int size()Description copied from interface:Annotations
Returns number of annotation entries in this collection.- Specified by:
size
in interfaceAnnotations
-
addIfNotPresent
Method called to add specified annotation in the Map, but only if it didn't yet exist. -
add
Method called to add specified annotation in the Map. -
toString
-
_add
-