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
ElementType s 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, wait
getAnnotationType, getValue, prepare
public RetentionPolicy getRetention()
AnnotationDescription
getRetention
in interface AnnotationDescription
public Set<ElementType> getElementTypes()
AnnotationDescription
ElementType
s that can declare this annotation.getElementTypes
in interface AnnotationDescription
public boolean isInherited()
AnnotationDescription
isInherited
in interface AnnotationDescription
true
if this annotation is inherited.Inherited
public boolean isDocumented()
AnnotationDescription
isDocumented
in interface AnnotationDescription
true
if this annotation is documented.Documented
public <T> T getValue(MethodDescription.InDefinedShape methodDescription, Class<T> type)
AnnotationDescription
AnnotationDescription
.getValue
in interface AnnotationDescription
T
- 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.