Package com.google.auto.value.processor
Class AutoValueBuilderProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- com.google.auto.value.processor.AutoValueBuilderProcessor
-
- All Implemented Interfaces:
javax.annotation.processing.Processor
@AutoService(javax.annotation.processing.Processor.class) @SupportedAnnotationTypes("com.google.auto.value.AutoValue.Builder") public class AutoValueBuilderProcessor extends javax.annotation.processing.AbstractProcessor
Annotation processor that checks that the type thatAutoValue.Builderis applied to is nested inside an@AutoValueclass. The actual code generation for builders is done inAutoValueProcessor.
-
-
Constructor Summary
Constructors Constructor Description AutoValueBuilderProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.lang.model.SourceVersiongetSupportedSourceVersion()booleanprocess(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)private voidvalidate(javax.lang.model.element.Element annotatedType, java.lang.String errorMessage)
-
-
-
Method Detail
-
getSupportedSourceVersion
public javax.lang.model.SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin interfacejavax.annotation.processing.Processor- Overrides:
getSupportedSourceVersionin classjavax.annotation.processing.AbstractProcessor
-
process
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)- Specified by:
processin interfacejavax.annotation.processing.Processor- Specified by:
processin classjavax.annotation.processing.AbstractProcessor
-
validate
private void validate(javax.lang.model.element.Element annotatedType, java.lang.String errorMessage)
-
-