Class AnnotatedWithParams
java.lang.Object
org.codehaus.jackson.map.introspect.Annotated
org.codehaus.jackson.map.introspect.AnnotatedMember
org.codehaus.jackson.map.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 org.codehaus.jackson.map.introspect.AnnotatedMember
_annotations
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AnnotatedWithParams
(AnnotationMap annotations, AnnotationMap[] paramAnnotations) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Method called to augment annotations, by adding specified annotation if and only if it is not yet present in the annotation map we have.final void
Method called to override a class annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' classfinal 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.abstract Object
call()
Method that can be used to (try to) call this object without arguments.abstract Object
Method that can be used to (try to) call this object with specified arguments.abstract Object
Method that can be used to (try to) call this object with single arguments.final <A extends Annotation>
AgetAnnotation
(Class<A> acls) final int
final AnnotatedParameter
getParameter
(int index) final AnnotationMap
getParameterAnnotations
(int index) abstract Class<?>
getParameterClass
(int index) abstract int
abstract Type
getParameterType
(int index) protected JavaType
getType
(TypeBindings bindings, TypeVariable<?>[] typeParams) protected AnnotatedParameter
replaceParameterAnnotations
(int index, AnnotationMap ann) Method called by parameter object when an augmented instance is created; needs to replace parameter with new instancefinal JavaType
resolveParameterType
(int index, TypeBindings bindings) Method called to fully resolve type of one of parameters, given specified type variable bindings.Methods inherited from class org.codehaus.jackson.map.introspect.AnnotatedMember
fixAccess, getAllAnnotations, getDeclaringClass, getMember, setValue
Methods inherited from class org.codehaus.jackson.map.introspect.Annotated
getAnnotated, getGenericType, getModifiers, getName, getRawType, getType, hasAnnotation, isPublic, withAnnotations, withFallBackAnnotationsFrom
-
Field Details
-
_paramAnnotations
Annotations associated with parameters of the annotated entity (method or constructor parameters)
-
-
Constructor Details
-
AnnotatedWithParams
-
-
Method Details
-
addOrOverride
Method called to override a class annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' class -
addOrOverrideParam
Method called to override a method parameter annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' method has. -
addIfNotPresent
Method called to augment annotations, by adding specified annotation if and only if it is not yet present in the annotation map we have. -
replaceParameterAnnotations
Method called by parameter object when an augmented instance is created; needs to replace parameter with new instance- Since:
- 1.9
-
getType
-
getAnnotation
- Specified by:
getAnnotation
in classAnnotated
-
getParameterAnnotations
-
getParameter
-
getParameterCount
public abstract int getParameterCount() -
getParameterClass
-
getParameterType
-
resolveParameterType
Method called to fully resolve type of one of parameters, given specified type variable bindings.- Since:
- 1.8
-
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
- Since:
- 1.9
-
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
- Since:
- 1.9
-
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
- Since:
- 1.9
-