public class BackedAnnotatedConstructor<X> extends BackedAnnotatedCallable<X,Constructor<X>> implements AnnotatedConstructor<X>, Serializable
BackedAnnotatedMember.BackedAnnotatedMemberSerializationProxy<X,A extends AnnotatedMember<? super X>>
Constructor and Description |
---|
BackedAnnotatedConstructor(Constructor<X> constructor,
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.
|
Constructor<X> |
getJavaMember()
Get the underlying
Constructor . |
int |
hashCode() |
protected List<AnnotatedParameter<X>> |
initParameters(Constructor<X> member,
SharedObjectCache sharedObjectCache) |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
static <X> AnnotatedConstructor<X> |
of(Constructor<X> constructor,
BackedAnnotatedType<X> declaringType,
SharedObjectCache sharedObjectCache) |
String |
toString() |
getParameters
getDeclaringType, getReflectionCache, initTypeClosure, isStatic
getAnnotations, getTypeClosure
getBaseType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getParameters
getDeclaringType, isStatic
getAnnotations, getBaseType, getTypeClosure
public BackedAnnotatedConstructor(Constructor<X> constructor, BackedAnnotatedType<X> declaringType, SharedObjectCache sharedObjectCache)
public static <X> AnnotatedConstructor<X> of(Constructor<X> constructor, BackedAnnotatedType<X> declaringType, SharedObjectCache sharedObjectCache)
protected List<AnnotatedParameter<X>> initParameters(Constructor<X> member, SharedObjectCache sharedObjectCache)
initParameters
in class BackedAnnotatedCallable<X,Constructor<X>>
protected AnnotatedElement getAnnotatedElement()
getAnnotatedElement
in class BackedAnnotated
public Constructor<X> getJavaMember()
AnnotatedConstructor
Get the underlying Constructor
.
getJavaMember
in interface AnnotatedConstructor<X>
getJavaMember
in interface AnnotatedMember<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 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 forCopyright © 2014. All Rights Reserved.