public abstract class JavaGeneratingProcessor
extends javax.annotation.processing.AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
protected CodeGeneratorContext |
context |
| Constructor and Description |
|---|
JavaGeneratingProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateFromClazz(TypeDef model,
javax.tools.JavaFileObject fileObject,
java.lang.String resourceName)
Generates a source file from the specified
TypeDef. |
void |
generateFromClazz(TypeDef model,
java.lang.String resourceName)
Generates a source file from the specified
TypeDef. |
protected CodeGeneratorContext context
public void generateFromClazz(TypeDef model, java.lang.String resourceName) throws java.io.IOException
TypeDef.model - The model of the class to generate.resourceName - The template to use.java.io.IOExceptionpublic void generateFromClazz(TypeDef model, javax.tools.JavaFileObject fileObject, java.lang.String resourceName) throws java.io.IOException
TypeDef.model - The model of the class to generate.fileObject - Where to save the generated class.resourceName - The template to use.java.io.IOExceptionCopyright © 2018. All Rights Reserved.