Package kotlin.jvm.internal
Class Reflection
java.lang.Object
kotlin.jvm.internal.Reflection
This class serves as a facade to the actual reflection implementation. JVM back-end generates calls to static methods of this class
on any reflection-using construct.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic kotlin.reflect.KClasscreateKotlinClass(Class javaClass) static kotlin.reflect.KClasscreateKotlinClass(Class javaClass, String internalName) static kotlin.reflect.KFunctionstatic kotlin.reflect.KClassgetOrCreateKotlinClass(Class javaClass) static kotlin.reflect.KClassgetOrCreateKotlinClass(Class javaClass, String internalName) static kotlin.reflect.KClass[]getOrCreateKotlinClasses(Class[] javaClasses) static kotlin.reflect.KDeclarationContainergetOrCreateKotlinPackage(Class javaClass) static kotlin.reflect.KDeclarationContainergetOrCreateKotlinPackage(Class javaClass, String moduleName) static kotlin.reflect.KTypemutableCollectionType(kotlin.reflect.KType type) static kotlin.reflect.KMutableProperty0static kotlin.reflect.KMutableProperty1static kotlin.reflect.KMutableProperty2static kotlin.reflect.KTypenothingType(kotlin.reflect.KType type) static kotlin.reflect.KTypenullableTypeOf(Class klass) static kotlin.reflect.KTypenullableTypeOf(Class klass, kotlin.reflect.KTypeProjection arg1) static kotlin.reflect.KTypenullableTypeOf(Class klass, kotlin.reflect.KTypeProjection... arguments) static kotlin.reflect.KTypenullableTypeOf(Class klass, kotlin.reflect.KTypeProjection arg1, kotlin.reflect.KTypeProjection arg2) static kotlin.reflect.KTypenullableTypeOf(kotlin.reflect.KClassifier classifier) static kotlin.reflect.KTypeplatformType(kotlin.reflect.KType lowerBound, kotlin.reflect.KType upperBound) static kotlin.reflect.KProperty0static kotlin.reflect.KProperty1static kotlin.reflect.KProperty2static StringrenderLambdaToString(kotlin.jvm.internal.FunctionBase lambda) static StringrenderLambdaToString(kotlin.jvm.internal.Lambda lambda) static voidsetUpperBounds(kotlin.reflect.KTypeParameter typeParameter, kotlin.reflect.KType bound) static voidsetUpperBounds(kotlin.reflect.KTypeParameter typeParameter, kotlin.reflect.KType... bounds) static kotlin.reflect.KTypestatic kotlin.reflect.KTypestatic kotlin.reflect.KTypestatic kotlin.reflect.KTypestatic kotlin.reflect.KTypetypeOf(kotlin.reflect.KClassifier classifier) static kotlin.reflect.KTypeParametertypeParameter(Object container, String name, kotlin.reflect.KVariance variance, boolean isReified)
-
Constructor Details
-
Reflection
public Reflection()
-
-
Method Details
-
createKotlinClass
-
createKotlinClass
-
getOrCreateKotlinPackage
@SinceKotlin(version="1.4") public static kotlin.reflect.KDeclarationContainer getOrCreateKotlinPackage(Class javaClass) -
getOrCreateKotlinPackage
-
getOrCreateKotlinClass
-
getOrCreateKotlinClass
-
getOrCreateKotlinClasses
-
renderLambdaToString
@SinceKotlin(version="1.1") public static String renderLambdaToString(kotlin.jvm.internal.Lambda lambda) -
renderLambdaToString
@SinceKotlin(version="1.3") public static String renderLambdaToString(kotlin.jvm.internal.FunctionBase lambda) -
function
-
property0
-
mutableProperty0
-
property1
-
mutableProperty1
-
property2
-
mutableProperty2
-
typeOf
@SinceKotlin(version="1.4") public static kotlin.reflect.KType typeOf(kotlin.reflect.KClassifier classifier) -
typeOf
-
typeOf
@SinceKotlin(version="1.4") public static kotlin.reflect.KType typeOf(Class klass, kotlin.reflect.KTypeProjection arg1) -
typeOf
@SinceKotlin(version="1.4") public static kotlin.reflect.KType typeOf(Class klass, kotlin.reflect.KTypeProjection arg1, kotlin.reflect.KTypeProjection arg2) -
typeOf
@SinceKotlin(version="1.4") public static kotlin.reflect.KType typeOf(Class klass, kotlin.reflect.KTypeProjection... arguments) -
nullableTypeOf
@SinceKotlin(version="1.4") public static kotlin.reflect.KType nullableTypeOf(kotlin.reflect.KClassifier classifier) -
nullableTypeOf
-
nullableTypeOf
@SinceKotlin(version="1.4") public static kotlin.reflect.KType nullableTypeOf(Class klass, kotlin.reflect.KTypeProjection arg1) -
nullableTypeOf
@SinceKotlin(version="1.4") public static kotlin.reflect.KType nullableTypeOf(Class klass, kotlin.reflect.KTypeProjection arg1, kotlin.reflect.KTypeProjection arg2) -
nullableTypeOf
@SinceKotlin(version="1.4") public static kotlin.reflect.KType nullableTypeOf(Class klass, kotlin.reflect.KTypeProjection... arguments) -
typeParameter
-
setUpperBounds
@SinceKotlin(version="1.4") public static void setUpperBounds(kotlin.reflect.KTypeParameter typeParameter, kotlin.reflect.KType bound) -
setUpperBounds
@SinceKotlin(version="1.4") public static void setUpperBounds(kotlin.reflect.KTypeParameter typeParameter, kotlin.reflect.KType... bounds) -
platformType
@SinceKotlin(version="1.6") public static kotlin.reflect.KType platformType(kotlin.reflect.KType lowerBound, kotlin.reflect.KType upperBound) -
mutableCollectionType
@SinceKotlin(version="1.6") public static kotlin.reflect.KType mutableCollectionType(kotlin.reflect.KType type) -
nothingType
@SinceKotlin(version="1.6") public static kotlin.reflect.KType nothingType(kotlin.reflect.KType type)
-