@AutoService(value=javax.annotation.processing.Processor.class) public class GoogleAdsCatalogAnnotationProcessor extends AbstractProcessor
The annotation processor dynamically creates a set of the available versions of the Google Ads API by finding all of the unique versionName parameters (e.g. "v1" or "v2") and catalogs by finding all of the unique catalogName parameters included in @VersionDescriptor annotations throughout the library. More information regarding the catalog system can be found in the documentation of the VersionDescriptor.java class. Upon finding all versions and catalogs, this class writes one version of each of the classes listed above for each unique combination of version and catalog.
processingEnv| Constructor and Description |
|---|
GoogleAdsCatalogAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getSupportedAnnotationTypes() |
SourceVersion |
getSupportedSourceVersion() |
void |
init(ProcessingEnvironment processingEnv) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
getCompletions, getSupportedOptions, isInitializedpublic void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorpublic Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface ProcessorgetSupportedAnnotationTypes in class AbstractProcessorpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorCopyright © 2021. All rights reserved.