Serializable
AnnotatedConstructor
, AnnotatedMethod
, CreatorCollector.StdTypeConstructor
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, _typeContext
Modifier | Constructor | Description |
---|---|---|
protected |
AnnotatedWithParams(AnnotatedWithParams base,
AnnotationMap[] paramAnnotations) |
|
protected |
AnnotatedWithParams(TypeResolutionContext ctxt,
AnnotationMap annotations,
AnnotationMap[] paramAnnotations) |
Modifier and Type | Method | 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.
|
int |
getAnnotationCount() |
|
abstract Type |
getGenericParameterType(int index) |
Deprecated.
Since 2.7, remove in 2.9
|
AnnotatedParameter |
getParameter(int index) |
|
AnnotationMap |
getParameterAnnotations(int index) |
|
abstract int |
getParameterCount() |
|
abstract JavaType |
getParameterType(int index) |
|
abstract Class<?> |
getRawParameterType(int index) |
|
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
|
equals, getAnnotated, getGenericType, getModifiers, getName, getRawType, getType, getType, hashCode, isPublic, toString
annotations, fixAccess, getAllAnnotations, getAnnotation, getDeclaringClass, getFullName, getMember, getTypeContext, getValue, hasAnnotation, hasOneOf, setValue, withAnnotations
protected final AnnotationMap[] _paramAnnotations
protected AnnotatedWithParams(TypeResolutionContext ctxt, AnnotationMap annotations, AnnotationMap[] paramAnnotations)
protected AnnotatedWithParams(AnnotatedWithParams base, AnnotationMap[] paramAnnotations)
public final void addOrOverrideParam(int paramIndex, Annotation a)
protected AnnotatedParameter replaceParameterAnnotations(int index, AnnotationMap ann)
public final AnnotationMap getParameterAnnotations(int index)
public final AnnotatedParameter getParameter(int index)
public abstract int getParameterCount()
public abstract Class<?> getRawParameterType(int index)
public abstract JavaType getParameterType(int index)
@Deprecated public abstract Type getGenericParameterType(int index)
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 © 2008–2018. All rights reserved.