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 AnnotatedMember
_annotations -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAnnotatedWithParams(AnnotationMap annotations, AnnotationMap[] paramAnnotations) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidMethod called to augment annotations, by adding specified annotation if and only if it is not yet present in the annotation map we have.final voidMethod called to override a class annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' classfinal 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 <A extends Annotation>
AgetAnnotation(Class<A> acls) final intfinal AnnotatedParametergetParameter(int index) final AnnotationMapgetParameterAnnotations(int index) abstract Class<?> getParameterClass(int index) abstract intabstract TypegetParameterType(int index) protected JavaTypegetType(TypeBindings bindings, TypeVariable<?>[] typeParams) protected AnnotatedParameterreplaceParameterAnnotations(int index, AnnotationMap ann) Method called by parameter object when an augmented instance is created; needs to replace parameter with new instancefinal JavaTyperesolveParameterType(int index, TypeBindings bindings) Method called to fully resolve type of one of parameters, given specified type variable bindings.Methods inherited from class AnnotatedMember
fixAccess, getAllAnnotations, getDeclaringClass, getMember, setValueMethods inherited from class 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:
getAnnotationin 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
-