JSONPath$ac.smali

.class Lcom/tradplus/ads/common/serialization/JSONPath$ac;
.super Lcom/tradplus/ads/common/serialization/JSONPath$u;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/tradplus/ads/common/serialization/JSONPath;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = "ac"
.end annotation


# instance fields
.field private final f:[Ljava/lang/String;

.field private final g:Z


# direct methods
.method public constructor <init>(Ljava/lang/String;Z[Ljava/lang/String;Z)V
    .registers 5

    invoke-direct {p0, p1, p2}, Lcom/tradplus/ads/common/serialization/JSONPath$u;-><init>(Ljava/lang/String;Z)V

    iput-object p3, p0, Lcom/tradplus/ads/common/serialization/JSONPath$ac;->f:[Ljava/lang/String;

    iput-boolean p4, p0, Lcom/tradplus/ads/common/serialization/JSONPath$ac;->g:Z

    return-void
.end method


# virtual methods
.method public apply(Lcom/tradplus/ads/common/serialization/JSONPath;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
    .registers 6

    invoke-virtual {p0, p1, p2, p4}, Lcom/tradplus/ads/common/serialization/JSONPath$u;->a(Lcom/tradplus/ads/common/serialization/JSONPath;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    iget-object p2, p0, Lcom/tradplus/ads/common/serialization/JSONPath$ac;->f:[Ljava/lang/String;

    array-length p3, p2

    const/4 p4, 0x0

    :goto_8
    if-ge p4, p3, :cond_23

    aget-object v0, p2, p4

    if-ne v0, p1, :cond_13

    iget-boolean p1, p0, Lcom/tradplus/ads/common/serialization/JSONPath$ac;->g:Z

    xor-int/lit8 p1, p1, 0x1

    return p1

    :cond_13
    if-eqz v0, :cond_20

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_20

    iget-boolean p1, p0, Lcom/tradplus/ads/common/serialization/JSONPath$ac;->g:Z

    xor-int/lit8 p1, p1, 0x1

    return p1

    :cond_20
    add-int/lit8 p4, p4, 0x1

    goto :goto_8

    :cond_23
    iget-boolean p1, p0, Lcom/tradplus/ads/common/serialization/JSONPath$ac;->g:Z

    return p1
.end method