public abstract class AbstractAnnotationProcessor<A extends Annotation> extends Object implements AnnotationProcessor<A>
AnnotationProcessor implementations providing common methods.| Constructor and Description |
|---|
AbstractAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
missingAttributeValue(String attribute,
String annotation,
Field field)
Constructs an error message to signal missing annotation attribute value.
|
protected void |
rejectIfEmpty(String value,
String message)
Reject a value (by throwing a
AnnotationProcessingException) if it is empty. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessAnnotationprotected String missingAttributeValue(String attribute, String annotation, Field field)
attribute - the target attributeannotation - the annotation concernedfield - the target fieldprotected void rejectIfEmpty(String value, String message) throws AnnotationProcessingException
AnnotationProcessingException) if it is empty.value - the value to checkmessage - the message of the exceptionAnnotationProcessingException - thrown if the value is emptyCopyright © 2020. All rights reserved.