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) voidadd(Annotation ann) Method called to add specified annotation in the Map.voidMethod 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 AnnotationMapmerge(AnnotationMap primary, AnnotationMap secondary) intsize()Returns number of annotation entries in this collection.toString()
-
Field Details
-
_annotations
-
-
Constructor Details
-
AnnotationMap
public AnnotationMap()
-
-
Method Details
-
get
Description copied from interface:AnnotationsMain access method used to find value for given annotation.- Specified by:
getin interfaceAnnotations
-
merge
-
size
public int size()Description copied from interface:AnnotationsReturns number of annotation entries in this collection.- Specified by:
sizein 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
-