@SupportedOptions(value={"implicitlyAddAutoModels","validateEpoxyModelUsage","requireAbstractEpoxyModels","requireHashCodeInEpoxyModels","disableEpoxyKotlinExtensionGeneration","kapt.kotlin.generated"})
public class EpoxyProcessor
extends javax.annotation.processing.AbstractProcessor
EpoxyAttribute annotations and generates a subclass for all classes that have
those attributes. The generated subclass includes setters, getters, equals, and hashcode for the
given field. Any constructors on the original class are duplicated. Abstract classes are ignored
since generated classes would have to be abstract in order to guarantee they compile, and that
reduces their usefulness and doesn't make as much sense to support.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KAPT_KOTLIN_GENERATED_OPTION_NAME |
| Constructor and Description |
|---|
EpoxyProcessor() |
EpoxyProcessor(java.util.Map<java.lang.String,java.lang.String> options)
Constructor to use for tests to pass annotation processor options since we can't get them from
the build.gradle
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getSupportedAnnotationTypes() |
javax.lang.model.SourceVersion |
getSupportedSourceVersion() |
void |
init(javax.annotation.processing.ProcessingEnvironment processingEnv) |
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv) |
static EpoxyProcessor |
withImplicitAdding()
For testing.
|
static EpoxyProcessor |
withNoValidation()
For testing.
|
public static final java.lang.String KAPT_KOTLIN_GENERATED_OPTION_NAME
public EpoxyProcessor()
public EpoxyProcessor(java.util.Map<java.lang.String,java.lang.String> options)
public static EpoxyProcessor withNoValidation()
public static EpoxyProcessor withImplicitAdding()
public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
init in interface javax.annotation.processing.Processorinit in class javax.annotation.processing.AbstractProcessorpublic java.util.Set<java.lang.String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface javax.annotation.processing.ProcessorgetSupportedAnnotationTypes in class javax.annotation.processing.AbstractProcessorpublic javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface javax.annotation.processing.ProcessorgetSupportedSourceVersion in class javax.annotation.processing.AbstractProcessorpublic boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv)
process in interface javax.annotation.processing.Processorprocess in class javax.annotation.processing.AbstractProcessor