@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, isInitialized
private final Set<TypeElement> processed
public ServiceProviderProcessor()
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
private 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 Processor
process
in class AbstractProcessor