DexLoader$KKElementConstructor.smali
.class Lcom/bytedance/boost_multidex/DexLoader$KKElementConstructor;
.super Ljava/lang/Object;
.source ""
# interfaces
.implements Lcom/bytedance/boost_multidex/DexLoader$ElementConstructor;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/bytedance/boost_multidex/DexLoader;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0xa
name = "KKElementConstructor"
.end annotation
# instance fields
.field private final mConstructor:Ljava/lang/reflect/Constructor;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/reflect/Constructor",
"<*>;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Ljava/lang/Class;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class",
"<*>;)V"
}
.end annotation
const/4 v3, 0x1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x4
new-array v0, v0, [Ljava/lang/Class;
const/4 v1, 0x0
const-class v2, Ljava/io/File;
aput-object v2, v0, v1
sget-object v1, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
aput-object v1, v0, v3
const/4 v1, 0x2
const-class v2, Ljava/io/File;
aput-object v2, v0, v1
const/4 v1, 0x3
const-class v2, Ldalvik/system/DexFile;
aput-object v2, v0, v1
invoke-static {p1, v0}, Lcom/bytedance/boost_multidex/Utility;->findConstructor(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
move-result-object v0
iput-object v0, p0, Lcom/bytedance/boost_multidex/DexLoader$KKElementConstructor;->mConstructor:Ljava/lang/reflect/Constructor;
iget-object v0, p0, Lcom/bytedance/boost_multidex/DexLoader$KKElementConstructor;->mConstructor:Ljava/lang/reflect/Constructor;
invoke-virtual {v0, v3}, Ljava/lang/reflect/Constructor;->setAccessible(Z)V
return-void
.end method
# virtual methods
.method public newInstance(Ljava/io/File;Ljava/lang/Object;)Ljava/lang/Object;
.registers 7
const/4 v2, 0x0
iget-object v0, p0, Lcom/bytedance/boost_multidex/DexLoader$KKElementConstructor;->mConstructor:Ljava/lang/reflect/Constructor;
const/4 v1, 0x4
new-array v1, v1, [Ljava/lang/Object;
aput-object p1, v1, v2
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v2
const/4 v3, 0x1
aput-object v2, v1, v3
const/4 v2, 0x2
const/4 v3, 0x0
aput-object v3, v1, v2
const/4 v2, 0x3
aput-object p2, v1, v2
invoke-virtual {v0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method