@AutoService(value=javax.annotation.processing.Processor.class) public class AutoValueProcessor extends AbstractProcessor
AutoValue
,
AutoValue User's GuideModifier and Type | Class and Description |
---|---|
static class |
AutoValueProcessor.Property
A property of an
@AutoValue class, defined by one of its abstract methods. |
static class |
AutoValueProcessor.SimpleMethod
A basic method on an @AutoValue class with no specific attached information, such as a
toBuilder() method, or a build() method, where only the name and access type is needed
in context. |
processingEnv
Constructor and Description |
---|
AutoValueProcessor() |
AutoValueProcessor(Iterable<? extends AutoValueExtension> extensions) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getSupportedAnnotationTypes() |
SourceVersion |
getSupportedSourceVersion() |
void |
init(ProcessingEnvironment processingEnv) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
getCompletions, getSupportedOptions, isInitialized
public AutoValueProcessor()
public AutoValueProcessor(Iterable<? extends AutoValueExtension> extensions)
public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface Processor
getSupportedAnnotationTypes
in class AbstractProcessor
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
public void init(ProcessingEnvironment processingEnv)
init
in interface Processor
init
in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
Copyright © 2020. All rights reserved.