AnnotationReader that reads annotation from classes,
not from external binding files.
This is meant to be used as a convenient partial implementation.
| Modifier and Type | Field and Description |
|---|---|
| private ErrorHandler |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract String | |
| public final ErrorHandler | |
| public final <A extends Annotation> A | getMethodAnnotation(Class<A> annotation, M getter, M setter, Locatable srcPos)
Implements org. Reads an annotation on a property that consists of a getter and a setter. |
| public boolean | hasMethodAnnotation(Class<? extends Annotation> annotation, String propertyName, M getter, M setter, Locatable srcPos)
Implements org. Checks if the given method has an annotation. |
| public void | setErrorHandler(ErrorHandler errorHandler)
Implements org. Sets the error handler that receives errors found during reading annotations. |
| errorHandler | back to summary |
|---|---|
| private ErrorHandler errorHandler | |
| AbstractInlineAnnotationReaderImpl | back to summary |
|---|---|
| protected AbstractInlineAnnotationReaderImpl() Default constructor. | |
| fullName | back to summary |
|---|---|
| protected abstract String fullName(M m) Gets the fully-qualified name of the method. Used for error messages. | |
| getErrorHandler | back to summary |
|---|---|
| public final ErrorHandler getErrorHandler() Always return a non-null valid | |
| getMethodAnnotation | back to summary |
|---|---|
| public final <A extends Annotation> A getMethodAnnotation(Class<A> annotation, M getter, M setter, Locatable srcPos) Implements org. Doc from org. Reads an annotation on a property that consists of a getter and a setter.
| |
| hasMethodAnnotation | back to summary |
|---|---|
| public boolean hasMethodAnnotation(Class<? extends Annotation> annotation, String propertyName, M getter, M setter, Locatable srcPos) Implements org. Doc from org. Checks if the given method has an annotation.
| |
| setErrorHandler | back to summary |
|---|---|
| public void setErrorHandler(ErrorHandler errorHandler) Implements org. Doc from org. Sets the error handler that receives errors found during reading annotations.
| |