Class MapperGeneratorProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
io.github.opensabe.mapstruct.processor.FreeMarkerProcessor
io.github.opensabe.mapstruct.processor.MapperGeneratorProcessor
- All Implemented Interfaces:
Processor
@SupportedSourceVersion(RELEASE_21)
@SupportedAnnotationTypes("io.github.opensabe.mapstruct.core.Binding")
public class MapperGeneratorProcessor
extends FreeMarkerProcessor
根据
Binding注解,自动生成相应的Mapper- Author:
- heng.ma
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(ProcessingEnvironment processingEnv) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class io.github.opensabe.mapstruct.processor.FreeMarkerProcessor
writeClassMethods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
Constructor Details
-
MapperGeneratorProcessor
public MapperGeneratorProcessor()
-
-
Method Details
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classFreeMarkerProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-