value-processor / me.tatarka.valueprocessor / ConstructionSource / Factory

Factory

class Factory : ConstructionSource

A Value factory method.

Properties

constructionElement

val constructionElement: ExecutableElement

The executable element to construct the Value. This may be a constructor, factory method, or builder.

isBuilder

val isBuilder: Boolean

If this source is a builder.

isConstructor

val isConstructor: Boolean

If this source is a constructor (either of the value or the builder).

method

val method: ExecutableElement

A Value factory method element.

targetClass

val targetClass: TypeElement

The target Value class to construct.

Inherited Functions

findBuildMethod

fun findBuildMethod(builderClass: TypeElement): ExecutableElement?