M - the modelpublic abstract class Generator<M extends Model> extends Object
Model.| Modifier and Type | Field and Description |
|---|---|
ProcessingEnvironment |
env |
boolean |
incremental |
Set<String> |
kinds |
String |
name |
| Constructor and Description |
|---|
Generator() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Class<? extends Annotation>> |
annotations() |
String |
filename(M model)
Generate the file name for the
model. |
void |
load(ProcessingEnvironment processingEnv) |
String |
render(M model,
int index,
int size,
Map<String,Object> session)
Render the model
|
public ProcessingEnvironment env
public String name
public boolean incremental
public Collection<Class<? extends Annotation>> annotations()
public void load(ProcessingEnvironment processingEnv)
public String filename(M model)
model.
When the returned value
null, no file is created/ and ends with .java, the file is created as a source file by the annotation processor
and the class will be compiled by the current compilation processresources/ prefix, the file is created as a resource file by the annotation processor using the
remaining suffix value and the file will likely end in the classes directory/ is created relative to the codegen.output directorymodel - the modelnull if no generation should happenCopyright © 2020. All rights reserved.