public class BackedAnnotatedParameter<X> extends BackedAnnotated implements AnnotatedParameter<X>, Serializable
Constructor and Description |
---|
BackedAnnotatedParameter(Type baseType,
Annotation[] annotations,
int position,
BackedAnnotatedCallable<X,?> declaringCallable,
SharedObjectCache sharedObjectCache) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
protected AnnotatedElement |
getAnnotatedElement() |
<T extends Annotation> |
getAnnotation(Class<T> annotationType)
Get program element annotation of a certain annotation type.
|
Set<Annotation> |
getAnnotations()
Get all annotations of the program element.
|
BackedAnnotatedCallable<X,?> |
getDeclaringCallable()
Get the declaring method or constructor.
|
int |
getPosition()
Get the position of the parameter in the method or constructor argument list.
|
protected ReflectionCache |
getReflectionCache() |
int |
hashCode() |
protected LazyValueHolder<Set<Type>> |
initTypeClosure(Type baseType,
SharedObjectCache cache) |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
static <X> AnnotatedParameter<X> |
of(Type baseType,
Annotation[] annotations,
int position,
BackedAnnotatedCallable<X,?> declaringCallable,
SharedObjectCache sharedObjectCache) |
String |
toString() |
getTypeClosure
getBaseType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBaseType, getTypeClosure
public BackedAnnotatedParameter(Type baseType, Annotation[] annotations, int position, BackedAnnotatedCallable<X,?> declaringCallable, SharedObjectCache sharedObjectCache)
public static <X> AnnotatedParameter<X> of(Type baseType, Annotation[] annotations, int position, BackedAnnotatedCallable<X,?> declaringCallable, SharedObjectCache sharedObjectCache)
protected LazyValueHolder<Set<Type>> initTypeClosure(Type baseType, SharedObjectCache cache)
initTypeClosure
in class BackedAnnotated
public int getPosition()
AnnotatedParameter
Get the position of the parameter in the method or constructor argument list.
getPosition
in interface AnnotatedParameter<X>
public BackedAnnotatedCallable<X,?> getDeclaringCallable()
AnnotatedParameter
Get the declaring method or constructor.
getDeclaringCallable
in interface AnnotatedParameter<X>
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
Annotated
Get program element annotation of a certain annotation type.
getAnnotation
in interface Annotated
T
- the type of the annotationannotationType
- the class of the annotation typepublic Set<Annotation> getAnnotations()
Annotated
Get all annotations of the program element.
getAnnotations
in interface Annotated
getAnnotations
in class BackedAnnotated
protected AnnotatedElement getAnnotatedElement()
getAnnotatedElement
in class BackedAnnotated
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Annotated
Determine if the program element has an annotation of a certain annotation type.
isAnnotationPresent
in interface Annotated
annotationType
- the annotation type to check forprotected ReflectionCache getReflectionCache()
getReflectionCache
in class BackedAnnotated
Copyright © 2013 Seam Framework. All Rights Reserved.