public final class AnnotationDelegate
extends java.lang.Object
WARNING: Not part of the public API. This class is public only to allow its use within other packages in the ActiveObjects library.
Constructor and Description |
---|
AnnotationDelegate(java.lang.reflect.Method method1,
java.lang.reflect.Method method2) |
Modifier and Type | Method and Description |
---|---|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass)
Returns the annotation for the specified methods starting by
method1 . |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Returns true if an annotation for the specified type is present on any of the methods, else
false . |
public AnnotationDelegate(java.lang.reflect.Method method1, java.lang.reflect.Method method2)
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
method1
.annotationClass
- the annotation type to look upnull
Method.getAnnotation(Class)
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
false
.
This method is designed primarily for convenient access to marker annotations.annotationClass
- the Class object corresponding to the annotation typetrue
if an annotation for the specified annotation type is present on any of the methods, else false
Copyright © 2007-2017. All Rights Reserved.