.class public abstract Lcom/esotericsoftware/b/b; .super Ljava/lang/Object; .source "ConstructorAccess.java" # annotations .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;" } .end annotation # instance fields .field Br:Z # direct methods .method public constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static i(Ljava/lang/Class;)Lcom/esotericsoftware/b/b; .locals 20 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TT;>;)", "Lcom/esotericsoftware/b/b<", "TT;>;" } .end annotation move-object/from16 v1, p0 invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getEnclosingClass()Ljava/lang/Class; move-result-object v0 const/4 v2, 0x0 const/4 v3, 0x1 if-eqz v0, :cond_0 invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->isMemberClass()Z move-result v4 if-eqz v4, :cond_0 invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getModifiers()I move-result v4 invoke-static {v4}, Ljava/lang/reflect/Modifier;->isStatic(I)Z move-result v4 if-nez v4, :cond_0 const/4 v4, 0x1 goto :goto_0 :cond_0 const/4 v4, 0x0 :goto_0 invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v5 new-instance v6, Ljava/lang/StringBuilder; invoke-direct {v6}, Ljava/lang/StringBuilder;->()V invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v7, "ConstructorAccess" invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v6 const-string v7, "java." invoke-virtual {v6, v7}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z move-result v7 if-eqz v7, :cond_1 const-string v7, "reflectasm." invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v6 invoke-virtual {v7, v6}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object v6 :cond_1 invoke-static/range {p0 .. p0}, Lcom/esotericsoftware/b/a;->g(Ljava/lang/Class;)Lcom/esotericsoftware/b/a; move-result-object v7 :try_start_0 invoke-virtual {v7, v6}, Lcom/esotericsoftware/b/a;->loadClass(Ljava/lang/String;)Ljava/lang/Class; move-result-object v0 :try_end_0 .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 goto/16 :goto_5 :catch_0 monitor-enter v7 :try_start_1 invoke-virtual {v7, v6}, Lcom/esotericsoftware/b/a;->loadClass(Ljava/lang/String;)Ljava/lang/Class; move-result-object v0 :try_end_1 .catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_1} :catch_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 goto/16 :goto_4 :catchall_0 move-exception v0 goto/16 :goto_7 :catch_1 const/16 v8, 0x2f const/16 v9, 0x2e :try_start_2 invoke-virtual {v6, v9, v8}, Ljava/lang/String;->replace(CC)Ljava/lang/String; move-result-object v13 invoke-virtual {v5, v9, v8}, Ljava/lang/String;->replace(CC)Ljava/lang/String; move-result-object v5 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 const/4 v10, 0x0 if-nez v4, :cond_3 :try_start_3 invoke-virtual {v1, v10}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor; move-result-object v0 invoke-virtual {v0}, Ljava/lang/reflect/Constructor;->getModifiers()I move-result v0 :try_end_3 .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2 .catchall {:try_start_3 .. :try_end_3} :catchall_0 :try_start_4 invoke-static {v0}, Ljava/lang/reflect/Modifier;->isPrivate(I)Z move-result v8 if-nez v8, :cond_2 move-object v8, v10 goto :goto_1 :cond_2 new-instance v0, Ljava/lang/RuntimeException; new-instance v2, Ljava/lang/StringBuilder; const-string v3, "Class cannot be created (the no-arg constructor is private): " invoke-direct {v2, v3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v1 invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw v0 :catch_2 move-exception v0 new-instance v2, Ljava/lang/RuntimeException; new-instance v3, Ljava/lang/StringBuilder; const-string v4, "Class cannot be created (missing no-arg constructor): " invoke-direct {v3, v4}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v1 invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v2, v1, v0}, Ljava/lang/RuntimeException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw v2 :cond_3 invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v10 invoke-virtual {v10, v9, v8}, Ljava/lang/String;->replace(CC)Ljava/lang/String; move-result-object v10 :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_0 :try_start_5 new-array v8, v3, [Ljava/lang/Class; aput-object v0, v8, v2 invoke-virtual {v1, v8}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor; move-result-object v0 invoke-virtual {v0}, Ljava/lang/reflect/Constructor;->getModifiers()I move-result v0 :try_end_5 .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4 .catchall {:try_start_5 .. :try_end_5} :catchall_0 :try_start_6 invoke-static {v0}, Ljava/lang/reflect/Modifier;->isPrivate(I)Z move-result v8 if-nez v8, :cond_8 move-object v8, v10 :goto_1 invoke-static {v0}, Ljava/lang/reflect/Modifier;->isPublic(I)Z move-result v0 if-eqz v0, :cond_4 const-string v0, "com/esotericsoftware/reflectasm/PublicConstructorAccess" goto :goto_2 :cond_4 const-string v0, "com/esotericsoftware/reflectasm/ConstructorAccess" :goto_2 new-instance v9, Lorg/a/a/h; invoke-direct {v9, v2}, Lorg/a/a/h;->(I)V const v11, 0x3002d const/16 v12, 0x21 const/4 v14, 0x0 const/16 v16, 0x0 move-object v10, v9 move-object v15, v0 invoke-virtual/range {v10 .. v16}, Lorg/a/a/h;->a(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V const/4 v15, 0x1 const-string v16, "" const-string v17, "()V" const/16 v18, 0x0 const/16 v19, 0x0 move-object v14, v9 invoke-virtual/range {v14 .. v19}, Lorg/a/a/h;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lorg/a/a/t; move-result-object v10 const/16 v11, 0x19 invoke-virtual {v10, v11, v2}, Lorg/a/a/t;->aj(II)V const-string v2, "" const-string v12, "()V" const/16 v13, 0xb7 invoke-virtual {v10, v13, v0, v2, v12}, Lorg/a/a/t;->b(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V const/16 v0, 0xb1 invoke-virtual {v10, v0}, Lorg/a/a/t;->dG(I)V invoke-virtual {v10, v3, v3}, Lorg/a/a/t;->al(II)V const/4 v15, 0x1 const-string v16, "newInstance" const-string v17, "()Ljava/lang/Object;" const/16 v18, 0x0 const/16 v19, 0x0 move-object v14, v9 invoke-virtual/range {v14 .. v19}, Lorg/a/a/h;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lorg/a/a/t; move-result-object v0 const/16 v2, 0xbb invoke-virtual {v0, v2, v5}, Lorg/a/a/t;->i(ILjava/lang/String;)V const/16 v10, 0x59 invoke-virtual {v0, v10}, Lorg/a/a/t;->dG(I)V const-string v12, "" const-string v14, "()V" invoke-virtual {v0, v13, v5, v12, v14}, Lorg/a/a/t;->b(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V const/16 v12, 0xb0 invoke-virtual {v0, v12}, Lorg/a/a/t;->dG(I)V const/4 v15, 0x2 invoke-virtual {v0, v15, v3}, Lorg/a/a/t;->al(II)V const/4 v0, 0x1 const-string v16, "newInstance" const-string v17, "(Ljava/lang/Object;)Ljava/lang/Object;" const/16 v18, 0x0 const/16 v19, 0x0 move-object v14, v9 move v15, v0 invoke-virtual/range {v14 .. v19}, Lorg/a/a/h;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lorg/a/a/t; move-result-object v0 if-eqz v8, :cond_5 invoke-virtual {v0, v2, v5}, Lorg/a/a/t;->i(ILjava/lang/String;)V invoke-virtual {v0, v10}, Lorg/a/a/t;->dG(I)V invoke-virtual {v0, v11, v3}, Lorg/a/a/t;->aj(II)V const/16 v2, 0xc0 invoke-virtual {v0, v2, v8}, Lorg/a/a/t;->i(ILjava/lang/String;)V invoke-virtual {v0, v10}, Lorg/a/a/t;->dG(I)V const/16 v2, 0xb6 const-string v3, "java/lang/Object" const-string v10, "getClass" const-string v11, "()Ljava/lang/Class;" invoke-virtual {v0, v2, v3, v10, v11}, Lorg/a/a/t;->b(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V const/16 v2, 0x57 invoke-virtual {v0, v2}, Lorg/a/a/t;->dG(I)V const-string v2, "" new-instance v3, Ljava/lang/StringBuilder; const-string v10, "(L" invoke-direct {v3, v10}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v8, ";)V" invoke-virtual {v3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v3 invoke-virtual {v0, v13, v5, v2, v3}, Lorg/a/a/t;->b(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V invoke-virtual {v0, v12}, Lorg/a/a/t;->dG(I)V const/4 v2, 0x4 const/4 v3, 0x2 invoke-virtual {v0, v2, v3}, Lorg/a/a/t;->al(II)V goto :goto_3 :cond_5 const/4 v3, 0x2 const-string v5, "java/lang/UnsupportedOperationException" invoke-virtual {v0, v2, v5}, Lorg/a/a/t;->i(ILjava/lang/String;)V invoke-virtual {v0, v10}, Lorg/a/a/t;->dG(I)V const-string v2, "Not an inner class." invoke-virtual {v0, v2}, Lorg/a/a/t;->bt(Ljava/lang/Object;)V const-string v2, "java/lang/UnsupportedOperationException" const-string v5, "" const-string v8, "(Ljava/lang/String;)V" invoke-virtual {v0, v13, v2, v5, v8}, Lorg/a/a/t;->b(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V const/16 v2, 0xbf invoke-virtual {v0, v2}, Lorg/a/a/t;->dG(I)V const/4 v2, 0x3 invoke-virtual {v0, v2, v3}, Lorg/a/a/t;->al(II)V :goto_3 invoke-virtual {v9}, Lorg/a/a/h;->toByteArray()[B move-result-object v0 invoke-virtual {v7, v6, v0}, Lcom/esotericsoftware/b/a;->a(Ljava/lang/String;[B)Ljava/lang/Class; move-result-object v0 :goto_4 monitor-exit v7 :try_end_6 .catchall {:try_start_6 .. :try_end_6} :catchall_0 :goto_5 :try_start_7 invoke-virtual {v0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object; move-result-object v2 check-cast v2, Lcom/esotericsoftware/b/b; :try_end_7 .catch Ljava/lang/Throwable; {:try_start_7 .. :try_end_7} :catch_3 instance-of v3, v2, Lcom/esotericsoftware/b/e; if-nez v3, :cond_7 invoke-static {v1, v0}, Lcom/esotericsoftware/b/a;->a(Ljava/lang/Class;Ljava/lang/Class;)Z move-result v0 if-nez v0, :cond_7 new-instance v0, Ljava/lang/RuntimeException; new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()V if-nez v4, :cond_6 const-string v3, "Class cannot be created (the no-arg constructor is protected or package-protected, and its ConstructorAccess could not be defined in the same class loader): " goto :goto_6 :cond_6 const-string v3, "Non-static member class cannot be created (the enclosing class constructor is protected or package-protected, and its ConstructorAccess could not be defined in the same class loader): " :goto_6 invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v1 invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw v0 :cond_7 iput-boolean v4, v2, Lcom/esotericsoftware/b/b;->Br:Z return-object v2 :catch_3 move-exception v0 new-instance v1, Ljava/lang/RuntimeException; invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v2 const-string v3, "Exception constructing constructor access class: " invoke-virtual {v3, v2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object v2 invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw v1 :cond_8 :try_start_8 new-instance v0, Ljava/lang/RuntimeException; new-instance v2, Ljava/lang/StringBuilder; const-string v3, "Non-static member class cannot be created (the enclosing class constructor is private): " invoke-direct {v2, v3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v1 invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw v0 :catch_4 move-exception v0 new-instance v2, Ljava/lang/RuntimeException; new-instance v3, Ljava/lang/StringBuilder; const-string v4, "Non-static member class cannot be created (missing enclosing class constructor): " invoke-direct {v3, v4}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v1 invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v2, v1, v0}, Ljava/lang/RuntimeException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw v2 :goto_7 monitor-exit v7 :try_end_8 .catchall {:try_start_8 .. :try_end_8} :catchall_0 throw v0 .end method # virtual methods .method public abstract newInstance()Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "()TT;" } .end annotation .end method