2020-03-24 03:54:23 +08:00
|
|
|
.class public Lb/a/g/a;
|
|
|
|
.super Ljava/lang/Object;
|
2020-01-11 23:35:37 +08:00
|
|
|
.source ""
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-03-24 03:54:23 +08:00
|
|
|
.method public static a(Ljava/util/Map;)Ljava/lang/String;
|
|
|
|
.locals 3
|
2020-01-11 23:35:37 +08:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
2020-03-24 03:54:23 +08:00
|
|
|
"Ljava/util/Map<",
|
2020-01-11 23:35:37 +08:00
|
|
|
"Ljava/lang/String;",
|
2020-03-24 03:54:23 +08:00
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;)",
|
|
|
|
"Ljava/lang/String;"
|
2020-01-11 23:35:37 +08:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object p0
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object p0
|
2020-01-11 23:35:37 +08:00
|
|
|
|
|
|
|
:goto_0
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
2020-01-11 23:35:37 +08:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
if-eqz v1, :cond_1
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object v1
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
check-cast v1, Ljava/util/Map$Entry;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result v2
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
if-lez v2, :cond_0
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
const-string v2, "&"
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
:cond_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object v2
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
check-cast v2, Ljava/lang/String;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-static {v2}, Lb/a/e/a;->b(Ljava/lang/String;)Ljava/lang/String;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object v2
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
const-string v2, "="
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object v1
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
check-cast v1, Ljava/lang/String;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-static {v1}, Lb/a/e/a;->b(Ljava/lang/String;)Ljava/lang/String;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object v1
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object p0
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
return-object p0
|
|
|
|
.end method
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
.method public static a(Ljava/lang/String;)Ljava/util/Map;
|
|
|
|
.locals 8
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
")",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
new-instance v0, Ljava/util/HashMap;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
const-string v1, "&"
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object p0
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
array-length v1, p0
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
const/4 v2, 0x0
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
const/4 v3, 0x0
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
:goto_0
|
|
|
|
if-ge v3, v1, :cond_1
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
aget-object v4, p0, v3
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
const-string v5, "="
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object v4
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
aget-object v5, v4, v2
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-static {v5}, Lb/a/e/a;->a(Ljava/lang/String;)Ljava/lang/String;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object v5
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
array-length v6, v4
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
const/4 v7, 0x1
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
if-le v6, v7, :cond_0
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
aget-object v4, v4, v7
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
invoke-static {v4}, Lb/a/e/a;->a(Ljava/lang/String;)Ljava/lang/String;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
move-result-object v4
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
goto :goto_1
|
2020-01-11 23:35:37 +08:00
|
|
|
|
|
|
|
:cond_0
|
2020-03-24 03:54:23 +08:00
|
|
|
const-string v4, ""
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
:goto_1
|
|
|
|
invoke-interface {v0, v5, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-01-11 23:35:37 +08:00
|
|
|
|
2020-03-24 03:54:23 +08:00
|
|
|
add-int/lit8 v3, v3, 0x1
|
2020-01-11 23:35:37 +08:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2020-03-24 03:54:23 +08:00
|
|
|
return-object v0
|
2020-01-11 23:35:37 +08:00
|
|
|
.end method
|