public abstract class ClassListPropertyFile extends AbstractProcessor
processingEnv| Constructor and Description |
|---|
ClassListPropertyFile() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendProperty(String key,
String value)
This method appends key=value to the output file.
|
abstract String |
getFileName()
Gets the name for the file that will be written by this annotation processor.
|
void |
init(ProcessingEnvironment processingEnv) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
abstract void |
processElement(Element element)
This method will be called for each component class found by this processor.
|
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitializedpublic abstract String getFileName()
public abstract void processElement(Element element) throws IOException
element - The element representing the current component class.IOException - If the component cannot be written to the file.public void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorprotected void appendProperty(String key, String value) throws IOException
key - The full class name of the component to appendvalue - The scope of the component
IOException - If any IO error prevents the writing.Copyright © 2015–2018 Bridje Framework. All rights reserved.