public abstract static class AnnotationDescription.AbstractBase extends Object implements AnnotationDescription
| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotationDescription.AbstractBase.ForPrepared<S extends Annotation>
An abstract implementation of a loadable annotation description.
|
AnnotationDescription.AbstractBase, AnnotationDescription.AnnotationInvocationHandler<T extends Annotation>, AnnotationDescription.AnnotationValue<T,S>, AnnotationDescription.Builder, AnnotationDescription.ForLoadedAnnotation<S extends Annotation>, AnnotationDescription.Latent, AnnotationDescription.Loadable<S extends Annotation>| Constructor and Description |
|---|
AbstractBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
Set<ElementType> |
getElementTypes()
Returns a set of all
ElementTypes that can declare this annotation. |
RetentionPolicy |
getRetention()
Returns this annotation's retention policy.
|
<T> T |
getValue(MethodDescription.InDefinedShape methodDescription,
Class<T> type)
Returns the value of the given method for this annotation value and performs a casting to the given value.
|
int |
hashCode() |
boolean |
isDocumented()
Checks if this annotation is documented.
|
boolean |
isInherited()
Checks if this annotation is inherited.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotationType, getValue, preparepublic RetentionPolicy getRetention()
AnnotationDescriptiongetRetention in interface AnnotationDescriptionpublic Set<ElementType> getElementTypes()
AnnotationDescriptionElementTypes that can declare this annotation.getElementTypes in interface AnnotationDescriptionpublic boolean isInherited()
AnnotationDescriptionisInherited in interface AnnotationDescriptiontrue if this annotation is inherited.Inheritedpublic boolean isDocumented()
AnnotationDescriptionisDocumented in interface AnnotationDescriptiontrue if this annotation is documented.Documentedpublic <T> T getValue(MethodDescription.InDefinedShape methodDescription, Class<T> type)
AnnotationDescriptionAnnotationDescription.getValue in interface AnnotationDescriptionT - The given type of the return value.methodDescription - The method for the value to be requested.type - The type to which the returned value should be casted.type.Copyright © 2014–2016. All rights reserved.