public class BaseTargetAwareAnnotationProcessingService extends BaseAnnotationProcessingService implements TargetAwareAnnotationProcessingService
AnnotationProcessingServices.AnnotationProcessingService| Constructor and Description |
|---|
BaseTargetAwareAnnotationProcessingService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotationProcessor(TargetAwareAnnotationProcessor taAnnotationProcessor)
Add an
TargetAwareAnnotationProcessor to the service. |
Set<AnnotationProcessor> |
getAllAnnotationProcessors()
Returns the set of
AnnotationProcessors and TargetAwareAnnotationProcessors
registered with this service. |
Set<TargetAwareAnnotationProcessor> |
getTargetAwareAnnotationProcessors()
Returns the set of
TargetAwareAnnotationProcessors registered with this service. |
<I extends BaseNature,A extends Annotation> |
processAnnotation(I info,
A annotation)
This method acts like it's super method, but also tries to process the annotation with the
TargetAwareAnnotationProcessors. |
<I extends BaseNature,A extends Annotation> |
processAnnotation(I info,
A annotation,
AnnotatedElement target)
The processing action of this service.
|
<I extends BaseNature> |
processAnnotations(I info,
Annotation[] annotations)
This method acts like it's super method, but also tries to process the annotations with the
TargetAwareAnnotationProcessors. |
<I extends BaseNature> |
processAnnotations(I info,
Annotation[] annotations,
AnnotatedElement target)
Calls
AnnotationProcessingService.processAnnotation(BaseNature, Annotation) for each given Annotation. |
addAnnotationProcessor, getAnnotationProcessorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAnnotationProcessor, getAnnotationProcessorspublic BaseTargetAwareAnnotationProcessingService()
public void addAnnotationProcessor(TargetAwareAnnotationProcessor taAnnotationProcessor)
TargetAwareAnnotationProcessor to the service.addAnnotationProcessor in interface TargetAwareAnnotationProcessingServicetaAnnotationProcessor - the TargetAwareAnnotationProcessor to add to this service.addAnnotationProcessor(AnnotationProcessor)public Set<AnnotationProcessor> getAllAnnotationProcessors()
AnnotationProcessors and TargetAwareAnnotationProcessors
registered with this service.getAllAnnotationProcessors in interface TargetAwareAnnotationProcessingServiceAnnotationProcessors registered with this service.TargetAwareAnnotationProcessingService.getAllAnnotationProcessors()public Set<TargetAwareAnnotationProcessor> getTargetAwareAnnotationProcessors()
TargetAwareAnnotationProcessors registered with this service.getTargetAwareAnnotationProcessors in interface TargetAwareAnnotationProcessingServiceTargetAwareAnnotationProcessors registered with this service.TargetAwareAnnotationProcessingService.getTargetAwareAnnotationProcessors()public <I extends BaseNature,A extends Annotation> boolean processAnnotation(I info, A annotation, AnnotatedElement target) throws AnnotationTargetException
TargetAwareAnnotationProcessor.processAnnotation(BaseNature, Annotation, AnnotatedElement)
is returned.processAnnotation in interface TargetAwareAnnotationProcessingServiceinfo - the BaseNature (and so its PropertyHolder) that should be filled
with the information readannotation - the annotation to processtarget - the target (AnnotatedElement) of the given annotationAnnotationTargetException - if an annotation is used in a context that is not valid.TargetAwareAnnotationProcessingService.processAnnotation(org.castor.core.nature.BaseNature,
java.lang.annotation.Annotation, java.lang.reflect.AnnotatedElement)public <I extends BaseNature> Annotation[] processAnnotations(I info, Annotation[] annotations, AnnotatedElement target) throws AnnotationTargetException
AnnotationProcessingService.processAnnotation(BaseNature, Annotation) for each given Annotation.processAnnotations in interface TargetAwareAnnotationProcessingServiceinfo - the BaseNature (and so its PropertyHolder) that should be filled
with the information readannotations - the annotations to processtarget - the target (AnnotatedElement) of the given annotationAnnotationTargetException - if an annotation is used in a context that is not valid.TargetAwareAnnotationProcessingService.processAnnotations(org.castor.core.nature.BaseNature,
java.lang.annotation.Annotation[], java.lang.reflect.AnnotatedElement)public <I extends BaseNature,A extends Annotation> boolean processAnnotation(I info, A annotation)
TargetAwareAnnotationProcessors. The processing action of this service. If an annotation is given which is not supported by this
processor false is returned. Otherwise the Annotations specific processor will (try to) process
the Annotation and the result of
AnnotationProcessor.processAnnotation(BaseNature, Annotation) is returned.processAnnotation in interface AnnotationProcessingServiceprocessAnnotation in class BaseAnnotationProcessingServiceinfo - the BaseNature (and so its PropertyHolder) that should be filled
with the information readannotation - the annotation to processBaseAnnotationProcessingService.processAnnotation(org.castor.core.nature.BaseNature,
java.lang.annotation.Annotation)public <I extends BaseNature> Annotation[] processAnnotations(I info, Annotation[] annotations)
TargetAwareAnnotationProcessors. Calls AnnotationProcessingService.processAnnotation(BaseNature, Annotation) for each given Annotation.processAnnotations in interface AnnotationProcessingServiceprocessAnnotations in class BaseAnnotationProcessingServiceinfo - the BaseNature (and so its PropertyHolder) that should be filled
with the information readannotations - the annotations to processorg.castor.core.annotationprocessing.BaseAnnotationProcessingService#processAnnotations(org.castor.core.nature.BaseNature,
java.lang.annotation.Annotation)Copyright © 2016. All rights reserved.