public abstract static class AnnotationDescription.AbstractAnnotationDescription extends Object implements AnnotationDescription
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationDescription.AbstractAnnotationDescription.ForPrepared<S extends Annotation>
An abstract implementation of a loadable annotation description.
|
AnnotationDescription.AbstractAnnotationDescription, AnnotationDescription.EnumerationValue, AnnotationDescription.ForLoadedAnnotation<S extends Annotation>, AnnotationDescription.Loadable<S extends Annotation>
Constructor and Description |
---|
AbstractAnnotationDescription() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
<T> T |
getValue(MethodDescription 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() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotationType, getValue, prepare
public <T> T getValue(MethodDescription 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–2015. All rights reserved.