Package io.determann.shadow.api
Class ShadowProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
io.determann.shadow.api.ShadowProcessor
- All Implemented Interfaces:
Processor
Extend this class and implement
process(ShadowApi) for the easiest way to use the ShadowApi.
AnnotationProcessing happens in rounds. A round contains every processor. A new Round is triggered when an Annotation processor generates new sources.
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNeeds to be at least the version of the compiled code. otherwise the processor will be ignoredabstract voidOverride this method if you want to use theShadowApi.booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Intercepts the process call and initializes theShadowApi.Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, init, isInitialized
-
Constructor Details
-
ShadowProcessor
public ShadowProcessor()
-
-
Method Details
-
getSupportedAnnotationTypes
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor- Overrides:
getSupportedAnnotationTypesin classAbstractProcessor
-
getSupportedSourceVersion
Needs to be at least the version of the compiled code. otherwise the processor will be ignored- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
process
Intercepts the process call and initializes theShadowApi. If you want to use theShadowApidon't override this method.- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
process
Override this method if you want to use theShadowApi. This Method can be called many times during compilation.
-