org.codehaus.jackson.map.introspect
Class AnnotatedConstructor

java.lang.Object
  extended by org.codehaus.jackson.map.introspect.Annotated
      extended by org.codehaus.jackson.map.introspect.AnnotatedConstructor

public final class AnnotatedConstructor
extends Annotated


Constructor Summary
AnnotatedConstructor(Constructor<?> constructor, AnnotationMap annMap, AnnotationMap[] paramAnnotations)
           
 
Method Summary
 void addOrOverride(Annotation a)
          Method called to override a constructor annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' constructor has.
 void addOrOverrideParam(int paramIndex, Annotation a)
          Method called to override a constructor parameter annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' constructor has.
 void fixAccess()
          Method that can be called to modify access rights, by calling AccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[], boolean) on the underlying annotated element.
 Constructor<?> getAnnotated()
           
<A extends Annotation>
A
getAnnotation(Class<A> acls)
           
 int getModifiers()
           
 String getName()
           
 AnnotatedParameter getParameter(int index)
           
 AnnotationMap getParameterAnnotations(int index)
           
 Class<?> getParameterClass(int index)
           
 int getParameterCount()
           
 Type getParameterType(int index)
           
 Class<?> getType()
          Method used with annotated things that have class type.
 String toString()
           
 
Methods inherited from class org.codehaus.jackson.map.introspect.Annotated
hasAnnotation, isPublic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotatedConstructor

public AnnotatedConstructor(Constructor<?> constructor,
                            AnnotationMap annMap,
                            AnnotationMap[] paramAnnotations)
Method Detail

addOrOverride

public void addOrOverride(Annotation a)
Method called to override a constructor annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' constructor has.


addOrOverrideParam

public void addOrOverrideParam(int paramIndex,
                               Annotation a)
Method called to override a constructor parameter annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' constructor has.


getAnnotated

public Constructor<?> getAnnotated()
Specified by:
getAnnotated in class Annotated

getModifiers

public int getModifiers()
Specified by:
getModifiers in class Annotated

getName

public String getName()
Specified by:
getName in class Annotated

getAnnotation

public <A extends Annotation> A getAnnotation(Class<A> acls)
Specified by:
getAnnotation in class Annotated

getType

public Class<?> getType()
Description copied from class: Annotated
Method used with annotated things that have class type.

Specified by:
getType in class Annotated

getParameter

public AnnotatedParameter getParameter(int index)

getParameterCount

public int getParameterCount()

getParameterClass

public Class<?> getParameterClass(int index)

getParameterType

public Type getParameterType(int index)

getParameterAnnotations

public AnnotationMap getParameterAnnotations(int index)

fixAccess

public void fixAccess()
Method that can be called to modify access rights, by calling AccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[], boolean) on the underlying annotated element.


toString

public String toString()
Overrides:
toString in class Object