tmap/smali_classes6/retrofit2/Retrofit$1.smali
2022-06-10 21:38:30 +09:00

134 lines
3.3 KiB
Smali

.class Lretrofit2/Retrofit$1;
.super Ljava/lang/Object;
.source "Retrofit.java"
# interfaces
.implements Ljava/lang/reflect/InvocationHandler;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lretrofit2/Retrofit;->create(Ljava/lang/Class;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field private final emptyArgs:[Ljava/lang/Object;
.field private final platform:Lretrofit2/Platform;
.field public final synthetic this$0:Lretrofit2/Retrofit;
.field public final synthetic val$service:Ljava/lang/Class;
# direct methods
.method public constructor <init>(Lretrofit2/Retrofit;Ljava/lang/Class;)V
.locals 0
.line 1
iput-object p1, p0, Lretrofit2/Retrofit$1;->this$0:Lretrofit2/Retrofit;
iput-object p2, p0, Lretrofit2/Retrofit$1;->val$service:Ljava/lang/Class;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
invoke-static {}, Lretrofit2/Platform;->get()Lretrofit2/Platform;
move-result-object p1
iput-object p1, p0, Lretrofit2/Retrofit$1;->platform:Lretrofit2/Platform;
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
.line 3
iput-object p1, p0, Lretrofit2/Retrofit$1;->emptyArgs:[Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 2
.param p3 # [Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 1
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getDeclaringClass()Ljava/lang/Class;
move-result-object v0
const-class v1, Ljava/lang/Object;
if-ne v0, v1, :cond_0
.line 2
invoke-virtual {p2, p0, p3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.line 3
:cond_0
iget-object v0, p0, Lretrofit2/Retrofit$1;->platform:Lretrofit2/Platform;
invoke-virtual {v0, p2}, Lretrofit2/Platform;->isDefaultMethod(Ljava/lang/reflect/Method;)Z
move-result v0
if-eqz v0, :cond_1
.line 4
iget-object v0, p0, Lretrofit2/Retrofit$1;->platform:Lretrofit2/Platform;
iget-object v1, p0, Lretrofit2/Retrofit$1;->val$service:Ljava/lang/Class;
invoke-virtual {v0, p2, v1, p1, p3}, Lretrofit2/Platform;->invokeDefaultMethod(Ljava/lang/reflect/Method;Ljava/lang/Class;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.line 5
:cond_1
iget-object p1, p0, Lretrofit2/Retrofit$1;->this$0:Lretrofit2/Retrofit;
invoke-virtual {p1, p2}, Lretrofit2/Retrofit;->loadServiceMethod(Ljava/lang/reflect/Method;)Lretrofit2/ServiceMethod;
move-result-object p1
if-eqz p3, :cond_2
goto :goto_0
:cond_2
iget-object p3, p0, Lretrofit2/Retrofit$1;->emptyArgs:[Ljava/lang/Object;
:goto_0
invoke-virtual {p1, p3}, Lretrofit2/ServiceMethod;->invoke([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method