Module info.picocli.codegen
Class NativeImageConfigGeneratorProcessor
- java.lang.Object
- 
- javax.annotation.processing.AbstractProcessor
- 
- picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
- 
- picocli.codegen.aot.graalvm.processor.NativeImageConfigGeneratorProcessor
 
 
 
- 
- All Implemented Interfaces:
- Processor
 
 @SupportedOptions({"verbose","project","disable.reflect.config","other.resource.bundles","disable.resource.config","other.resource.patterns","disable.proxy.config","other.proxy.interfaces"}) public class NativeImageConfigGeneratorProcessor extends AbstractCommandSpecProcessor - Since:
- 4.0
- See Also:
- ReflectionConfigGenerator,- ResourceConfigGenerator,- DynamicProxyConfigGenerator
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringBASE_PATHBase path where generated files will be written to: "META-INF/native-image/picocli-generated/".protected List<picocli.codegen.aot.graalvm.processor.IGenerator>generatorsstatic StringOPTION_PROJECT- 
Fields inherited from class picocli.codegen.annotation.processing.AbstractCommandSpecProcessorprocessingEnv
 
- 
 - 
Constructor SummaryConstructors Constructor Description NativeImageConfigGeneratorProcessor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanhandleCommands(Map<Element,CommandLine.Model.CommandSpec> commands, Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)Subclasses must implement this method and do something with theCommandSpeccommand model objects that were found during compilation.voidinit(ProcessingEnvironment processingEnv)- 
Methods inherited from class picocli.codegen.annotation.processing.AbstractCommandSpecProcessorerror, fatalError, getSupportedAnnotationTypes, getSupportedSourceVersion, logInfo, process, setLoadResourceBundles, warn
 - 
Methods inherited from class javax.annotation.processing.AbstractProcessorgetCompletions, getSupportedOptions, isInitialized
 
- 
 
- 
- 
- 
Field Detail- 
BASE_PATHpublic static final String BASE_PATH Base path where generated files will be written to: "META-INF/native-image/picocli-generated/".- See Also:
- Constant Field Values
 
 - 
OPTION_PROJECTpublic static final String OPTION_PROJECT Name of the annotation processor option that can be used to control the actual location where the generated file(s) are to be written to, relative to theBASE_PATH. The value of this constant is "project".- See Also:
- Constant Field Values
 
 - 
generatorsprotected List<picocli.codegen.aot.graalvm.processor.IGenerator> generators 
 
- 
 - 
Method Detail- 
initpublic void init(ProcessingEnvironment processingEnv) - Specified by:
- initin interface- Processor
- Overrides:
- initin class- AbstractCommandSpecProcessor
 
 - 
handleCommandsprotected boolean handleCommands(Map<Element,CommandLine.Model.CommandSpec> commands, Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Description copied from class:AbstractCommandSpecProcessorSubclasses must implement this method and do something with theCommandSpeccommand model objects that were found during compilation.- Specified by:
- handleCommandsin class- AbstractCommandSpecProcessor
- Parameters:
- commands- a map of annotated elements to their associated- CommandSpec. Note that the key set may contain classes that do not have a- @Commandannotation but were added to the map because the class has fields annotated with- Optionor- @Parameters.
- annotations- the annotation types requested to be processed
- roundEnv- environment for information about the current and prior round
- Returns:
- whether or not the set of annotation types are claimed by this processor.
           If trueis returned, the annotation types are claimed and subsequent processors will not be asked to process them; iffalseis returned, the annotation types are unclaimed and subsequent processors may be asked to process them. A processor may always return the same boolean value or may vary the result based on chosen criteria.
 
 
- 
 
-