Package org.nuxeo.runtime.annotations
Class AnnotatedClass<T>
- java.lang.Object
-
- org.nuxeo.runtime.annotations.AnnotatedClass<T>
-
public class AnnotatedClass<T> extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Class<? extends Annotation>,Annotation>
annotations
protected Class<T>
clazz
protected Map<Method,AnnotatedMethod>
methods
protected AnnotatedClass<?>
superClass
-
Constructor Summary
Constructors Constructor Description AnnotatedClass(Class<T> clazz)
-
Method Summary
-
-
-
Field Detail
-
superClass
protected AnnotatedClass<?> superClass
-
annotations
protected final Map<Class<? extends Annotation>,Annotation> annotations
-
methods
protected final Map<Method,AnnotatedMethod> methods
-
-
Method Detail
-
getAnnotatedClass
public Class<?> getAnnotatedClass()
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> annotationClass)
-
getDeclaredAnnotation
public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationClass)
-
getAnnotations
public Annotation[] getAnnotations()
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
-
isDeclaringAnnotation
public boolean isDeclaringAnnotation(Class<? extends Annotation> annotationClass)
-
getAnnotatedMethod
public AnnotatedMethod getAnnotatedMethod(Method method)
-
getAnnotatedMethod
public AnnotatedMethod getAnnotatedMethod(String name, Class<?>... parameterTypes) throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
getDeclaredAnnotatedMethod
public AnnotatedMethod getDeclaredAnnotatedMethod(Method method)
-
hasAnnotatedMethods
public boolean hasAnnotatedMethods()
-
isDeclaringAnnotatedMethods
public boolean isDeclaringAnnotatedMethods()
-
getAnnotatedMethods
public AnnotatedMethod[] getAnnotatedMethods()
-
getDeclaredAnnotatedMethods
public AnnotatedMethod[] getDeclaredAnnotatedMethods()
-
getAnnotatedMethods
public AnnotatedMethod[] getAnnotatedMethods(Class<? extends Annotation> annotationClass)
-
getDeclaredAnnotatedMethods
public AnnotatedMethod[] getDeclaredAnnotatedMethods(Class<? extends Annotation> annotationClass)
-
addMethod
public void addMethod(AnnotatedMethod method)
-
-