org.codehaus.jackson.map.introspect
Class AnnotatedConstructor
java.lang.Object
org.codehaus.jackson.map.introspect.Annotated
org.codehaus.jackson.map.introspect.AnnotatedConstructor
public final class AnnotatedConstructor
- extends Annotated
AnnotatedConstructor
public AnnotatedConstructor(Constructor<?> constructor,
AnnotationMap annMap,
AnnotationMap[] paramAnnotations)
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