Class AnnotatedWithParams
java.lang.Object
com.fasterxml.jackson.databind.introspect.Annotated
com.fasterxml.jackson.databind.introspect.AnnotatedMember
com.fasterxml.jackson.databind.introspect.AnnotatedWithParams
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AnnotatedConstructor,AnnotatedMethod
Intermediate base class that encapsulates features that
constructors and methods share.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddOrOverrideParam(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.abstract Objectcall()Method that can be used to (try to) call this object without arguments.abstract ObjectMethod that can be used to (try to) call this object with specified arguments.abstract ObjectMethod that can be used to (try to) call this object with single arguments.final intabstract TypegetGenericParameterType(int index) Deprecated.Since 2.7, remove in 2.9final AnnotatedParametergetParameter(int index) final AnnotationMapgetParameterAnnotations(int index) abstract intabstract JavaTypegetParameterType(int index) abstract Class<?> getRawParameterType(int index) Methods inherited from class com.fasterxml.jackson.databind.introspect.AnnotatedMember
annotations, fixAccess, getAllAnnotations, getAnnotation, getDeclaringClass, getFullName, getMember, getTypeContext, getValue, hasAnnotation, hasOneOf, setValue, withAnnotationsMethods inherited from class com.fasterxml.jackson.databind.introspect.Annotated
equals, getAnnotated, getName, getRawType, getType, hashCode, isPublic, isStatic, toString
-
Method Details
-
addOrOverrideParam
Method called to override a method parameter annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' method has. -
getParameterAnnotations
-
getParameter
-
getParameterCount
public abstract int getParameterCount() -
getRawParameterType
-
getParameterType
- Since:
- 2.7
-
getGenericParameterType
Deprecated.Since 2.7, remove in 2.9 -
getAnnotationCount
public final int getAnnotationCount() -
call
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.
- Throws:
Exception
-
call
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.
- Throws:
Exception
-
call1
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.
- Throws:
Exception
-