org.codehaus.jackson.map.introspect
Class AnnotationMap
java.lang.Object
org.codehaus.jackson.map.introspect.AnnotationMap
public final class AnnotationMap
- extends Object
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?).
AnnotationMap
public AnnotationMap()
get
public <A extends Annotation> A get(Class<A> cls)
size
public int size()
addIfNotPresent
public void addIfNotPresent(Annotation ann)
- Method called to add specified annotation in the Map, but
only if it didn't yet exist.
add
public void add(Annotation ann)
- Method called to add specified annotation in the Map.
toString
public String toString()
- Overrides:
toString
in class Object
_add
protected final void _add(Annotation ann)