public abstract class JavaGeneratingProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
protected CodeGeneratorContext |
context |
processingEnv| Constructor and Description |
|---|
JavaGeneratingProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateFromClazz(JavaClazz model,
JavaFileObject fileObject,
String resourceName)
Generates a source file from the specified
JavaClazz. |
void |
generateFromClazz(JavaClazz model,
String resourceName)
Generates a source file from the specified
JavaClazz.* |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized, processprotected CodeGeneratorContext context
public void generateFromClazz(JavaClazz model, String resourceName) throws IOException
JavaClazz.*model - The model of the class to generate.resourceName - The template to use.IOExceptionpublic void generateFromClazz(JavaClazz model, JavaFileObject fileObject, String resourceName) throws IOException
JavaClazz.model - The model of the class to generate.fileObject - Where to save the generated class.resourceName - The template to use.IOExceptionCopyright © 2016. All Rights Reserved.