.class public final Lkotlin/jvm/internal/ClassReference$Companion; .super Ljava/lang/Object; .source "ClassReference.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lkotlin/jvm/internal/ClassReference; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "Companion" .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nClassReference.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ClassReference.kt\nkotlin/jvm/internal/ClassReference$Companion\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,205:1\n1#2:206\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u00006\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0010\u000b\n\u0002\u0008\u0002\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0014\u0010\u000f\u001a\u0004\u0018\u00010\n2\n\u0010\u0010\u001a\u0006\u0012\u0002\u0008\u00030\u0005J\u0014\u0010\u0011\u001a\u0004\u0018\u00010\n2\n\u0010\u0010\u001a\u0006\u0012\u0002\u0008\u00030\u0005J\u001c\u0010\u0012\u001a\u00020\u00132\u0008\u0010\u0014\u001a\u0004\u0018\u00010\u00012\n\u0010\u0010\u001a\u0006\u0012\u0002\u0008\u00030\u0005R&\u0010\u0003\u001a\u001a\u0012\u0010\u0012\u000e\u0012\n\u0008\u0001\u0012\u0006\u0012\u0002\u0008\u00030\u00060\u0005\u0012\u0004\u0012\u00020\u00070\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R*\u0010\u0008\u001a\u001e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n0\tj\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n`\u000bX\u0082\u0004\u00a2\u0006\u0002\n\u0000R*\u0010\u000c\u001a\u001e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n0\tj\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n`\u000bX\u0082\u0004\u00a2\u0006\u0002\n\u0000R*\u0010\r\u001a\u001e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n0\tj\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n`\u000bX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u001a\u0010\u000e\u001a\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n0\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0015" } d2 = { "Lkotlin/jvm/internal/ClassReference$Companion;", "", "()V", "FUNCTION_CLASSES", "", "Ljava/lang/Class;", "Lkotlin/Function;", "", "classFqNames", "Ljava/util/HashMap;", "", "Lkotlin/collections/HashMap;", "primitiveFqNames", "primitiveWrapperFqNames", "simpleNames", "getClassQualifiedName", "jClass", "getClassSimpleName", "isInstance", "", "value", "kotlin-stdlib" } k = 0x1 mv = { 0x1, 0x9, 0x0 } xi = 0x30 .end annotation # direct methods .method private constructor ()V .locals 0 .line 99 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public synthetic constructor (Lkotlin/jvm/internal/DefaultConstructorMarker;)V .locals 0 invoke-direct {p0}, Lkotlin/jvm/internal/ClassReference$Companion;->()V return-void .end method # virtual methods .method public final getClassQualifiedName(Ljava/lang/Class;)Ljava/lang/String; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "*>;)", "Ljava/lang/String;" } .end annotation const-string p0, "jClass" invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 184 invoke-virtual {p1}, Ljava/lang/Class;->isAnonymousClass()Z move-result p0 const/4 v0, 0x0 if-eqz p0, :cond_0 goto :goto_0 .line 185 :cond_0 invoke-virtual {p1}, Ljava/lang/Class;->isLocalClass()Z move-result p0 if-eqz p0, :cond_1 goto :goto_0 .line 186 :cond_1 invoke-virtual {p1}, Ljava/lang/Class;->isArray()Z move-result p0 if-eqz p0, :cond_3 .line 187 invoke-virtual {p1}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class; move-result-object p0 .line 189 invoke-virtual {p0}, Ljava/lang/Class;->isPrimitive()Z move-result p1 if-eqz p1, :cond_2 invoke-static {}, Lkotlin/jvm/internal/ClassReference;->access$getClassFqNames$cp()Ljava/util/HashMap; move-result-object p1 invoke-virtual {p0}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object p0 invoke-virtual {p1, p0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Ljava/lang/String; if-eqz p0, :cond_2 new-instance p1, Ljava/lang/StringBuilder; invoke-direct {p1}, Ljava/lang/StringBuilder;->()V invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 const-string p1, "Array" invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 move-object v0, p0 :cond_2 if-nez v0, :cond_4 const-string v0, "kotlin.Array" goto :goto_0 .line 193 :cond_3 invoke-static {}, Lkotlin/jvm/internal/ClassReference;->access$getClassFqNames$cp()Ljava/util/HashMap; move-result-object p0 invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v0 invoke-virtual {p0, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 move-object v0, p0 check-cast v0, Ljava/lang/String; if-nez v0, :cond_4 invoke-virtual {p1}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String; move-result-object v0 :cond_4 :goto_0 return-object v0 .end method .method public final getClassSimpleName(Ljava/lang/Class;)Ljava/lang/String; .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "*>;)", "Ljava/lang/String;" } .end annotation const-string p0, "jClass" invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 166 invoke-virtual {p1}, Ljava/lang/Class;->isAnonymousClass()Z move-result p0 const/4 v0, 0x0 if-eqz p0, :cond_0 goto/16 :goto_2 .line 167 :cond_0 invoke-virtual {p1}, Ljava/lang/Class;->isLocalClass()Z move-result p0 if-eqz p0, :cond_4 .line 168 invoke-virtual {p1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String; move-result-object p0 .line 169 invoke-virtual {p1}, Ljava/lang/Class;->getEnclosingMethod()Ljava/lang/reflect/Method; move-result-object v1 const/4 v2, 0x2 const/16 v3, 0x24 if-eqz v1, :cond_2 invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V new-instance v4, Ljava/lang/StringBuilder; invoke-direct {v4}, Ljava/lang/StringBuilder;->()V invoke-virtual {v1}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String; move-result-object v1 invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-static {p0, v1, v0, v2, v0}, Lkotlin/text/StringsKt;->substringAfter$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String; move-result-object v1 if-nez v1, :cond_1 goto :goto_1 :cond_1 :goto_0 move-object v0, v1 goto/16 :goto_2 .line 170 :cond_2 :goto_1 invoke-virtual {p1}, Ljava/lang/Class;->getEnclosingConstructor()Ljava/lang/reflect/Constructor; move-result-object p1 if-eqz p1, :cond_3 invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V invoke-virtual {p1}, Ljava/lang/reflect/Constructor;->getName()Ljava/lang/String; move-result-object p1 invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-static {p0, p1, v0, v2, v0}, Lkotlin/text/StringsKt;->substringAfter$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String; move-result-object v0 goto :goto_2 .line 171 :cond_3 invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-static {p0, v3, v0, v2, v0}, Lkotlin/text/StringsKt;->substringAfter$default(Ljava/lang/String;CLjava/lang/String;ILjava/lang/Object;)Ljava/lang/String; move-result-object v0 goto :goto_2 .line 173 :cond_4 invoke-virtual {p1}, Ljava/lang/Class;->isArray()Z move-result p0 if-eqz p0, :cond_6 .line 174 invoke-virtual {p1}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class; move-result-object p0 .line 176 invoke-virtual {p0}, Ljava/lang/Class;->isPrimitive()Z move-result p1 const-string v1, "Array" if-eqz p1, :cond_5 invoke-static {}, Lkotlin/jvm/internal/ClassReference;->access$getSimpleNames$cp()Ljava/util/Map; move-result-object p1 invoke-virtual {p0}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object p0 invoke-interface {p1, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Ljava/lang/String; if-eqz p0, :cond_5 new-instance p1, Ljava/lang/StringBuilder; invoke-direct {p1}, Ljava/lang/StringBuilder;->()V invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 move-object v0, p0 :cond_5 if-nez v0, :cond_7 goto :goto_0 .line 180 :cond_6 invoke-static {}, Lkotlin/jvm/internal/ClassReference;->access$getSimpleNames$cp()Ljava/util/Map; move-result-object p0 invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v0 invoke-interface {p0, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 move-object v0, p0 check-cast v0, Ljava/lang/String; if-nez v0, :cond_7 invoke-virtual {p1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String; move-result-object v0 :cond_7 :goto_2 return-object v0 .end method .method public final isInstance(Ljava/lang/Object;Ljava/lang/Class;)Z .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Object;", "Ljava/lang/Class<", "*>;)Z" } .end annotation const-string p0, "jClass" invoke-static {p2, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 197 invoke-static {}, Lkotlin/jvm/internal/ClassReference;->access$getFUNCTION_CLASSES$cp()Ljava/util/Map; move-result-object p0 const-string v0, "null cannot be cast to non-null type kotlin.collections.Map" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-interface {p0, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Ljava/lang/Integer; if-eqz p0, :cond_0 check-cast p0, Ljava/lang/Number; invoke-virtual {p0}, Ljava/lang/Number;->intValue()I move-result p0 .line 198 invoke-static {p1, p0}, Lkotlin/jvm/internal/TypeIntrinsics;->isFunctionOfArity(Ljava/lang/Object;I)Z move-result p0 return p0 .line 200 :cond_0 invoke-virtual {p2}, Ljava/lang/Class;->isPrimitive()Z move-result p0 if-eqz p0, :cond_1 invoke-static {p2}, Lkotlin/jvm/JvmClassMappingKt;->getKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/KClass; move-result-object p0 invoke-static {p0}, Lkotlin/jvm/JvmClassMappingKt;->getJavaObjectType(Lkotlin/reflect/KClass;)Ljava/lang/Class; move-result-object p2 .line 201 :cond_1 invoke-virtual {p2, p1}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z move-result p0 return p0 .end method