Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.introspect

public abstract Class AnnotatedWithParams

extends AnnotatedMember
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.databind.introspect.AnnotatedConstructor, com.fasterxml.jackson.databind.introspect.AnnotatedMethod
Imports
java.lang.annotation.Annotation, java.lang.reflect.Type, com.fasterxml.jackson.databind.JavaType

Intermediate base class that encapsulates features that constructors and methods share.

Field Summary

Modifier and TypeField and Description
protected final AnnotationMap[]
_paramAnnotations

Annotations associated with parameters of the annotated entity (method or constructor parameters)

private static final long
Inherited from com.fasterxml.jackson.databind.introspect.AnnotatedMember:
_annotations_typeContext

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
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.

public abstract Object
call()

Method that can be used to (try to) call this object without arguments.

public abstract Object
call(Object[] args)

Method that can be used to (try to) call this object with specified arguments.

public abstract Object
call1(Object arg)

Method that can be used to (try to) call this object with single arguments.

public final int
public abstract Type
getGenericParameterType(int index)

Deprecated Since 2.7, remove in 2.9
public final AnnotatedParameter
getParameter(int index)

public final AnnotationMap
public abstract int
public abstract JavaType
getParameterType(int index)

public abstract Class<?>
protected AnnotatedParameter
replaceParameterAnnotations(int index, AnnotationMap ann)

Method called by parameter object when an augmented instance is created; needs to replace parameter with new instance

Inherited from com.fasterxml.jackson.databind.introspect.AnnotatedMember:
annotationsfixAccessgetAllAnnotationsgetAnnotationgetDeclaringClassgetFullNamegetMembergetTypeContextgetValuehasAnnotationhasOneOfsetValuewithAnnotations

Field Detail

_paramAnnotationsback to summary
protected final AnnotationMap[] _paramAnnotations

Annotations associated with parameters of the annotated entity (method or constructor parameters)

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.introspect.AnnotatedMember.serialVersionUID.

Constructor Detail

AnnotatedWithParamsback to summary
protected AnnotatedWithParams(TypeResolutionContext ctxt, AnnotationMap annotations, AnnotationMap[] paramAnnotations)
AnnotatedWithParamsback to summary
protected AnnotatedWithParams(AnnotatedWithParams base, AnnotationMap[] paramAnnotations)
Since
2.8.1

Method Detail

addOrOverrideParamback to summary
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.

callback to summary
public abstract Object call() throws Exception

Method that can be used to (try to) call this object without arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call.

Note

only works for constructors and static methods.

callback to summary
public abstract Object call(Object[] args) throws Exception

Method that can be used to (try to) call this object with specified arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call.

Note

only works for constructors and static methods.

call1back to summary
public abstract Object call1(Object arg) throws Exception

Method that can be used to (try to) call this object with single arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call.

Note

only works for constructors and static methods.

getAnnotationCountback to summary
public final int getAnnotationCount()
getGenericParameterTypeback to summary
public abstract Type getGenericParameterType(int index)

Deprecated

Since 2.7, remove in 2.9

Annotations
@Deprecated
getParameterback to summary
public final AnnotatedParameter getParameter(int index)
getParameterAnnotationsback to summary
public final AnnotationMap getParameterAnnotations(int index)
getParameterCountback to summary
public abstract int getParameterCount()
getParameterTypeback to summary
public abstract JavaType getParameterType(int index)
Since
2.7
getRawParameterTypeback to summary
public abstract Class<?> getRawParameterType(int index)
replaceParameterAnnotationsback to summary
protected AnnotatedParameter replaceParameterAnnotations(int index, AnnotationMap ann)

Method called by parameter object when an augmented instance is created; needs to replace parameter with new instance