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(TypeDef model,
JavaFileObject fileObject,
String resourceName)
Generates a source file from the specified
TypeDef. |
void |
generateFromClazz(TypeDef model,
String resourceName)
Generates a source file from the specified
TypeDef. |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized, processprotected CodeGeneratorContext context
public void generateFromClazz(TypeDef model, String resourceName) throws IOException
TypeDef.model - The model of the class to generate.resourceName - The template to use.IOExceptionpublic void generateFromClazz(TypeDef model, JavaFileObject fileObject, String resourceName) throws IOException
TypeDef.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.