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 |
generateFromResources(TypeDef model,
javax.tools.JavaFileObject fileObject,
java.lang.String resourceName)
Generates a source file from the specified
TypeDef. |
void |
generateFromResources(TypeDef model,
java.lang.String resourceName)
Generates a source file from the specified
TypeDef. |
void |
generateFromStringTemplate(TypeDef model,
javax.tools.JavaFileObject fileObject,
java.lang.String content)
Generates a source file from the specified
TypeDef. |
void |
generateFromStringTemplate(TypeDef model,
java.lang.String content)
Generates a source file from the specified
TypeDef. |
void |
generateFromStringTemplateAndDetermineOutput(TypeDef model,
java.lang.String content)
Generates a source file from the specified
TypeDef. |
protected CodeGeneratorContext context
public void generateFromResources(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.IOException - If it fails to create the source file.public void generateFromResources(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.IOException - If it fails to create the source file.public void generateFromStringTemplate(TypeDef model, java.lang.String content) throws java.io.IOException
TypeDef.model - The model of the class to generate.content - The template to use.java.io.IOException - If it fails to create the source file.public void generateFromStringTemplate(TypeDef model, javax.tools.JavaFileObject fileObject, java.lang.String content) throws java.io.IOException
TypeDef.model - The model of the class to generate.fileObject - Where to save the generated class.content - The template to use.java.io.IOException - If it fails to create the source file.public void generateFromStringTemplateAndDetermineOutput(TypeDef model, java.lang.String content) throws java.io.IOException
TypeDef.model - The model of the class to generate.content - The template to use.java.io.IOException - If it fails to create the source file.Copyright © 2018. All Rights Reserved.