JavaOutput

open class JavaOutput @Inject constructor : WireOutput

Constructors

Link copied to clipboard
@Inject
constructor()

Properties

Link copied to clipboard

True for emitted types to implement android.os.Parcelable.

Link copied to clipboard

True to enable the androidx.annotation.Nullable annotation where applicable.

Link copied to clipboard

If true, the constructor of all generated types will be non-public.

Link copied to clipboard

True to emit code that uses reflection for reading, writing, and toString methods which are normally implemented with generated code.

Link copied to clipboard

True to emit annotations for options applied on messages, fields, etc.

Link copied to clipboard

True to emit types for options declared on messages, fields, etc.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
var out: String?

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

Functions

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

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.