java.lang.Object
tools.jackson.databind.introspect.Annotated
tools.jackson.databind.introspect.AnnotatedMember
tools.jackson.databind.introspect.AnnotatedWithParams
- Direct Known Subclasses:
AnnotatedConstructor,AnnotatedMethod
Intermediate base class that encapsulates features that
constructors and methods share.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AnnotationMap[]Annotations associated with parameters of the annotated entity (method or constructor parameters)Fields inherited from class tools.jackson.databind.introspect.AnnotatedMember
_annotations, _typeContext -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAnnotatedWithParams(AnnotatedWithParams base, AnnotationMap[] paramAnnotations) protectedAnnotatedWithParams(TypeResolutionContext ctxt, AnnotationMap annotations, AnnotationMap[] paramAnnotations) -
Method Summary
Modifier and TypeMethodDescriptionabstract 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 Parameter[]final AnnotatedParametergetParameter(int index) final AnnotationMapgetParameterAnnotations(int index) abstract intabstract JavaTypegetParameterType(int index) abstract Class<?>getRawParameterType(int index) protected AnnotatedParameterreplaceParameterAnnotations(int index, AnnotationMap ann) Method called by parameter object when an augmented instance is created; needs to replace parameter with new instanceMethods inherited from class tools.jackson.databind.introspect.AnnotatedMember
_annotationMap, annotations, fixAccess, getAnnotation, getDeclaringClass, getFullName, getMember, getValue, hasAnnotation, hasOneOf, setValue, withAnnotationsMethods inherited from class tools.jackson.databind.introspect.Annotated
equals, getAnnotated, getModifiers, getName, getRawType, getType, hashCode, isPublic, isStatic, toString
-
Field Details
-
_paramAnnotations
Annotations associated with parameters of the annotated entity (method or constructor parameters)
-
-
Constructor Details
-
AnnotatedWithParams
protected AnnotatedWithParams(TypeResolutionContext ctxt, AnnotationMap annotations, AnnotationMap[] paramAnnotations) -
AnnotatedWithParams
-
-
Method Details
-
replaceParameterAnnotations
Method called by parameter object when an augmented instance is created; needs to replace parameter with new instance -
getParameterAnnotations
-
getParameter
-
getParameterCount
public abstract int getParameterCount() -
getRawParameterType
-
getParameterType
-
getNativeParameters
- Since:
- 3.0
-
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
-