|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.annotation.processing.AbstractProcessor
org.nuiton.jaxx.action.ActionAnnotationProcessing
@SupportedAnnotationTypes(value="org.nuiton.jaxx.action.*") @SupportedSourceVersion(value=RELEASE_6) @SupportedOptions(value="jaxx.verbose") public class ActionAnnotationProcessing
| Field Summary | |
|---|---|
protected Properties |
actions
the map of actions processed, keys are the action commaned and values are fqn of implementations |
protected String |
actionsFileLocation
the relative path where to store actions mapping, will be complete with the name of base action to use |
protected AnnotationValueVisitor<Object,Void> |
annotationValueExtractor
Extractor of values of annotations found |
protected TypeElement |
baseActionElement
the type element of the base action to be used by ActionProvider |
protected String |
baseFQN
the fqn of the base action class to be used |
protected List<String> |
processedClass
the list of class processed by the processor |
protected String |
providerDeclarationLocation
the ActionProvider service declaration relative path |
protected String |
providerFQN
the fqn of the action provider to generate |
protected boolean |
verbose
verbose flag (can be activated by passing an annotation parameter to compiler via -Ai18n.verbose) |
| Fields inherited from class javax.annotation.processing.AbstractProcessor |
|---|
processingEnv |
| Constructor Summary | |
|---|---|
ActionAnnotationProcessing()
|
|
| Method Summary | |
|---|---|
protected String |
findMappingFile()
|
protected String[] |
getActionNames(AnnotationMirror element)
Obtain the array of names to be used by the annotation |
protected AnnotationValueVisitor<Object,Void> |
getAnnotationValueExtractor()
|
void |
init(ProcessingEnvironment processingEnv)
|
protected Properties |
loadOldActionMapping()
|
protected void |
parseOptions()
|
protected void |
printDebug(String msg)
|
protected void |
printInfo(String msg)
|
protected void |
printWarning(String msg)
|
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv)
|
protected boolean |
registerActionsForClass(TypeMirror annotationType,
Element e)
|
protected void |
writeActionMapping()
|
protected void |
writeProviderClass()
|
protected void |
writeProviderServiceDeclaration()
|
| Methods inherited from class javax.annotation.processing.AbstractProcessor |
|---|
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String providerDeclarationLocation
ActionProvider service declaration relative path
protected String actionsFileLocation
protected boolean verbose
-Ai18n.verbose)
protected List<String> processedClass
protected Properties actions
protected AnnotationValueVisitor<Object,Void> annotationValueExtractor
protected TypeElement baseActionElement
ActionProvider
protected String providerFQN
protected String baseFQN
| Constructor Detail |
|---|
public ActionAnnotationProcessing()
| Method Detail |
|---|
public void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessor
protected String findMappingFile()
throws IOException
IOException
protected boolean registerActionsForClass(TypeMirror annotationType,
Element e)
protected void parseOptions()
protected void writeProviderClass()
throws IOException,
javassist.NotFoundException,
javassist.CannotCompileException,
ClassNotFoundException
IOException
javassist.NotFoundException
javassist.CannotCompileException
ClassNotFoundException
protected void writeProviderServiceDeclaration()
throws IOException
IOException
protected void writeActionMapping()
throws IOException
IOException
protected Properties loadOldActionMapping()
throws IOException
IOExceptionprotected String[] getActionNames(AnnotationMirror element)
element - the dictonnary of values found in a annotation
protected AnnotationValueVisitor<Object,Void> getAnnotationValueExtractor()
protected void printWarning(String msg)
protected void printInfo(String msg)
protected void printDebug(String msg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||