@SupportedAnnotationTypes(value="com.facebook.buck.core.module.BuckModule") public class BuckModuleAnnotationProcessor extends AbstractProcessor
For example, given the following configuration:
package com.facebook.buck.some.module;
@BuckModule
public class SomeModule {}
The annotation processor will generate the following adapter in the same package:
public class SomeModuleAdapterPlugin extends Plugin {
public SomeModuleAdapterPlugin(PluginWrapper wrapper) {
super(wrapper);
}
}
processingEnv| Constructor and Description |
|---|
BuckModuleAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
SourceVersion |
getSupportedSourceVersion() |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitializedpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessor