2020-11-12 02:11:44 +00:00
|
|
|
.class public final Lcom/discord/utilities/textprocessing/Rules$createHookedLinkRule$1;
|
|
|
|
.super Lcom/discord/simpleast/core/parser/Rule;
|
|
|
|
.source "Rules.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/utilities/textprocessing/Rules;->createHookedLinkRule()Lcom/discord/simpleast/core/parser/Rule;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lcom/discord/simpleast/core/parser/Rule<",
|
|
|
|
"TT;",
|
|
|
|
"Lcom/discord/simpleast/core/node/Node<",
|
|
|
|
"TT;>;TS;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic this$0:Lcom/discord/utilities/textprocessing/Rules;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/utilities/textprocessing/Rules;Ljava/util/regex/Pattern;)V
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/regex/Pattern;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/textprocessing/Rules$createHookedLinkRule$1;->this$0:Lcom/discord/utilities/textprocessing/Rules;
|
|
|
|
|
|
|
|
invoke-direct {p0, p2}, Lcom/discord/simpleast/core/parser/Rule;-><init>(Ljava/util/regex/Pattern;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public parse(Ljava/util/regex/Matcher;Lcom/discord/simpleast/core/parser/Parser;Ljava/lang/Object;)Lcom/discord/simpleast/core/parser/ParseSpec;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/regex/Matcher;",
|
|
|
|
"Lcom/discord/simpleast/core/parser/Parser<",
|
|
|
|
"TT;-",
|
|
|
|
"Lcom/discord/simpleast/core/node/Node<",
|
|
|
|
"TT;>;TS;>;TS;)",
|
|
|
|
"Lcom/discord/simpleast/core/parser/ParseSpec<",
|
|
|
|
"TT;TS;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "matcher"
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-static {p1, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v0, "parser"
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-static {p2, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
new-instance p2, Lcom/discord/simpleast/core/node/StyleNode;
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
sget-object v0, Ly/h/l;->d:Ly/h/l;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-direct {p2, v0}, Lcom/discord/simpleast/core/node/StyleNode;-><init>(Ljava/util/List;)V
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Ljava/util/regex/Matcher;->start(I)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Ljava/util/regex/Matcher;->end(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
const-string v0, "node"
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-static {p2, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/simpleast/core/parser/ParseSpec;
|
|
|
|
|
|
|
|
invoke-direct {v0, p2, p3, v1, p1}, Lcom/discord/simpleast/core/parser/ParseSpec;-><init>(Lcom/discord/simpleast/core/node/Node;Ljava/lang/Object;II)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|