public class PropertyRegistrarClassGenerator extends Object
| Constructor and Description |
|---|
PropertyRegistrarClassGenerator(CompileUnit compUnit,
Class<?> generatingClass,
Calendar runDate)
Create a new instance w all info needed to generateSource a PropertyRegistrar file.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildGeneratedClassFullName() |
protected String |
buildGeneratedClassSimpleName() |
protected String |
buildPackageString() |
protected String |
buildRegistrationAddsString() |
protected String |
buildRunDateString() |
String |
generateSource() |
String |
getTemplate() |
String |
getTemplatePath() |
public PropertyRegistrarClassGenerator(CompileUnit compUnit, Class<?> generatingClass, Calendar runDate)
compUnit - CompileUnit instance w/ all needed class and property infogeneratingClass - The class (likely an AnnotationProcessor) that will be annotated as the generatorrunDate - The Calendar date-time of the run, used for annotation.
Passed in so all generated files can have the same timestamp.public String getTemplatePath()
protected String buildPackageString()
protected String buildGeneratedClassSimpleName()
protected String buildGeneratedClassFullName()
protected String buildRunDateString()
protected String buildRegistrationAddsString()
Copyright © 2017. All rights reserved.