Weather/smali/com/alibaba/fastjson/JSONPath$IntBetweenSegement.smali
2021-05-10 10:13:34 +02:00

109 lines
2.5 KiB
Smali

.class Lcom/alibaba/fastjson/JSONPath$IntBetweenSegement;
.super Ljava/lang/Object;
.source "JSONPath.java"
# interfaces
.implements Lcom/alibaba/fastjson/JSONPath$Filter;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/alibaba/fastjson/JSONPath;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "IntBetweenSegement"
.end annotation
# instance fields
.field private final endValue:J
.field private final not:Z
.field private final propertyName:Ljava/lang/String;
.field private final startValue:J
# direct methods
.method public constructor <init>(Ljava/lang/String;JJZ)V
.locals 0
.line 1214
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 1215
iput-object p1, p0, Lcom/alibaba/fastjson/JSONPath$IntBetweenSegement;->propertyName:Ljava/lang/String;
.line 1216
iput-wide p2, p0, Lcom/alibaba/fastjson/JSONPath$IntBetweenSegement;->startValue:J
.line 1217
iput-wide p4, p0, Lcom/alibaba/fastjson/JSONPath$IntBetweenSegement;->endValue:J
.line 1218
iput-boolean p6, p0, Lcom/alibaba/fastjson/JSONPath$IntBetweenSegement;->not:Z
return-void
.end method
# virtual methods
.method public apply(Lcom/alibaba/fastjson/JSONPath;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
.locals 1
.line 1222
iget-object p2, p0, Lcom/alibaba/fastjson/JSONPath$IntBetweenSegement;->propertyName:Ljava/lang/String;
const/4 p3, 0x0
invoke-virtual {p1, p4, p2, p3}, Lcom/alibaba/fastjson/JSONPath;->getPropertyValue(Ljava/lang/Object;Ljava/lang/String;Z)Ljava/lang/Object;
move-result-object p1
if-nez p1, :cond_0
return p3
.line 1228
:cond_0
instance-of p2, p1, Ljava/lang/Number;
if-eqz p2, :cond_1
.line 1229
check-cast p1, Ljava/lang/Number;
invoke-virtual {p1}, Ljava/lang/Number;->longValue()J
move-result-wide p1
.line 1230
iget-wide p3, p0, Lcom/alibaba/fastjson/JSONPath$IntBetweenSegement;->startValue:J
cmp-long v0, p1, p3
if-ltz v0, :cond_1
iget-wide p3, p0, Lcom/alibaba/fastjson/JSONPath$IntBetweenSegement;->endValue:J
cmp-long v0, p1, p3
if-gtz v0, :cond_1
.line 1231
iget-boolean p1, p0, Lcom/alibaba/fastjson/JSONPath$IntBetweenSegement;->not:Z
xor-int/lit8 p1, p1, 0x1
return p1
.line 1235
:cond_1
iget-boolean p1, p0, Lcom/alibaba/fastjson/JSONPath$IntBetweenSegement;->not:Z
return p1
.end method