org.codehaus.jackson.map.introspect
Class AnnotatedWithParams

java.lang.Object
  extended by org.codehaus.jackson.map.introspect.Annotated
      extended by 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.


Field Summary
protected  AnnotationMap _classAnnotations
           
protected  AnnotationMap[] _paramAnnotations
           
 
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.
<A extends Annotation>
A
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.Annotated
getAnnotated, getModifiers, getName, getType, hasAnnotation, isPublic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_classAnnotations

protected final AnnotationMap _classAnnotations

_paramAnnotations

protected final AnnotationMap[] _paramAnnotations
Constructor Detail

AnnotatedWithParams

protected AnnotatedWithParams(AnnotationMap classAnn,
                              AnnotationMap[] paramAnn)
Method Detail

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()