Class MittenLibCodegenProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
io.toolisticon.aptk.tools.AbstractAnnotationProcessor
me.bristermitten.mittenlib.codegen.MittenLibCodegenProcessor
- All Implemented Interfaces:
Processor
@SupportedSourceVersion(RELEASE_21)
@AutoService(javax.annotation.processing.Processor.class)
@SupportedOptions("org.gradle.annotation.processing.isolating")
public class MittenLibCodegenProcessor
extends io.toolisticon.aptk.tools.AbstractAnnotationProcessor
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocessAnnotations(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class io.toolisticon.aptk.tools.AbstractAnnotationProcessor
createSupportedAnnotationSet, getAnnotatedElements, getElements, getFiler, getMessager, getSupportedSourceVersion, getTypes, init, process, wrapToArrayMethods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, isInitialized
-
Constructor Details
-
MittenLibCodegenProcessor
public MittenLibCodegenProcessor()
-
-
Method Details
-
getSupportedAnnotationTypes
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor- Overrides:
getSupportedAnnotationTypesin classAbstractProcessor
-
processAnnotations
@DeclareCompilerMessage(code="001",enumValueName="METHOD_BAD_RETURN",message="Method must return the record type ${0}!") @DeclareCompilerMessage(code="002",enumValueName="DUPLICATE_CONSTRUCTOR",message="Constructors must have distinct names, overloading is not allowed") public boolean processAnnotations(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) - Specified by:
processAnnotationsin classio.toolisticon.aptk.tools.AbstractAnnotationProcessor
-