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 |
addIfNotPresent(Annotation a)
Method called to augment annotations, by adding specified
annotation if and only if it is not yet present in the
annotation map we have.
|
void |
addOrOverride(Annotation a)
Method called to override a class annotation, usually due to a mix-in
annotation masking or overriding an annotation 'real' class
|
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() |
AnnotatedParameter |
getParameter(int index) |
AnnotationMap |
getParameterAnnotations(int index) |
abstract Class<?> |
getParameterClass(int index) |
abstract int |
getParameterCount() |
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 instance
|
JavaType |
resolveParameterType(int index,
TypeBindings bindings)
Method called to fully resolve type of one of parameters, given
specified type variable bindings.
|
fixAccess, getAllAnnotations, getDeclaringClass, getMember, setValue
getAnnotated, getGenericType, getModifiers, getName, getRawType, getType, hasAnnotation, isPublic, withAnnotations, withFallBackAnnotationsFrom
protected final AnnotationMap[] _paramAnnotations
protected AnnotatedWithParams(AnnotationMap annotations, AnnotationMap[] paramAnnotations)
public final void addOrOverride(Annotation a)
public final void addOrOverrideParam(int paramIndex, Annotation a)
public final void addIfNotPresent(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<?> getParameterClass(int index)
public abstract Type getParameterType(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