.class Lcom/airbnb/lottie/parser/ShapeFillParser; .super Ljava/lang/Object; .source "ShapeFillParser.java" # static fields .field private static final NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options; # direct methods .method static constructor ()V .locals 6 const-string v0, "nm" const-string v1, "c" const-string v2, "o" const-string v3, "fillEnabled" const-string v4, "r" const-string v5, "hd" .line 16 filled-new-array/range {v0 .. v5}, [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/ShapeFillParser;->NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options; return-void .end method .method private constructor ()V .locals 0 .line 25 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method static parse(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/ShapeFill; .locals 10 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const/4 v0, 0x0 const/4 v1, 0x0 const/4 v2, 0x1 move-object v4, v0 move-object v7, v4 move v5, v1 move v9, v5 move v1, v2 .line 37 :goto_0 invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->hasNext()Z move-result v3 if-eqz v3, :cond_6 sget-object v3, Lcom/airbnb/lottie/parser/ShapeFillParser;->NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options; .line 38 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_5 if-eq v3, v2, :cond_4 const/4 v6, 0x2 if-eq v3, v6, :cond_3 const/4 v6, 0x3 if-eq v3, v6, :cond_2 const/4 v6, 0x4 if-eq v3, v6, :cond_1 const/4 v6, 0x5 if-eq v3, v6, :cond_0 .line 58 invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipName()V .line 59 invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipValue()V goto :goto_0 .line 55 :cond_0 invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextBoolean()Z move-result v9 goto :goto_0 .line 52 :cond_1 invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextInt()I move-result v1 goto :goto_0 .line 49 :cond_2 invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextBoolean()Z move-result v5 goto :goto_0 .line 46 :cond_3 invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/AnimatableValueParser;->parseInteger(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/animatable/AnimatableIntegerValue; move-result-object v0 goto :goto_0 .line 43 :cond_4 invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/AnimatableValueParser;->parseColor(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/animatable/AnimatableColorValue; move-result-object v7 goto :goto_0 .line 40 :cond_5 invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextString()Ljava/lang/String; move-result-object v4 goto :goto_0 :cond_6 if-nez v0, :cond_7 .line 65 new-instance v0, Lcom/airbnb/lottie/model/animatable/AnimatableIntegerValue; new-instance p0, Lcom/airbnb/lottie/value/Keyframe; const/16 p1, 0x64 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p1 invoke-direct {p0, p1}, Lcom/airbnb/lottie/value/Keyframe;->(Ljava/lang/Object;)V invoke-static {p0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List; move-result-object p0 invoke-direct {v0, p0}, Lcom/airbnb/lottie/model/animatable/AnimatableIntegerValue;->(Ljava/util/List;)V :cond_7 move-object v8, v0 if-ne v1, v2, :cond_8 .line 66 sget-object p0, Landroid/graphics/Path$FillType;->WINDING:Landroid/graphics/Path$FillType; goto :goto_1 :cond_8 sget-object p0, Landroid/graphics/Path$FillType;->EVEN_ODD:Landroid/graphics/Path$FillType; :goto_1 move-object v6, p0 .line 67 new-instance p0, Lcom/airbnb/lottie/model/content/ShapeFill; move-object v3, p0 invoke-direct/range {v3 .. v9}, Lcom/airbnb/lottie/model/content/ShapeFill;->(Ljava/lang/String;ZLandroid/graphics/Path$FillType;Lcom/airbnb/lottie/model/animatable/AnimatableColorValue;Lcom/airbnb/lottie/model/animatable/AnimatableIntegerValue;Z)V return-object p0 .end method