.class public Lcom/airbnb/lottie/parser/DocumentDataParser; .super Ljava/lang/Object; .source "DocumentDataParser.java" # interfaces .implements Lcom/airbnb/lottie/parser/ValueParser; # annotations .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Object;", "Lcom/airbnb/lottie/parser/ValueParser<", "Lcom/airbnb/lottie/model/DocumentData;", ">;" } .end annotation # static fields .field public static final INSTANCE:Lcom/airbnb/lottie/parser/DocumentDataParser; .field private static final NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options; # direct methods .method static constructor ()V .locals 14 .line 13 new-instance v0, Lcom/airbnb/lottie/parser/DocumentDataParser; invoke-direct {v0}, Lcom/airbnb/lottie/parser/DocumentDataParser;->()V sput-object v0, Lcom/airbnb/lottie/parser/DocumentDataParser;->INSTANCE:Lcom/airbnb/lottie/parser/DocumentDataParser; const-string v1, "t" const-string v2, "f" const-string v3, "s" const-string v4, "j" const-string v5, "tr" const-string v6, "lh" const-string v7, "ls" const-string v8, "fc" const-string v9, "sc" const-string v10, "sw" const-string v11, "of" const-string v12, "ps" const-string v13, "sz" .line 14 filled-new-array/range {v1 .. v13}, [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/DocumentDataParser;->NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options; return-void .end method .method private constructor ()V .locals 0 .line 30 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public parse(Lcom/airbnb/lottie/parser/moshi/JsonReader;F)Lcom/airbnb/lottie/model/DocumentData; .locals 19 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 38 sget-object v0, Lcom/airbnb/lottie/model/DocumentData$Justification;->CENTER:Lcom/airbnb/lottie/model/DocumentData$Justification; .line 49 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->beginObject()V const/4 v1, 0x0 const/4 v2, 0x0 const/4 v3, 0x0 const/4 v4, 0x1 move-object v9, v0 move-object v6, v1 move-object v7, v6 move-object/from16 v17, v7 move-object/from16 v18, v17 move v8, v2 move v11, v8 move v12, v11 move v15, v12 move v10, v3 move v13, v10 move v14, v13 move/from16 v16, v4 .line 50 :goto_0 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->hasNext()Z move-result v0 if-eqz v0, :cond_2 sget-object v0, Lcom/airbnb/lottie/parser/DocumentDataParser;->NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options; move-object/from16 v1, p1 .line 51 invoke-virtual {v1, v0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->selectName(Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;)I move-result v0 packed-switch v0, :pswitch_data_0 .line 101 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipName()V .line 102 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipValue()V goto :goto_0 .line 96 :pswitch_0 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->beginArray()V .line 97 new-instance v0, Landroid/graphics/PointF; invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextDouble()D move-result-wide v2 double-to-float v2, v2 mul-float v2, v2, p2 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextDouble()D move-result-wide v3 double-to-float v3, v3 mul-float v3, v3, p2 invoke-direct {v0, v2, v3}, Landroid/graphics/PointF;->(FF)V .line 98 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->endArray()V move-object/from16 v18, v0 goto :goto_0 .line 91 :pswitch_1 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->beginArray()V .line 92 new-instance v0, Landroid/graphics/PointF; invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextDouble()D move-result-wide v2 double-to-float v2, v2 mul-float v2, v2, p2 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextDouble()D move-result-wide v3 double-to-float v3, v3 mul-float v3, v3, p2 invoke-direct {v0, v2, v3}, Landroid/graphics/PointF;->(FF)V .line 93 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->endArray()V move-object/from16 v17, v0 goto :goto_0 .line 88 :pswitch_2 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextBoolean()Z move-result v16 goto :goto_0 .line 85 :pswitch_3 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextDouble()D move-result-wide v2 double-to-float v15, v2 goto :goto_0 .line 82 :pswitch_4 invoke-static/range {p1 .. p1}, Lcom/airbnb/lottie/parser/JsonUtils;->jsonToColor(Lcom/airbnb/lottie/parser/moshi/JsonReader;)I move-result v14 goto :goto_0 .line 79 :pswitch_5 invoke-static/range {p1 .. p1}, Lcom/airbnb/lottie/parser/JsonUtils;->jsonToColor(Lcom/airbnb/lottie/parser/moshi/JsonReader;)I move-result v13 goto :goto_0 .line 76 :pswitch_6 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextDouble()D move-result-wide v2 double-to-float v12, v2 goto :goto_0 .line 73 :pswitch_7 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextDouble()D move-result-wide v2 double-to-float v11, v2 goto :goto_0 .line 70 :pswitch_8 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextInt()I move-result v10 goto :goto_0 .line 62 :pswitch_9 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextInt()I move-result v0 .line 63 sget-object v2, Lcom/airbnb/lottie/model/DocumentData$Justification;->CENTER:Lcom/airbnb/lottie/model/DocumentData$Justification; invoke-virtual {v2}, Lcom/airbnb/lottie/model/DocumentData$Justification;->ordinal()I move-result v2 if-gt v0, v2, :cond_1 if-gez v0, :cond_0 goto :goto_1 .line 66 :cond_0 invoke-static {}, Lcom/airbnb/lottie/model/DocumentData$Justification;->values()[Lcom/airbnb/lottie/model/DocumentData$Justification; move-result-object v2 aget-object v9, v2, v0 goto/16 :goto_0 .line 64 :cond_1 :goto_1 sget-object v9, Lcom/airbnb/lottie/model/DocumentData$Justification;->CENTER:Lcom/airbnb/lottie/model/DocumentData$Justification; goto/16 :goto_0 .line 59 :pswitch_a invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextDouble()D move-result-wide v2 double-to-float v8, v2 goto/16 :goto_0 .line 56 :pswitch_b invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextString()Ljava/lang/String; move-result-object v7 goto/16 :goto_0 .line 53 :pswitch_c invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextString()Ljava/lang/String; move-result-object v6 goto/16 :goto_0 :cond_2 move-object/from16 v1, p1 .line 105 invoke-virtual/range {p1 .. p1}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->endObject()V .line 107 new-instance v0, Lcom/airbnb/lottie/model/DocumentData; move-object v5, v0 invoke-direct/range {v5 .. v18}, Lcom/airbnb/lottie/model/DocumentData;->(Ljava/lang/String;Ljava/lang/String;FLcom/airbnb/lottie/model/DocumentData$Justification;IFFIIFZLandroid/graphics/PointF;Landroid/graphics/PointF;)V return-object v0 nop :pswitch_data_0 .packed-switch 0x0 :pswitch_c :pswitch_b :pswitch_a :pswitch_9 :pswitch_8 :pswitch_7 :pswitch_6 :pswitch_5 :pswitch_4 :pswitch_3 :pswitch_2 :pswitch_1 :pswitch_0 .end packed-switch .end method .method public bridge synthetic parse(Lcom/airbnb/lottie/parser/moshi/JsonReader;F)Ljava/lang/Object; .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 12 invoke-virtual {p0, p1, p2}, Lcom/airbnb/lottie/parser/DocumentDataParser;->parse(Lcom/airbnb/lottie/parser/moshi/JsonReader;F)Lcom/airbnb/lottie/model/DocumentData; move-result-object p0 return-object p0 .end method