@SupportedSourceVersion(value=RELEASE_8)
@SupportedAnnotationTypes(value="net.datenwerke.dtoservices.dtogenerator.annotations.GenerateDto")
@SupportedOptions(value={"buildDtos","dtoServicePackage","dtoInfoServicePackage","debug","dtoSuperClass","dtoToDisplayDefault","dtoServiceBaseName","dtoIsMainService","dtoMainServicePackage","dtoMainInfoServicePackage"})
public class DtoAnnotationProcessor
extends javax.annotation.processing.AbstractProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUILD_DTOS_OPTION |
static int |
CUT_OFF_CLOBS_SIZE |
static java.lang.String |
DEBUG_OPTION |
static java.lang.String |
DTO_DECORATOR_EXTENSION |
static java.lang.String |
DTO_DISPLAY_STRING_DEFAULT_OPTION |
static java.lang.String |
DTO_EXTENSION |
static java.lang.String |
DTO_INFO_SERVICE_PACKAGE_OPTION |
static java.lang.String |
DTO_MAIN_INFO_SERVICE_PACKAGE |
static java.lang.String |
DTO_MAIN_SERVICE_PACKAGE |
static java.lang.String |
DTO_POSO_MAP_EXTENSION |
static java.lang.String |
DTO_PROPERTY_ACCESS_EXTENSION |
static java.lang.String |
DTO_PROPERTY_PREFIX |
static java.lang.String |
DTO_SERVICE_BASE_NAME_OPTION |
static java.lang.String |
DTO_SERVICE_IS_MAIN_OPTION |
static java.lang.String |
DTO_SERVICE_PACKAGE_OPTION |
static java.lang.String |
DTO_SUPERCLASS_OPTION |
static java.lang.String |
FIELD_MODIFIED_INDICTATOR_POSTFIX |
static java.lang.String |
FIELD_PROPERTY_ACCESSOR_POSTFIX |
static java.lang.String |
name |
static java.lang.String |
version |
Constructor and Description |
---|
DtoAnnotationProcessor() |
Modifier and Type | Method and Description |
---|---|
javax.tools.JavaFileObject |
createSourceFile(java.lang.String fullyQualifiedClassName) |
void |
debug(java.lang.Object o) |
void |
error(java.lang.String msg) |
void |
generateSourceFile(SourceFileGenerator generator) |
java.util.Collection<PosoAnalizer> |
getAnalyzedPosos() |
java.lang.String |
getDtoMainInfoServicePackage() |
java.lang.String |
getDtoMainServicePackage() |
java.lang.String |
getDtoServiceBaseName() |
java.lang.String |
getOptionDtoInfoServicePackage() |
java.lang.String |
getOptionDtoServicePackage() |
java.lang.String |
getOptionDtoSuperClass() |
PosoAnalizer |
getPosoAnalizerFor(javax.lang.model.element.Element element) |
javax.annotation.processing.ProcessingEnvironment |
getProcessingEnvironment() |
void |
init(javax.annotation.processing.ProcessingEnvironment processingEnv)
Initializes the processor.
|
boolean |
isDebug() |
boolean |
isDtoMainserviceOption() |
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv) |
void |
warning(java.lang.Object o) |
public static final java.lang.String DTO_EXTENSION
public static final java.lang.String DTO_POSO_MAP_EXTENSION
public static final java.lang.String DTO_PROPERTY_ACCESS_EXTENSION
public static final java.lang.String DTO_DECORATOR_EXTENSION
public static final java.lang.String DEBUG_OPTION
public static final java.lang.String BUILD_DTOS_OPTION
public static final java.lang.String DTO_SERVICE_PACKAGE_OPTION
public static final java.lang.String DTO_INFO_SERVICE_PACKAGE_OPTION
public static final java.lang.String DTO_SUPERCLASS_OPTION
public static final java.lang.String DTO_DISPLAY_STRING_DEFAULT_OPTION
public static final java.lang.String DTO_SERVICE_BASE_NAME_OPTION
public static final java.lang.String DTO_SERVICE_IS_MAIN_OPTION
public static final java.lang.String DTO_MAIN_SERVICE_PACKAGE
public static final java.lang.String DTO_MAIN_INFO_SERVICE_PACKAGE
public static final java.lang.String DTO_PROPERTY_PREFIX
public static final java.lang.String name
public static final java.lang.String version
public static final int CUT_OFF_CLOBS_SIZE
public static final java.lang.String FIELD_MODIFIED_INDICTATOR_POSTFIX
public static final java.lang.String FIELD_PROPERTY_ACCESSOR_POSTFIX
public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
init
in interface javax.annotation.processing.Processor
init
in class javax.annotation.processing.AbstractProcessor
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)
process
in interface javax.annotation.processing.Processor
process
in class javax.annotation.processing.AbstractProcessor
public void generateSourceFile(SourceFileGenerator generator)
public void debug(java.lang.Object o)
public void warning(java.lang.Object o)
public void error(java.lang.String msg)
public java.lang.String getOptionDtoServicePackage()
public java.lang.String getOptionDtoSuperClass()
public boolean isDebug()
public javax.annotation.processing.ProcessingEnvironment getProcessingEnvironment()
public javax.tools.JavaFileObject createSourceFile(java.lang.String fullyQualifiedClassName) throws java.io.IOException
java.io.IOException
public java.util.Collection<PosoAnalizer> getAnalyzedPosos()
public PosoAnalizer getPosoAnalizerFor(javax.lang.model.element.Element element)
public java.lang.String getOptionDtoInfoServicePackage()
public boolean isDtoMainserviceOption()
public java.lang.String getDtoServiceBaseName()
public java.lang.String getDtoMainServicePackage()
public java.lang.String getDtoMainInfoServicePackage()