public class JvmAnnotation extends java.lang.Object implements Annotation
Annotation
where JVM-based reflection is supportedModifier and Type | Field and Description |
---|---|
java.lang.annotation.Annotation |
annotation |
Constructor and Description |
---|
JvmAnnotation(java.lang.annotation.Annotation annotation) |
Modifier and Type | Method and Description |
---|---|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationType)
Returns the underlying
Annotation value |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getAnnotationType()
Returns the
Annotation class for this annotation |
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)
Annotation
Annotation
valuegetAnnotation
in interface Annotation
T
- The annotation typeannotationType
- The annotation classAnnotation
valuepublic java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()
Annotation
Annotation
class for this annotationgetAnnotationType
in interface Annotation
Annotation
class implementation