Class FixedFormatProcessor

  • All Implemented Interfaces:
    Processor

    @SupportedAnnotationTypes("com.ancientprogramming.fixedformat4j.annotation.Record")
    public class FixedFormatProcessor
    extends AbstractProcessor
    Optional compile-time validator for @Record classes.

    Replicates the statically decidable subset of the runtime annotation validation performed by FixedFormatManagerImpl on first use of a record class, so misconfigurations surface as javac errors instead of runtime FixedFormatExceptions. 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