|
||||||||||
| 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 java.util.Properties |
actions
the map of actions processed, keys are the action commaned and values are fqn of implementations |
protected java.lang.String |
actionsFileLocation
the relative path where to store actions mapping, will be complete with the name of base action to use |
protected javax.lang.model.element.AnnotationValueVisitor<java.lang.Object,java.lang.Void> |
annotationValueExtractor
Extractor of values of annotations found |
protected javax.lang.model.element.TypeElement |
baseActionElement
the type element of the base action to be used by ActionProvider |
protected java.lang.String |
baseFQN
the fqn of the base action class to be used |
protected java.util.List<java.lang.String> |
processedClass
the list of class processed by the processor |
protected java.lang.String |
providerDeclarationLocation
the ActionProvider service declaration relative path |
protected java.lang.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 java.lang.String |
findMappingFile()
|
protected java.lang.String[] |
getActionNames(javax.lang.model.element.AnnotationMirror element)
Obtain the array of names to be used by the annotation |
protected javax.lang.model.element.AnnotationValueVisitor<java.lang.Object,java.lang.Void> |
getAnnotationValueExtractor()
|
void |
init(javax.annotation.processing.ProcessingEnvironment processingEnv)
|
protected java.util.Properties |
loadOldActionMapping()
|
protected void |
parseOptions()
|
protected void |
printDebug(java.lang.String msg)
|
protected void |
printInfo(java.lang.String msg)
|
protected void |
printWarning(java.lang.String msg)
|
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv)
|
protected boolean |
registerActionsForClass(javax.lang.model.type.TypeMirror annotationType,
javax.lang.model.element.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 java.lang.String providerDeclarationLocation
ActionProvider service declaration relative path
protected java.lang.String actionsFileLocation
protected boolean verbose
-Ai18n.verbose)
protected java.util.List<java.lang.String> processedClass
protected java.util.Properties actions
protected javax.lang.model.element.AnnotationValueVisitor<java.lang.Object,java.lang.Void> annotationValueExtractor
protected javax.lang.model.element.TypeElement baseActionElement
ActionProvider
protected java.lang.String providerFQN
protected java.lang.String baseFQN
| Constructor Detail |
|---|
public ActionAnnotationProcessing()
| Method Detail |
|---|
public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
init in interface javax.annotation.processing.Processorinit in class javax.annotation.processing.AbstractProcessor
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv)
process in interface javax.annotation.processing.Processorprocess in class javax.annotation.processing.AbstractProcessor
protected java.lang.String findMappingFile()
throws java.io.IOException
java.io.IOException
protected boolean registerActionsForClass(javax.lang.model.type.TypeMirror annotationType,
javax.lang.model.element.Element e)
protected void parseOptions()
protected void writeProviderClass()
throws java.io.IOException,
javassist.NotFoundException,
javassist.CannotCompileException,
java.lang.ClassNotFoundException
java.io.IOException
javassist.NotFoundException
javassist.CannotCompileException
java.lang.ClassNotFoundException
protected void writeProviderServiceDeclaration()
throws java.io.IOException
java.io.IOException
protected void writeActionMapping()
throws java.io.IOException
java.io.IOException
protected java.util.Properties loadOldActionMapping()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String[] getActionNames(javax.lang.model.element.AnnotationMirror element)
element - the dictonnary of values found in a annotation
protected javax.lang.model.element.AnnotationValueVisitor<java.lang.Object,java.lang.Void> getAnnotationValueExtractor()
protected void printWarning(java.lang.String msg)
protected void printInfo(java.lang.String msg)
protected void printDebug(java.lang.String msg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||