ReflectionTypeProcessingStepConfig

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var customProcessors: MutableMap<KClass<*>, () -> BaseTypeData>
Link copied to clipboard

Whether to use toString for enum values or the declared name

Link copied to clipboard

Whether to include functions as members of classes (see PropertyType.FUNCTION).

Link copied to clipboard

Whether to include getters as members of classes (see PropertyType.GETTER).

Link copied to clipboard

Whether to include hidden (e.g. private) members

Link copied to clipboard

Whether to include static members

Link copied to clipboard

Whether to include weak getters as members of classes (see PropertyType.WEAK_GETTER).

Link copied to clipboard

The list of types that are considered "primitive types" and returned as PrimitiveTypeData

Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> customProcessor(noinline processor: () -> BaseTypeData)
fun customProcessor(type: KClass<*>, processor: () -> BaseTypeData)

Add a custom processor for the given type that overwrites the default behaviour

Link copied to clipboard
fun customProcessors(processors: Map<KClass<*>, () -> BaseTypeData>)

Add custom processors for given type that overwrites the default behaviour

Link copied to clipboard
inline fun <FROM, TO> redirect()
fun redirect(from: KType, to: KType)

Redirect from the given type to the other given type, i.e. when the "from" type is processed, the "to" type is used instead.

fun redirect(redirects: Map<KType, KType>)

Redirect from the given types to the other given types, i.e. when a type is processed, the associated type is used instead.