Top Description Fields Constructors Methods
kotlin.jvm.internal

public Class Reflection

extends Object
Class Inheritance
Annotations
@SuppressWarnings:unused, rawtypes
Imports
kotlin.SinceKotlin, kotlin.collections.ArraysKt, kotlin.reflect.*, java.util.Arrays, .Collections

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.

Field Summary

Modifier and TypeField and Description
private static final kotlin.reflect.KClass[]
private static final ReflectionFactory
pack-priv static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static kotlin.reflect.KClass
createKotlinClass(Class<T> javaClass)

public static kotlin.reflect.KClass
createKotlinClass(Class<T> javaClass, String internalName)

public static kotlin.reflect.KFunction
public static kotlin.reflect.KClass
public static kotlin.reflect.KClass
getOrCreateKotlinClass(Class<T> javaClass, String internalName)

public static kotlin.reflect.KClass[]
getOrCreateKotlinClasses(Class<T>[] javaClasses)

public static kotlin.reflect.KDeclarationContainer
public static kotlin.reflect.KDeclarationContainer
getOrCreateKotlinPackage(Class<T> javaClass, String moduleName)

public static kotlin.reflect.KType
mutableCollectionType(kotlin.reflect.KType type)

public static kotlin.reflect.KMutableProperty0
public static kotlin.reflect.KMutableProperty1
public static kotlin.reflect.KMutableProperty2
public static kotlin.reflect.KType
nothingType(kotlin.reflect.KType type)

public static kotlin.reflect.KType
nullableTypeOf(kotlin.reflect.KClassifier classifier)

public static kotlin.reflect.KType
public static kotlin.reflect.KType
nullableTypeOf(Class<T> klass, kotlin.reflect.KTypeProjection arg1)

public static kotlin.reflect.KType
nullableTypeOf(Class<T> klass, kotlin.reflect.KTypeProjection arg1, kotlin.reflect.KTypeProjection arg2)

public static kotlin.reflect.KType
nullableTypeOf(Class<T> klass, kotlin.reflect.KTypeProjection... arguments)

public static kotlin.reflect.KType
platformType(kotlin.reflect.KType lowerBound, kotlin.reflect.KType upperBound)

public static kotlin.reflect.KProperty0
public static kotlin.reflect.KProperty1
public static kotlin.reflect.KProperty2
public static String
renderLambdaToString(kotlin.jvm.internal.Lambda lambda)

public static String
renderLambdaToString(kotlin.jvm.internal.FunctionBase lambda)

public static void
setUpperBounds(kotlin.reflect.KTypeParameter typeParameter, kotlin.reflect.KType bound)

public static void
setUpperBounds(kotlin.reflect.KTypeParameter typeParameter, kotlin.reflect.KType... bounds)

public static kotlin.reflect.KType
typeOf(kotlin.reflect.KClassifier classifier)

public static kotlin.reflect.KType
typeOf(Class<T> klass)

public static kotlin.reflect.KType
typeOf(Class<T> klass, kotlin.reflect.KTypeProjection arg1)

public static kotlin.reflect.KType
typeOf(Class<T> klass, kotlin.reflect.KTypeProjection arg1, kotlin.reflect.KTypeProjection arg2)

public static kotlin.reflect.KType
typeOf(Class<T> klass, kotlin.reflect.KTypeProjection... arguments)

public static kotlin.reflect.KTypeParameter
typeParameter(Object container, String name, kotlin.reflect.KVariance variance, boolean isReified)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_K_CLASS_ARRAYback to summary
private static final kotlin.reflect.KClass[] EMPTY_K_CLASS_ARRAY
factoryback to summary
private static final ReflectionFactory factory
REFLECTION_NOT_AVAILABLEback to summary
pack-priv static final String REFLECTION_NOT_AVAILABLE

Constructor Detail

Reflectionback to summary
public Reflection()

Method Detail

