Class ConstExprProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
io.github.connellite.constexpr.processor.ConstExprProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("io.github.connellite.constexpr.ConstExpr")
@SupportedOptions("constexpr.skip")
public class ConstExprProcessor
extends AbstractProcessor
Annotation processor discovered via
META-INF/services/javax.annotation.processing.Processor.
- javac / IntelliJ /
JavaCompiler: intercepts.classoutput streams (Lombok-style). - Fallback: post-compile scan on the final AP round.
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReports the latest source version the running JDK supports rather than a fixed release.voidinit(ProcessingEnvironment processingEnv) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
Constructor Details
-
ConstExprProcessor
public ConstExprProcessor()
-
-
Method Details
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
getSupportedSourceVersion
Reports the latest source version the running JDK supports rather than a fixed release. This mirrors Project Lombok and prevents javac from emitting a "Supported source version ... less than -source" warning when compiling with a newer--release/-sourcelevel.- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-