public class BackedAnnotatedParameter<X> extends BackedAnnotated implements AnnotatedParameter<X>, ExperimentalAnnotatedParameter<X>, java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static <X> java.util.List<AnnotatedParameter<X>> |
forExecutable(java.lang.reflect.Executable executable,
BackedAnnotatedCallable<X,?> declaringCallable,
SharedObjectCache cache) |
protected java.lang.reflect.AnnotatedElement |
getAnnotatedElement() |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationType)
Get program element annotation of a certain annotation type.
|
java.util.Set<java.lang.annotation.Annotation> |
getAnnotations()
Get all annotations of the program element.
|
BackedAnnotatedCallable<X,?> |
getDeclaringCallable()
Get the declaring method or constructor.
|
java.lang.reflect.Parameter |
getJavaParameter()
Get the underlying
Parameter. |
int |
getPosition()
Get the position of the parameter in the method or constructor argument list.
|
protected ReflectionCache |
getReflectionCache() |
int |
hashCode() |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
static <X> AnnotatedParameter<X> |
of(java.lang.reflect.Parameter parameter,
int position,
BackedAnnotatedCallable<X,?> declaringCallable,
SharedObjectCache sharedObjectCache) |
java.lang.String |
toString() |
getTypeClosure, initTypeClosuregetBaseTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBaseType, getTypeClosuregetAnnotationsByTypepublic static <X> java.util.List<AnnotatedParameter<X>> forExecutable(java.lang.reflect.Executable executable, BackedAnnotatedCallable<X,?> declaringCallable, SharedObjectCache cache)
public static <X> AnnotatedParameter<X> of(java.lang.reflect.Parameter parameter, int position, BackedAnnotatedCallable<X,?> declaringCallable, SharedObjectCache sharedObjectCache)
public int getPosition()
AnnotatedParameterGet the position of the parameter in the method or constructor argument list.
getPosition in interface AnnotatedParameter<X>public java.lang.reflect.Parameter getJavaParameter()
ExperimentalAnnotatedParameterParameter.getJavaParameter in interface ExperimentalAnnotatedParameter<X>Parameterpublic BackedAnnotatedCallable<X,?> getDeclaringCallable()
AnnotatedParameterGet the declaring method or constructor.
getDeclaringCallable in interface AnnotatedParameter<X>public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)
AnnotatedGet program element annotation of a certain annotation type.
getAnnotation in interface AnnotatedT - the type of the annotationannotationType - the class of the annotation typepublic java.util.Set<java.lang.annotation.Annotation> getAnnotations()
AnnotatedGet all annotations of the program element.
getAnnotations in interface AnnotatedgetAnnotations in class BackedAnnotatedprotected java.lang.reflect.AnnotatedElement getAnnotatedElement()
getAnnotatedElement in class BackedAnnotatedpublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedDetermine if the program element has an annotation of a certain annotation type.
isAnnotationPresent in interface AnnotatedannotationType - the annotation type to check forpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectprotected ReflectionCache getReflectionCache()
getReflectionCache in class BackedAnnotatedCopyright © 2014. All Rights Reserved.