mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
127 lines
2.9 KiB
Smali
127 lines
2.9 KiB
Smali
.class Lcom/airbnb/lottie/parser/MergePathsParser;
|
|
.super Ljava/lang/Object;
|
|
.source "MergePathsParser.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const-string v0, "mm"
|
|
|
|
const-string v1, "hd"
|
|
|
|
const-string v2, "nm"
|
|
|
|
.line 9
|
|
filled-new-array {v2, v0, v1}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;->of([Ljava/lang/String;)Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/airbnb/lottie/parser/MergePathsParser;->NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 15
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static parse(Lcom/airbnb/lottie/parser/moshi/JsonReader;)Lcom/airbnb/lottie/model/content/MergePaths;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
move-object v1, v0
|
|
|
|
.line 23
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
sget-object v3, Lcom/airbnb/lottie/parser/MergePathsParser;->NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
|
|
|
|
.line 24
|
|
invoke-virtual {p0, v3}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->selectName(Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;)I
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-eq v3, v4, :cond_1
|
|
|
|
const/4 v4, 0x2
|
|
|
|
if-eq v3, v4, :cond_0
|
|
|
|
.line 35
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipName()V
|
|
|
|
.line 36
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipValue()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 32
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextBoolean()Z
|
|
|
|
move-result v2
|
|
|
|
goto :goto_0
|
|
|
|
.line 29
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextInt()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Lcom/airbnb/lottie/model/content/MergePaths$MergePathsMode;->forId(I)Lcom/airbnb/lottie/model/content/MergePaths$MergePathsMode;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
.line 26
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 40
|
|
:cond_3
|
|
new-instance p0, Lcom/airbnb/lottie/model/content/MergePaths;
|
|
|
|
invoke-direct {p0, v0, v1, v2}, Lcom/airbnb/lottie/model/content/MergePaths;-><init>(Ljava/lang/String;Lcom/airbnb/lottie/model/content/MergePaths$MergePathsMode;Z)V
|
|
|
|
return-object p0
|
|
.end method
|