AnnotatedConstructor
, AnnotatedMethod
public abstract class AnnotatedWithParams extends AnnotatedMember
Modifier and Type | Field | Description |
---|---|---|
protected AnnotationMap[] |
_paramAnnotations |
Annotations associated with parameters of the annotated
entity (method or constructor parameters)
|
_annotations
Modifier | Constructor | Description |
---|---|---|
protected |
AnnotatedWithParams(AnnotationMap annotations,
AnnotationMap[] paramAnnotations) |
Modifier and Type | Method | Description |
---|---|---|
void |
addIfNotPresent(java.lang.annotation.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(java.lang.annotation.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,
java.lang.annotation.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 java.lang.Object |
call() |
Method that can be used to (try to) call this object without arguments.
|
abstract java.lang.Object |
call(java.lang.Object[] args) |
Method that can be used to (try to) call this object with specified arguments.
|
abstract java.lang.Object |
call1(java.lang.Object arg) |
Method that can be used to (try to) call this object with single arguments.
|
<A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> acls) |
|
int |
getAnnotationCount() |
|
AnnotatedParameter |
getParameter(int index) |
|
AnnotationMap |
getParameterAnnotations(int index) |
|
abstract java.lang.Class<?> |
getParameterClass(int index) |
|
abstract int |
getParameterCount() |
|
abstract java.lang.reflect.Type |
getParameterType(int index) |
|
protected JavaType |
getType(TypeBindings bindings,
java.lang.reflect.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.
|
getAnnotated, getGenericType, getModifiers, getName, getRawType, getType, hasAnnotation, isPublic, withAnnotations, withFallBackAnnotationsFrom
fixAccess, getAllAnnotations, getDeclaringClass, getMember, setValue
protected final AnnotationMap[] _paramAnnotations
protected AnnotatedWithParams(AnnotationMap annotations, AnnotationMap[] paramAnnotations)
public final void addOrOverride(java.lang.annotation.Annotation a)
public final void addOrOverrideParam(int paramIndex, java.lang.annotation.Annotation a)
public final void addIfNotPresent(java.lang.annotation.Annotation a)
protected AnnotatedParameter replaceParameterAnnotations(int index, AnnotationMap ann)
protected JavaType getType(TypeBindings bindings, java.lang.reflect.TypeVariable<?>[] typeParams)
public final <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.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 java.lang.Class<?> getParameterClass(int index)
public abstract java.lang.reflect.Type getParameterType(int index)
public final JavaType resolveParameterType(int index, TypeBindings bindings)
public final int getAnnotationCount()
public abstract java.lang.Object call() throws java.lang.Exception
Note: only works for constructors and static methods.
java.lang.Exception
public abstract java.lang.Object call(java.lang.Object[] args) throws java.lang.Exception
Note: only works for constructors and static methods.
java.lang.Exception
public abstract java.lang.Object call1(java.lang.Object arg) throws java.lang.Exception
Note: only works for constructors and static methods.
java.lang.Exception