@SupportedAnnotationTypes(value="jdk.internal.jvmci.service.ServiceProvider") public class ServiceProviderProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
private Set<TypeElement> |
processed |
processingEnv| Constructor and Description |
|---|
ServiceProviderProcessor() |
| Modifier and Type | Method and Description |
|---|---|
private void |
createProviderFile(TypeElement serviceProvider,
String interfaceName) |
SourceVersion |
getSupportedSourceVersion() |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
private void |
processElement(TypeElement serviceProvider) |
private boolean |
verifyAnnotation(TypeMirror serviceInterface,
TypeElement serviceProvider) |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitializedprivate final Set<TypeElement> processed
public ServiceProviderProcessor()
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorprivate boolean verifyAnnotation(TypeMirror serviceInterface, TypeElement serviceProvider)
private void processElement(TypeElement serviceProvider)
private void createProviderFile(TypeElement serviceProvider, String interfaceName)
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessor