Class FixedFormatProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- com.ancientprogramming.fixedformat4j.processor.FixedFormatProcessor
-
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("com.ancientprogramming.fixedformat4j.annotation.Record") public class FixedFormatProcessor extends AbstractProcessor
Optional compile-time validator for@Recordclasses.Replicates the statically decidable subset of the runtime annotation validation performed by
FixedFormatManagerImplon first use of a record class, so misconfigurations surface asjavacerrors instead of runtimeFixedFormatExceptions. The runtime validation is unchanged and remains the safety net for classes compiled without this processor on the processor path.This processor only reports diagnostics. It claims no annotations, generates no code, and adds nothing to the runtime classpath of the consuming project.
- Since:
- 1.9.0
- Author:
- Jacob von Eyben - https://eybenconsult.com
-
-
Field Summary
-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description FixedFormatProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceVersiongetSupportedSourceVersion()booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
-
-
-
-
Method Detail
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
-