apkfuckery/com.discord/smali_classes2/j0/u/c.smali

201 lines
4.2 KiB
Smali
Raw Normal View History

2020-07-20 19:00:44 +00:00
.class public final Lj0/u/c;
.super Ljava/lang/Object;
.source "Regex.kt"
# interfaces
.implements Lkotlin/text/MatchResult;
# instance fields
.field public a:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public final b:Ljava/util/regex/Matcher;
.field public final c:Ljava/lang/CharSequence;
# direct methods
.method public constructor <init>(Ljava/util/regex/Matcher;Ljava/lang/CharSequence;)V
.locals 0
if-eqz p2, :cond_0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lj0/u/c;->b:Ljava/util/regex/Matcher;
iput-object p2, p0, Lj0/u/c;->c:Ljava/lang/CharSequence;
return-void
:cond_0
const-string p1, "input"
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
# virtual methods
.method public getGroupValues()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
iget-object v0, p0, Lj0/u/c;->a:Ljava/util/List;
if-nez v0, :cond_0
new-instance v0, Lj0/u/c$a;
invoke-direct {v0, p0}, Lj0/u/c$a;-><init>(Lj0/u/c;)V
iput-object v0, p0, Lj0/u/c;->a:Ljava/util/List;
:cond_0
iget-object v0, p0, Lj0/u/c;->a:Ljava/util/List;
if-eqz v0, :cond_1
return-object v0
:cond_1
invoke-static {}, Lj0/o/c/h;->throwNpe()V
const/4 v0, 0x0
throw v0
.end method
.method public getRange()Lkotlin/ranges/IntRange;
.locals 2
iget-object v0, p0, Lj0/u/c;->b:Ljava/util/regex/Matcher;
invoke-virtual {v0}, Ljava/util/regex/Matcher;->start()I
move-result v1
invoke-virtual {v0}, Ljava/util/regex/Matcher;->end()I
move-result v0
invoke-static {v1, v0}, Lj0/r/f;->until(II)Lkotlin/ranges/IntRange;
move-result-object v0
return-object v0
.end method
.method public getValue()Ljava/lang/String;
.locals 2
iget-object v0, p0, Lj0/u/c;->b:Ljava/util/regex/Matcher;
invoke-virtual {v0}, Ljava/util/regex/Matcher;->group()Ljava/lang/String;
move-result-object v0
const-string v1, "matchResult.group()"
invoke-static {v0, v1}, Lj0/o/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
.end method
.method public next()Lkotlin/text/MatchResult;
.locals 4
iget-object v0, p0, Lj0/u/c;->b:Ljava/util/regex/Matcher;
invoke-virtual {v0}, Ljava/util/regex/Matcher;->end()I
move-result v0
iget-object v1, p0, Lj0/u/c;->b:Ljava/util/regex/Matcher;
invoke-virtual {v1}, Ljava/util/regex/Matcher;->end()I
move-result v1
iget-object v2, p0, Lj0/u/c;->b:Ljava/util/regex/Matcher;
invoke-virtual {v2}, Ljava/util/regex/Matcher;->start()I
move-result v2
if-ne v1, v2, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
add-int/2addr v0, v1
iget-object v1, p0, Lj0/u/c;->c:Ljava/lang/CharSequence;
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
move-result v1
const/4 v2, 0x0
if-gt v0, v1, :cond_2
iget-object v1, p0, Lj0/u/c;->b:Ljava/util/regex/Matcher;
invoke-virtual {v1}, Ljava/util/regex/Matcher;->pattern()Ljava/util/regex/Pattern;
move-result-object v1
iget-object v3, p0, Lj0/u/c;->c:Ljava/lang/CharSequence;
invoke-virtual {v1, v3}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object v1
const-string v3, "matcher.pattern().matcher(input)"
invoke-static {v1, v3}, Lj0/o/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v3, p0, Lj0/u/c;->c:Ljava/lang/CharSequence;
invoke-virtual {v1, v0}, Ljava/util/regex/Matcher;->find(I)Z
move-result v0
if-nez v0, :cond_1
goto :goto_1
:cond_1
new-instance v2, Lj0/u/c;
invoke-direct {v2, v1, v3}, Lj0/u/c;-><init>(Ljava/util/regex/Matcher;Ljava/lang/CharSequence;)V
:cond_2
:goto_1
return-object v2
.end method