CustomOutput

open class CustomOutput @Inject constructor : WireOutput

Constructors

Link copied to clipboard
@Inject
constructor()

Properties

Link copied to clipboard
val excludes: ListProperty<String>
Link copied to clipboard
val exclusive: Property<Boolean>
Link copied to clipboard
val includes: ListProperty<String>
Link copied to clipboard
val options: MapProperty<String, String>
Link copied to clipboard
val out: Property<String>
Link copied to clipboard
val schemaHandlerFactory: Property<SchemaHandler.Factory>
Link copied to clipboard

Functions

Link copied to clipboard
fun setExcludes(value: List<String>?)

See com.squareup.wire.schema.Target.excludes

Link copied to clipboard
fun setExclusive(value: Boolean)

See com.squareup.wire.schema.Target.exclusive

Link copied to clipboard
fun setIncludes(value: List<String>?)

See com.squareup.wire.schema.Target.includes

Link copied to clipboard
fun setOptions(value: Map<String, String>?)

Black boxed payload which a caller can set for the custom SchemaHandler.Factory to receive.

Link copied to clipboard
fun setOut(value: String?)

Set this to override the default output directory for this WireOutput.

Link copied to clipboard
fun setSchemaHandlerFactory(value: SchemaHandler.Factory?)

Assign the schema handler factory instance.

Link copied to clipboard

Assign the schema handler factory by name. If you use a class name, that class must have a no-arguments constructor.

Link copied to clipboard
open override fun toTarget(outputDirectory: String): CustomTarget

Transforms this WireOutput into a Target for which Wire will generate code. The Target should use outputDirectory instead of WireOutput.out in all cases for its output directory.