org.codehaus.jackson.map.introspect
Class AnnotatedWithParams
java.lang.Object
org.codehaus.jackson.map.introspect.Annotated
org.codehaus.jackson.map.introspect.AnnotatedWithParams
- Direct Known Subclasses:
- AnnotatedConstructor, AnnotatedMethod
public abstract class AnnotatedWithParams
- extends Annotated
Intermediate base class that encapsulates features that
constructors and methods share.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_classAnnotations
protected final AnnotationMap _classAnnotations
_paramAnnotations
protected final AnnotationMap[] _paramAnnotations
AnnotatedWithParams
protected AnnotatedWithParams(AnnotationMap classAnn,
AnnotationMap[] paramAnn)
addOrOverride
public final 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
addOrOverrideParam
public final 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.
addIfNotPresent
public final 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.
getAnnotation
public final <A extends Annotation> A getAnnotation(Class<A> acls)
- Specified by:
getAnnotation
in class Annotated
getParameterAnnotations
public final AnnotationMap getParameterAnnotations(int index)
getParameter
public abstract AnnotatedParameter getParameter(int index)
getParameterCount
public abstract int getParameterCount()
getParameterClass
public abstract Class<?> getParameterClass(int index)
getParameterType
public abstract Type getParameterType(int index)
getAnnotationCount
public final int getAnnotationCount()