public class BackedAnnotatedField<X> extends BackedAnnotatedMember<X> implements AnnotatedField<X>, Serializable
BackedAnnotatedMember.BackedAnnotatedMemberSerializationProxy<X,A extends AnnotatedMember<? super X>>| Constructor and Description |
|---|
BackedAnnotatedField(Type baseType,
Field field,
BackedAnnotatedType<X> declaringType,
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.
|
Field |
getJavaMember()
Get the underlying
Field. |
int |
hashCode() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
static <X,Y extends X> |
of(Field field,
BackedAnnotatedType<Y> declaringType,
SharedObjectCache sharedObjectCache) |
String |
toString() |
getDeclaringType, getReflectionCache, isStaticgetAnnotations, getTypeClosure, initTypeClosuregetBaseTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDeclaringType, isStaticgetAnnotations, getBaseType, getTypeClosurepublic BackedAnnotatedField(Type baseType, Field field, BackedAnnotatedType<X> declaringType, SharedObjectCache sharedObjectCache)
public static <X,Y extends X> AnnotatedField<X> of(Field field, BackedAnnotatedType<Y> declaringType, SharedObjectCache sharedObjectCache)
public Field getJavaMember()
AnnotatedField
Get the underlying Field.
getJavaMember in interface AnnotatedField<X>getJavaMember in interface AnnotatedMember<X>Fieldpublic <T extends Annotation> T getAnnotation(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 typeprotected AnnotatedElement getAnnotatedElement()
getAnnotatedElement in class BackedAnnotatedpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
AnnotatedDetermine if the program element has an annotation of a certain annotation type.
isAnnotationPresent in interface AnnotatedannotationType - the annotation type to check forCopyright © 2016. All Rights Reserved.