@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, isInitialized
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor