public abstract class AnnotatedWithParams extends AnnotatedMember
Modifier and Type | Field and Description |
---|---|
protected AnnotationMap[] |
_paramAnnotations
Annotations associated with parameters of the annotated
entity (method or constructor parameters)
|
_annotations
Modifier | Constructor and Description |
---|---|
protected |
AnnotatedWithParams(AnnotationMap annotations,
AnnotationMap[] paramAnnotations) |
Modifier and Type | Method and Description |
---|---|
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 |
call(Object[] args)
Method that can be used to (try to) call this object with specified arguments.
|
abstract Object |
call1(Object arg)
Method that can be used to (try to) call this object with single arguments.
|
<A extends Annotation> |
getAnnotation(Class<A> acls) |
int |
getAnnotationCount() |
abstract Type |
getGenericParameterType(int index) |
AnnotatedParameter |
getParameter(int index) |
AnnotationMap |
getParameterAnnotations(int index) |
abstract int |
getParameterCount() |
abstract Class<?> |
getRawParameterType(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 instance
|
JavaType |
resolveParameterType(int index,
TypeBindings bindings)
Method called to fully resolve type of one of parameters, given
specified type variable bindings.
|
addIfNotPresent, addOrOverride, annotations, fixAccess, getAllAnnotations, getDeclaringClass, getMember, getValue, setValue
getAnnotated, getGenericType, getModifiers, getName, getRawType, getType, hasAnnotation, isPublic, withAnnotations, withFallBackAnnotationsFrom
protected final AnnotationMap[] _paramAnnotations
protected AnnotatedWithParams(AnnotationMap annotations, AnnotationMap[] paramAnnotations)
public final void addOrOverrideParam(int paramIndex, Annotation a)
protected AnnotatedParameter replaceParameterAnnotations(int index, AnnotationMap ann)
protected JavaType getType(TypeBindings bindings, TypeVariable<?>[] typeParams)
public final <A extends Annotation> A getAnnotation(Class<A> acls)
getAnnotation
in class Annotated
public final AnnotationMap getParameterAnnotations(int index)
public final AnnotatedParameter getParameter(int index)
public abstract int getParameterCount()
public abstract Class<?> getRawParameterType(int index)
public abstract Type getGenericParameterType(int index)
public final JavaType resolveParameterType(int index, TypeBindings bindings)
public final int getAnnotationCount()
public abstract Object call() throws Exception
Note: only works for constructors and static methods.
Exception
public abstract Object call(Object[] args) throws Exception
Note: only works for constructors and static methods.
Exception
public abstract Object call1(Object arg) throws Exception
Note: only works for constructors and static methods.
Exception
Copyright © 2014-2015 FasterXML. All Rights Reserved.