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:
java.io.Serializable
- Direct Known Subclasses:
AnnotatedConstructor,AnnotatedMethod
public abstract class AnnotatedWithParams extends AnnotatedMember
Intermediate base class that encapsulates features that constructors and methods share.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddOrOverrideParam(int paramIndex, java.lang.annotation.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 java.lang.Objectcall()Method that can be used to (try to) call this object without arguments.abstract java.lang.Objectcall(java.lang.Object[] args)Method that can be used to (try to) call this object with specified arguments.abstract java.lang.Objectcall1(java.lang.Object arg)Method that can be used to (try to) call this object with single arguments.intgetAnnotationCount()abstract java.lang.reflect.TypegetGenericParameterType(int index)Deprecated.Since 2.7, remove in 2.9AnnotatedParametergetParameter(int index)AnnotationMapgetParameterAnnotations(int index)abstract intgetParameterCount()abstract JavaTypegetParameterType(int index)abstract java.lang.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, withAnnotations
-
Methods inherited from class com.fasterxml.jackson.databind.introspect.Annotated
equals, getAnnotated, getName, getRawType, getType, hashCode, isPublic, isStatic, toString
-
-
-
-
Method Detail
-
addOrOverrideParam
public final void addOrOverrideParam(int paramIndex, java.lang.annotation.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.
-
getParameterAnnotations
public final AnnotationMap getParameterAnnotations(int index)
-
getParameter
public final AnnotatedParameter getParameter(int index)
-
getParameterCount
public abstract int getParameterCount()
-
getRawParameterType
public abstract java.lang.Class<?> getRawParameterType(int index)
-
getParameterType
public abstract JavaType getParameterType(int index)
- Since:
- 2.7
-
getGenericParameterType
@Deprecated public abstract java.lang.reflect.Type getGenericParameterType(int index)
Deprecated.Since 2.7, remove in 2.9
-
getAnnotationCount
public final int getAnnotationCount()
-
call
public abstract java.lang.Object call() throws java.lang.ExceptionMethod 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:
java.lang.Exception
-
call
public abstract java.lang.Object call(java.lang.Object[] args) throws java.lang.ExceptionMethod 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:
java.lang.Exception
-
call1
public abstract java.lang.Object call1(java.lang.Object arg) throws java.lang.ExceptionMethod 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:
java.lang.Exception
-
-