225 lines
5.6 KiB
Smali
225 lines
5.6 KiB
Smali
.class public final Lf/k/a/b/h1/p/c$b;
|
|
.super Ljava/lang/Object;
|
|
.source "SsaStyle.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lf/k/a/b/h1/p/c;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "b"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final c:Ljava/util/regex/Pattern;
|
|
|
|
.field public static final d:Ljava/util/regex/Pattern;
|
|
|
|
.field public static final e:Ljava/util/regex/Pattern;
|
|
|
|
.field public static final f:Ljava/util/regex/Pattern;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:I
|
|
|
|
.field public final b:Landroid/graphics/PointF;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const-string v0, "\\{([^}]*)\\}"
|
|
|
|
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lf/k/a/b/h1/p/c$b;->c:Ljava/util/regex/Pattern;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v1, v0, [Ljava/lang/Object;
|
|
|
|
const-string v2, "\\s*\\d+(?:\\.\\d+)?\\s*"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
const-string v4, "\\\\pos\\((%1$s),(%1$s)\\)"
|
|
|
|
invoke-static {v4, v1}, Lf/k/a/b/l1/f0;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v1
|
|
|
|
sput-object v1, Lf/k/a/b/h1/p/c$b;->d:Ljava/util/regex/Pattern;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
aput-object v2, v0, v3
|
|
|
|
const-string v1, "\\\\move\\(%1$s,%1$s,(%1$s),(%1$s)(?:,%1$s,%1$s)?\\)"
|
|
|
|
invoke-static {v1, v0}, Lf/k/a/b/l1/f0;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lf/k/a/b/h1/p/c$b;->e:Ljava/util/regex/Pattern;
|
|
|
|
const-string v0, "\\\\an(\\d+)"
|
|
|
|
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lf/k/a/b/h1/p/c$b;->f:Ljava/util/regex/Pattern;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(ILandroid/graphics/PointF;)V
|
|
.locals 0
|
|
.param p2 # Landroid/graphics/PointF;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput p1, p0, Lf/k/a/b/h1/p/c$b;->a:I
|
|
|
|
iput-object p2, p0, Lf/k/a/b/h1/p/c$b;->b:Landroid/graphics/PointF;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/String;)Landroid/graphics/PointF;
|
|
.locals 6
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
sget-object v0, Lf/k/a/b/h1/p/c$b;->d:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v0, p0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lf/k/a/b/h1/p/c$b;->e:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v1, p0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0}, Ljava/util/regex/Matcher;->find()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1}, Ljava/util/regex/Matcher;->find()Z
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Override has both \\pos(x,y) and \\move(x1,y1,x2,y2); using \\pos values. override=\'"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, "\'"
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v1, "SsaStyle.Overrides"
|
|
|
|
invoke-static {v1, p0}, Lf/k/a/b/l1/o;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, v5}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, v4}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-eqz v3, :cond_2
|
|
|
|
invoke-virtual {v1, v5}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v1, v4}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
new-instance v1, Landroid/graphics/PointF;
|
|
|
|
invoke-static {p0}, Lf/k/a/b/l1/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
check-cast p0, Ljava/lang/String;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F
|
|
|
|
move-result p0
|
|
|
|
invoke-static {v0}, Lf/k/a/b/l1/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {v1, p0, v0}, Landroid/graphics/PointF;-><init>(FF)V
|
|
|
|
return-object v1
|
|
|
|
:cond_2
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|