Model Builder Interface Writer
class ModelBuilderInterfaceWriter(filer: Filer, types: Types, asyncable: Asyncable, configManager: ConfigManager, elements: Elements) : Asyncable
Content copied to clipboard
Creates an interface for a generated model that contains all of the valid setters for building a model in an EpoxyController. This allows us to expose the interface when building a model and hide all of the non applicable junk that shouldn't be used when building a model (eg equals/bind/toString etc)
We can also hide the setters that are legacy from usage with EpoxyAdapter.
Constructors
ModelBuilderInterfaceWriter
Link copied to clipboard
fun ModelBuilderInterfaceWriter(filer: Filer, types: Types, asyncable: Asyncable, configManager: ConfigManager, elements: Elements)
Content copied to clipboard
Types
InterfaceDetails
Link copied to clipboard
data class InterfaceDetails(implementingViews: Set<TypeElement>, methodsOnInterface: Set<ModelBuilderInterfaceWriter.MethodDetails>)
Content copied to clipboard
MethodDetails
Link copied to clipboard
ParamDetails
Link copied to clipboard
Functions
forEach
Link copied to clipboard
writeFilesForViewInterfaces
Link copied to clipboard
suspend fun writeFilesForViewInterfaces()
Content copied to clipboard
writeInterface
Link copied to clipboard
fun writeInterface(modelInfo: GeneratedModelInfo, methods: MutableList<MethodSpec>): TypeName
Content copied to clipboard
Properties
configManager
Link copied to clipboard
coroutineScope
Link copied to clipboard
coroutinesEnabled
Link copied to clipboard