Retrofit$1.smali
3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.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 = 0x0
name = null
.end annotation
# instance fields
.field private final platform:Lretrofit2/Platform;
.field final synthetic this$0:Lretrofit2/Retrofit;
.field final synthetic val$service:Ljava/lang/Class;
# direct methods
.method constructor <init>(Lretrofit2/Retrofit;Ljava/lang/Class;)V
.locals 0
.line 134
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 135
invoke-static {}, Lretrofit2/Platform;->get()Lretrofit2/Platform;
move-result-object p1
iput-object p1, p0, Lretrofit2/Retrofit$1;->platform:Lretrofit2/Platform;
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
.line 140
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 141
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 143
: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 144
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 146
:cond_1
iget-object p1, p0, Lretrofit2/Retrofit$1;->this$0:Lretrofit2/Retrofit;
.line 147
invoke-virtual {p1, p2}, Lretrofit2/Retrofit;->loadServiceMethod(Ljava/lang/reflect/Method;)Lretrofit2/ServiceMethod;
move-result-object p1
.line 148
new-instance p2, Lretrofit2/OkHttpCall;
invoke-direct {p2, p1, p3}, Lretrofit2/OkHttpCall;-><init>(Lretrofit2/ServiceMethod;[Ljava/lang/Object;)V
.line 149
invoke-virtual {p1, p2}, Lretrofit2/ServiceMethod;->adapt(Lretrofit2/Call;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method