Class AnnotatedClassDescriptor
java.lang.Object
org.apache.drill.common.scanner.persistence.AnnotatedClassDescriptor
describe a class that was annotated with one of the configured annotations
-
Constructor Summary
ConstructorDescriptionAnnotatedClassDescriptor
(String className, List<AnnotationDescriptor> annotations, List<FieldDescriptor> fields) -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation
(Class<?> clazz) <T> T
getAnnotationProxy
(Class<T> clazz) toString()
-
Constructor Details
-
AnnotatedClassDescriptor
public AnnotatedClassDescriptor(String className, List<AnnotationDescriptor> annotations, List<FieldDescriptor> fields)
-
-
Method Details
-
getClassName
- Returns:
- the fully qualified name of the annotated class
-
getAnnotations
- Returns:
- the class level annotations
-
getFields
- Returns:
- the fields declared by the class
-
getAnnotation
- Parameters:
clazz
- the annotation type- Returns:
- the corresponding annotation descriptor
-
getAnnotationProxy
- Parameters:
clazz
- the annotation type- Returns:
- a bytecode based implementation of the annotation
-
toString
-