@SupportedOptions(value="debug") @AutoService(value=javax.annotation.processing.Processor.class) @IncrementalAnnotationProcessor(value=AGGREGATING) public class AutoServiceProcessor extends AbstractDefaultProcessor
processingEnv| 构造器和说明 |
|---|
AutoServiceProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
AnnotationValue |
getAnnotationValue(AnnotationMirror annotationMirror,
String elementName) |
Set<String> |
getSupportedAnnotationTypes() |
String |
getType(TypeMirror type) |
void |
init(ProcessingEnvironment processingEnv) |
protected boolean |
processImpl(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
error, error, fatalError, fatalError, getAnnotation, getQualifiedName, getSupportedSourceVersion, isAnnotation, isAnnotation, isClass, isClassOrInterface, log, processgetCompletions, getSupportedOptions, isInitializedpublic void init(ProcessingEnvironment processingEnv)
init 在接口中 Processorinit 在类中 AbstractProcessorpublic Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes 在接口中 ProcessorgetSupportedAnnotationTypes 在类中 AbstractProcessorprotected boolean processImpl(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
processImpl 在类中 AbstractDefaultProcessorpublic AnnotationValue getAnnotationValue(AnnotationMirror annotationMirror, String elementName)
public String getType(TypeMirror type)
Copyright © 2021. All rights reserved.