class ValueCreator
Creates instances of Value from various starting elements.
ValueCreator(env: ProcessingEnvironment)
Creates instances of Value from various starting elements. |
fun from(element: Element, isBuilder: Boolean = false): Value
Creates a Value from the given element. This element can be the TypeElement of the target class, or a specific constructor or factory method. If isBuilder is true, then the element represents the builder class, constructor or factory method. |
|
fun fromBuilderClass(builderClass: TypeElement): Value
Creates a Value from the given builder class. ex: |
|
fun fromBuilderConstructor(constructor: ExecutableElement): Value
Creates a Value from the given builder's constructor element. ex: |
|
fun fromBuilderFactory(builderFactory: ExecutableElement): Value
Creates a Value from the given builder factory method element. ex: |
|
fun fromClass(targetClass: TypeElement): Value
Creates a Value from the given class. ex: |
|
fun fromConstructor(constructor: ExecutableElement): Value
Creates a Value from the given constructor element. ex: |
|
fun fromFactory(factory: ExecutableElement): Value
Creates a Value from the given factory method element. ex: |