JSONPath$w.smali
.class Lcom/tradplus/ads/common/serialization/JSONPath$w;
.super Ljava/lang/Object;
# interfaces
.implements Lcom/tradplus/ads/common/serialization/JSONPath$aa;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/tradplus/ads/common/serialization/JSONPath;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "w"
.end annotation
# instance fields
.field private final a:I
.field private final b:I
.field private final c:I
# direct methods
.method public constructor <init>(III)V
.registers 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lcom/tradplus/ads/common/serialization/JSONPath$w;->a:I
iput p2, p0, Lcom/tradplus/ads/common/serialization/JSONPath$w;->b:I
iput p3, p0, Lcom/tradplus/ads/common/serialization/JSONPath$w;->c:I
return-void
.end method
# virtual methods
.method public eval(Lcom/tradplus/ads/common/serialization/JSONPath;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.registers 8
sget-object v0, Lcom/tradplus/ads/common/serialization/JSONPath$ab;->instance:Lcom/tradplus/ads/common/serialization/JSONPath$ab;
invoke-virtual {v0, p1, p2, p3}, Lcom/tradplus/ads/common/serialization/JSONPath$ab;->eval(Lcom/tradplus/ads/common/serialization/JSONPath;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Integer;
move-result-object p2
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
move-result p2
iget v0, p0, Lcom/tradplus/ads/common/serialization/JSONPath$w;->a:I
if-ltz v0, :cond_f
goto :goto_10
:cond_f
add-int/2addr v0, p2
:goto_10
iget v1, p0, Lcom/tradplus/ads/common/serialization/JSONPath$w;->b:I
if-ltz v1, :cond_15
goto :goto_16
:cond_15
add-int/2addr v1, p2
:goto_16
sub-int v2, v1, v0
iget v3, p0, Lcom/tradplus/ads/common/serialization/JSONPath$w;->c:I
div-int/2addr v2, v3
add-int/lit8 v2, v2, 0x1
const/4 v3, -0x1
if-ne v2, v3, :cond_22
const/4 p1, 0x0
return-object p1
:cond_22
new-instance v3, Ljava/util/ArrayList;
invoke-direct {v3, v2}, Ljava/util/ArrayList;-><init>(I)V
:goto_27
if-gt v0, v1, :cond_36
if-ge v0, p2, :cond_36
invoke-virtual {p1, p3, v0}, Lcom/tradplus/ads/common/serialization/JSONPath;->a(Ljava/lang/Object;I)Ljava/lang/Object;
move-result-object v2
invoke-interface {v3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
iget v2, p0, Lcom/tradplus/ads/common/serialization/JSONPath$w;->c:I
add-int/2addr v0, v2
goto :goto_27
:cond_36
return-object v3
.end method
.method public extract(Lcom/tradplus/ads/common/serialization/JSONPath;Lcom/tradplus/ads/common/serialization/parser/DefaultJSONParser;Lcom/tradplus/ads/common/serialization/JSONPath$b;)V
.registers 4
new-instance p1, Ljava/lang/UnsupportedOperationException;
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p1
.end method