createKotlinClassback to summary
public static kotlin.reflect.KClass createKotlinClass(Class<T> javaClass)
createKotlinClassback to summary
public static kotlin.reflect.KClass createKotlinClass(Class<T> javaClass, String internalName)
functionback to summary
public static kotlin.reflect.KFunction function(FunctionReference f)
getOrCreateKotlinClassback to summary
public static kotlin.reflect.KClass getOrCreateKotlinClass(Class<T> javaClass)
getOrCreateKotlinClassback to summary
public static kotlin.reflect.KClass getOrCreateKotlinClass(Class<T> javaClass, String internalName)
getOrCreateKotlinClassesback to summary
public static kotlin.reflect.KClass[] getOrCreateKotlinClasses(Class<T>[] javaClasses)
getOrCreateKotlinPackageback to summary
public static kotlin.reflect.KDeclarationContainer getOrCreateKotlinPackage(Class<T> javaClass)
Annotations
@kotlin.SinceKotlin
getOrCreateKotlinPackageback to summary
public static kotlin.reflect.KDeclarationContainer getOrCreateKotlinPackage(Class<T> javaClass, String moduleName)
mutableCollectionTypeback to summary
public static kotlin.reflect.KType mutableCollectionType(kotlin.reflect.KType type)
Annotations
@kotlin.SinceKotlin
mutableProperty0back to summary
public static kotlin.reflect.KMutableProperty0 mutableProperty0(MutablePropertyReference0 p)
mutableProperty1back to summary
public static kotlin.reflect.KMutableProperty1 mutableProperty1(MutablePropertyReference1 p)
mutableProperty2back to summary
public static kotlin.reflect.KMutableProperty2 mutableProperty2(MutablePropertyReference2 p)
nothingTypeback to summary
public static kotlin.reflect.KType nothingType(kotlin.reflect.KType type)
Annotations
@kotlin.SinceKotlin
nullableTypeOfback to summary
public static kotlin.reflect.KType nullableTypeOf(kotlin.reflect.KClassifier classifier)
Annotations
@kotlin.SinceKotlin
nullableTypeOfback to summary
public static kotlin.reflect.KType nullableTypeOf(Class<T> klass)
Annotations
@kotlin.SinceKotlin
nullableTypeOfback to summary
public static kotlin.reflect.KType nullableTypeOf(Class<T> klass, kotlin.reflect.KTypeProjection arg1)
Annotations
@kotlin.SinceKotlin
nullableTypeOfback to summary
public static kotlin.reflect.KType nullableTypeOf(Class<T> klass, kotlin.reflect.KTypeProjection arg1, kotlin.reflect.KTypeProjection arg2)
Annotations
@kotlin.SinceKotlin
nullableTypeOfback to summary
public static kotlin.reflect.KType nullableTypeOf(Class<T> klass, kotlin.reflect.KTypeProjection... arguments)
Annotations
@kotlin.SinceKotlin
platformTypeback to summary
public static kotlin.reflect.KType platformType(kotlin.reflect.KType lowerBound, kotlin.reflect.KType upperBound)
Annotations
@kotlin.SinceKotlin
property0back to summary
public static kotlin.reflect.KProperty0 property0(PropertyReference0 p)
property1back to summary
public static kotlin.reflect.KProperty1 property1(PropertyReference1 p)
property2back to summary
public static kotlin.reflect.KProperty2 property2(PropertyReference2 p)
renderLambdaToStringback to summary
public static String renderLambdaToString(kotlin.jvm.internal.Lambda lambda)
Annotations
@kotlin.SinceKotlin
renderLambdaToStringback to summary
public static String renderLambdaToString(kotlin.jvm.internal.FunctionBase lambda)
Annotations
@kotlin.SinceKotlin
setUpperBoundsback to summary
public static void setUpperBounds(kotlin.reflect.KTypeParameter typeParameter, kotlin.reflect.KType bound)
Annotations
@kotlin.SinceKotlin
setUpperBoundsback to summary
public static void setUpperBounds(kotlin.reflect.KTypeParameter typeParameter, kotlin.reflect.KType... bounds)
Annotations
@kotlin.SinceKotlin
typeOfback to summary
public static kotlin.reflect.KType typeOf(kotlin.reflect.KClassifier classifier)
Annotations
@kotlin.SinceKotlin
typeOfback to summary
public static kotlin.reflect.KType typeOf(Class<T> klass)
Annotations
@kotlin.SinceKotlin
typeOfback to summary
public static kotlin.reflect.KType typeOf(Class<T> klass, kotlin.reflect.KTypeProjection arg1)
Annotations
@kotlin.SinceKotlin
typeOfback to summary
public static kotlin.reflect.KType typeOf(Class<T> klass, kotlin.reflect.KTypeProjection arg1, kotlin.reflect.KTypeProjection arg2)
Annotations
@kotlin.SinceKotlin
typeOfback to summary
public static kotlin.reflect.KType typeOf(Class<T> klass, kotlin.reflect.KTypeProjection... arguments)
Annotations
@kotlin.SinceKotlin
typeParameterback to summary
public static kotlin.reflect.KTypeParameter typeParameter(Object container, String name, kotlin.reflect.KVariance variance, boolean isReified)
Annotations
@kotlin.SinceKotlin