Skip to content

//wire-compiler/com.squareup.wire.schema/Target/SchemaHandler

SchemaHandler

[jvm]\ interface SchemaHandler

Functions

Name Summary
handle [jvm]
abstract fun handle(service: Service): List<Path>
Returns the Paths of the files which service will have been generated into.
[jvm]
abstract fun handle(type: Type): Path?
Returns the Path of the file which type will have been generated into.
[jvm]
abstract fun handle(extend: Extend, field: Field): Path?
Returns the Path of the files which field will have been generated into.
[jvm]
open fun handle(protoFile: ProtoFile, emittingRules: EmittingRules, claimedDefinitions: ClaimedDefinitions, claimedPaths: MutableMap<Path, String>, isExclusive: Boolean)
This will handle all Types and Services of the protoFile in respect to the emitting rules. If exclusive, the handled Types and Services should be added to the consumed set. Consumed types and services themselves are to be omitted by this handler.