|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.map.introspect.Annotated
org.codehaus.jackson.map.introspect.AnnotatedMember
org.codehaus.jackson.map.introspect.AnnotatedWithParams
public abstract class AnnotatedWithParams
Intermediate base class that encapsulates features that constructors and methods share.
Field Summary | |
---|---|
protected AnnotationMap |
_annotations
Annotations directly associated with the annotated entity. |
protected AnnotationMap[] |
_paramAnnotations
Annotations associated with parameters of the annotated entity (method or constructor parameters) |
Constructor Summary | |
---|---|
protected |
AnnotatedWithParams(AnnotationMap classAnn,
AnnotationMap[] paramAnn)
|
Method Summary | ||
---|---|---|
void |
addIfNotPresent(Annotation a)
Method called to augment annotations, by adding specified annotation if and only if it is not yet present in the annotation map we have. |
|
void |
addOrOverride(Annotation a)
Method called to override a class annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' class |
|
void |
addOrOverrideParam(int paramIndex,
Annotation a)
Method called to override a method parameter annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' method has. |
|
|
getAnnotation(Class<A> acls)
|
|
int |
getAnnotationCount()
|
|
abstract AnnotatedParameter |
getParameter(int index)
|
|
AnnotationMap |
getParameterAnnotations(int index)
|
|
abstract Class<?> |
getParameterClass(int index)
|
|
abstract int |
getParameterCount()
|
|
abstract Type |
getParameterType(int index)
|
Methods inherited from class org.codehaus.jackson.map.introspect.AnnotatedMember |
---|
fixAccess, getDeclaringClass, getMember |
Methods inherited from class org.codehaus.jackson.map.introspect.Annotated |
---|
getAnnotated, getGenericType, getModifiers, getName, getRawType, getType, hasAnnotation, isPublic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AnnotationMap _annotations
protected final AnnotationMap[] _paramAnnotations
Constructor Detail |
---|
protected AnnotatedWithParams(AnnotationMap classAnn, AnnotationMap[] paramAnn)
Method Detail |
---|
public final void addOrOverride(Annotation a)
public final void addOrOverrideParam(int paramIndex, Annotation a)
public final void addIfNotPresent(Annotation a)
public final <A extends Annotation> A getAnnotation(Class<A> acls)
getAnnotation
in class Annotated
public final AnnotationMap getParameterAnnotations(int index)
public abstract AnnotatedParameter getParameter(int index)
public abstract int getParameterCount()
public abstract Class<?> getParameterClass(int index)
public abstract Type getParameterType(int index)
public final int getAnnotationCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |