.class Lcom/moji/lottie/ShapeFill;
.super Ljava/lang/Object;
.source "ShapeFill.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/lottie/ShapeFill$Factory;
    }
.end annotation


# instance fields
.field private final a:Z

.field private final b:Landroid/graphics/Path$FillType;

.field private final c:Ljava/lang/String;

.field private final d:Lcom/moji/lottie/AnimatableColorValue;
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation
.end field

.field private final e:Lcom/moji/lottie/AnimatableIntegerValue;
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation
.end field


# direct methods
.method private constructor <init>(Ljava/lang/String;ZLandroid/graphics/Path$FillType;Lcom/moji/lottie/AnimatableColorValue;Lcom/moji/lottie/AnimatableIntegerValue;)V
    .locals 0
    .param p4    # Lcom/moji/lottie/AnimatableColorValue;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param
    .param p5    # Lcom/moji/lottie/AnimatableIntegerValue;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param

    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 19
    iput-object p1, p0, Lcom/moji/lottie/ShapeFill;->c:Ljava/lang/String;

    .line 20
    iput-boolean p2, p0, Lcom/moji/lottie/ShapeFill;->a:Z

    .line 21
    iput-object p3, p0, Lcom/moji/lottie/ShapeFill;->b:Landroid/graphics/Path$FillType;

    .line 22
    iput-object p4, p0, Lcom/moji/lottie/ShapeFill;->d:Lcom/moji/lottie/AnimatableColorValue;

    .line 23
    iput-object p5, p0, Lcom/moji/lottie/ShapeFill;->e:Lcom/moji/lottie/AnimatableIntegerValue;

    return-void
.end method

.method synthetic constructor <init>(Ljava/lang/String;ZLandroid/graphics/Path$FillType;Lcom/moji/lottie/AnimatableColorValue;Lcom/moji/lottie/AnimatableIntegerValue;Lcom/moji/lottie/ShapeFill$1;)V
    .locals 0

    .line 8
    invoke-direct/range {p0 .. p5}, Lcom/moji/lottie/ShapeFill;-><init>(Ljava/lang/String;ZLandroid/graphics/Path$FillType;Lcom/moji/lottie/AnimatableColorValue;Lcom/moji/lottie/AnimatableIntegerValue;)V

    return-void
.end method


# virtual methods
.method a()Ljava/lang/String;
    .locals 1

    .line 55
    iget-object v0, p0, Lcom/moji/lottie/ShapeFill;->c:Ljava/lang/String;

    return-object v0
.end method

.method b()Lcom/moji/lottie/AnimatableColorValue;
    .locals 1
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    .line 60
    iget-object v0, p0, Lcom/moji/lottie/ShapeFill;->d:Lcom/moji/lottie/AnimatableColorValue;

    return-object v0
.end method

.method c()Lcom/moji/lottie/AnimatableIntegerValue;
    .locals 1
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    .line 65
    iget-object v0, p0, Lcom/moji/lottie/ShapeFill;->e:Lcom/moji/lottie/AnimatableIntegerValue;

    return-object v0
.end method

.method d()Landroid/graphics/Path$FillType;
    .locals 1

    .line 69
    iget-object v0, p0, Lcom/moji/lottie/ShapeFill;->b:Landroid/graphics/Path$FillType;

    return-object v0
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .line 74
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "ShapeFill{color="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/moji/lottie/ShapeFill;->d:Lcom/moji/lottie/AnimatableColorValue;

    if-nez v1, :cond_0

    const-string v1, "null"

    goto :goto_0

    :cond_0
    iget-object v1, p0, Lcom/moji/lottie/ShapeFill;->d:Lcom/moji/lottie/AnimatableColorValue;

    .line 75
    invoke-virtual {v1}, Lcom/moji/lottie/AnimatableColorValue;->d()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v1

    :goto_0
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ", fillEnabled="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v1, p0, Lcom/moji/lottie/ShapeFill;->a:Z

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v1, ", opacity="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/moji/lottie/ShapeFill;->e:Lcom/moji/lottie/AnimatableIntegerValue;

    if-nez v1, :cond_1

    const-string v1, "null"

    goto :goto_1

    :cond_1
    iget-object v1, p0, Lcom/moji/lottie/ShapeFill;->e:Lcom/moji/lottie/AnimatableIntegerValue;

    .line 77
    invoke-virtual {v1}, Lcom/moji/lottie/AnimatableIntegerValue;->c()Ljava/lang/Integer;

    move-result-object v1

    :goto_1
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const/16 v1, 0x7d

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
