AnnotationReader implementation that reads annotation inline from Annoation Processing.
| Modifier and Type | Field and Description |
|---|---|
| public static final InlineAnnotationReaderImpl | theInstance
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| theInstance | back to summary |
|---|---|
| public static final InlineAnnotationReaderImpl theInstance The singleton instance. | |
| InlineAnnotationReaderImpl | back to summary |
|---|---|
| private InlineAnnotationReaderImpl() | |
| fullName | back to summary |
|---|---|
| protected String fullName(ExecutableElement m) Implements abstract org. Doc from org. Gets the fully-qualified name of the method. Used for error messages.
| |
| getAllAnnotations | back to summary |
|---|---|
| private Annotation[] getAllAnnotations(Element decl, Locatable srcPos) Gets all the annotations on the given declaration. | |
| getAllFieldAnnotations | back to summary |
|---|---|
| public Annotation[] getAllFieldAnnotations(VariableElement field, Locatable srcPos) Implements org. Doc from org. Gets all the annotations on a field.
| |
| getAllMethodAnnotations | back to summary |
|---|---|
| public Annotation[] getAllMethodAnnotations(ExecutableElement method, Locatable srcPos) Implements org. Doc from org. Gets all the annotations on a method.
| |
| getClassAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getClassAnnotation(Class<A> a, TypeElement clazz, Locatable srcPos) Implements org. Doc from org. Reads an annotation on a class.
| |
| getClassArrayValue | back to summary |
|---|---|
| public TypeMirror[] getClassArrayValue(Annotation a, String name) Implements org. Doc from org. Similar to
| |
| getClassValue | back to summary |
|---|---|
| public TypeMirror getClassValue(Annotation a, String name) Implements org. Doc from org. Reads a value of an annotation that returns a Class object.
Depending on the underlying reflection library, you can't always
obtain the
| |
| getFieldAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getFieldAnnotation(Class<A> a, VariableElement f, Locatable srcPos) Implements org. Doc from org. Reads an annotation on a property that consists of a field.
| |
| getMethodAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getMethodAnnotation(Class<A> a, ExecutableElement method, Locatable srcPos) Implements org.
| |
| getMethodParameterAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getMethodParameterAnnotation(Class<A> a, ExecutableElement m, int paramIndex, Locatable srcPos) Implements org. Doc from org. Reads an annotation on a parameter of the method.
| |
| getPackageAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getPackageAnnotation(Class<A> a, TypeElement clazz, Locatable srcPos) Implements org. Doc from org. Reads an annotation on the package that the given class belongs to.
| |
| hasClassAnnotation | back to summary |
|---|---|
| public boolean hasClassAnnotation(TypeElement clazz, Class<? extends Annotation> annotationType) Implements org. Doc from org. Checks if a class has the annotation.
| |
| hasFieldAnnotation | back to summary |
|---|---|
| public boolean hasFieldAnnotation(Class<? extends Annotation> annotationType, VariableElement f) Implements org. Doc from org. Checks if the given field has an annotation.
| |
| hasMethodAnnotation | back to summary |
|---|---|
| public boolean hasMethodAnnotation(Class<? extends Annotation> a, ExecutableElement method) Implements org.
| |