|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.jackson.map.introspect.AnnotationMap
public final class AnnotationMap
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 | |
|---|---|
protected HashMap<Class<? extends Annotation>,Annotation> |
_annotations
|
| Constructor Summary | |
|---|---|
AnnotationMap()
|
|
| Method Summary | ||
|---|---|---|
protected void |
_add(Annotation ann)
|
|
void |
add(Annotation ann)
Method called to add specified annotation in the Map. |
|
void |
addIfNotPresent(Annotation ann)
Method called to add specified annotation in the Map, but only if it didn't yet exist. |
|
|
get(Class<A> cls)
Main access method used to find value for given annotation. |
|
int |
size()
Returns number of annotation entries in this collection. |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected HashMap<Class<? extends Annotation>,Annotation> _annotations
| Constructor Detail |
|---|
public AnnotationMap()
| Method Detail |
|---|
public <A extends Annotation> A get(Class<A> cls)
Annotations
get in interface Annotationspublic int size()
Annotations
size in interface Annotationspublic void addIfNotPresent(Annotation ann)
public void add(Annotation ann)
public String toString()
toString in class Objectprotected final void _add(Annotation ann)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||