TypeUtils

open class TypeUtils(source)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun areTypesEquals(a: Class<out Any>, b: Class<out Any>): Boolean
Link copied to clipboard
open fun createTypeUniverse(instantiation: Type): Map<TypeVariable<out Any>, Type>
obtain a list of type variable assignments from a generic type instantiation.
Link copied to clipboard
open fun doesAExtendB(a: Type, b: Type): Boolean
Link copied to clipboard
open fun fillTypeUniverse(instantiation: Type, context: Class<out Any>, universe: Map<TypeVariable<out Any>, Type>)
Construct a universe of type variable assignments from a given type instantiation.
Link copied to clipboard
open fun instantiateParameterizedType(rawType: Class<out Any>, typeArguments: Array<Type>): ParameterizedType
Link copied to clipboard
open fun normalizeNative(clazz: Class<out Any>): Class<out Any>
Link copied to clipboard
open fun normalizeRawAll(t: Type): Class<out Any>
Link copied to clipboard
open fun normalizeToNative(clazz: Class<out Any>): Class<out Any>
Link copied to clipboard
open fun resolveRawType(t: Type): Class<out Any>
Link copied to clipboard
Given a universe of assignments for type-variables, resolve type-variables to a concrete non-generic type (at the top level).