198 lines
5.1 KiB
Smali
198 lines
5.1 KiB
Smali
|
|
.class public Lkotlin/internal/jdk8/JDK8PlatformImplementations;
|
||
|
|
.super Lkotlin/internal/jdk7/JDK7PlatformImplementations;
|
||
|
|
.source "JDK8PlatformImplementations.kt"
|
||
|
|
|
||
|
|
|
||
|
|
# annotations
|
||
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
|
value = {
|
||
|
|
Lkotlin/internal/jdk8/JDK8PlatformImplementations$ReflectSdkVersion;
|
||
|
|
}
|
||
|
|
.end annotation
|
||
|
|
|
||
|
|
.annotation runtime Lkotlin/Metadata;
|
||
|
|
d1 = {
|
||
|
|
"\u00002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0002\u0008\u0010\u0018\u00002\u00020\u0001:\u0001\u000fB\u0005\u00a2\u0006\u0002\u0010\u0002J\u0008\u0010\u0003\u001a\u00020\u0004H\u0016J\u001a\u0010\u0005\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0007\u001a\u00020\u00082\u0006\u0010\t\u001a\u00020\nH\u0016J\u0010\u0010\u000b\u001a\u00020\u000c2\u0006\u0010\r\u001a\u00020\u000eH\u0002\u00a8\u0006\u0010"
|
||
|
|
}
|
||
|
|
d2 = {
|
||
|
|
"Lkotlin/internal/jdk8/JDK8PlatformImplementations;",
|
||
|
|
"Lkotlin/internal/jdk7/JDK7PlatformImplementations;",
|
||
|
|
"()V",
|
||
|
|
"defaultPlatformRandom",
|
||
|
|
"Lkotlin/random/Random;",
|
||
|
|
"getMatchResultNamedGroup",
|
||
|
|
"Lkotlin/text/MatchGroup;",
|
||
|
|
"matchResult",
|
||
|
|
"Ljava/util/regex/MatchResult;",
|
||
|
|
"name",
|
||
|
|
"",
|
||
|
|
"sdkIsNullOrAtLeast",
|
||
|
|
"",
|
||
|
|
"version",
|
||
|
|
"",
|
||
|
|
"ReflectSdkVersion",
|
||
|
|
"kotlin-stdlib-jdk8"
|
||
|
|
}
|
||
|
|
k = 0x1
|
||
|
|
mv = {
|
||
|
|
0x1,
|
||
|
|
0x7,
|
||
|
|
0x1
|
||
|
|
}
|
||
|
|
xi = 0x30
|
||
|
|
.end annotation
|
||
|
|
|
||
|
|
|
||
|
|
# direct methods
|
||
|
|
.method public constructor <init>()V
|
||
|
|
.locals 0
|
||
|
|
|
||
|
|
.line 27
|
||
|
|
invoke-direct {p0}, Lkotlin/internal/jdk7/JDK7PlatformImplementations;-><init>()V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method private final sdkIsNullOrAtLeast(I)Z
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 40
|
||
|
|
sget-object v0, Lkotlin/internal/jdk8/JDK8PlatformImplementations$ReflectSdkVersion;->sdkVersion:Ljava/lang/Integer;
|
||
|
|
|
||
|
|
if-eqz v0, :cond_1
|
||
|
|
|
||
|
|
sget-object v0, Lkotlin/internal/jdk8/JDK8PlatformImplementations$ReflectSdkVersion;->sdkVersion:Ljava/lang/Integer;
|
||
|
|
|
||
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
||
|
|
|
||
|
|
move-result v0
|
||
|
|
|
||
|
|
if-lt v0, p1, :cond_0
|
||
|
|
|
||
|
|
goto :goto_0
|
||
|
|
|
||
|
|
:cond_0
|
||
|
|
const/4 p1, 0x0
|
||
|
|
|
||
|
|
goto :goto_1
|
||
|
|
|
||
|
|
:cond_1
|
||
|
|
:goto_0
|
||
|
|
const/4 p1, 0x1
|
||
|
|
|
||
|
|
:goto_1
|
||
|
|
return p1
|
||
|
|
.end method
|
||
|
|
|
||
|
|
|
||
|
|
# virtual methods
|
||
|
|
.method public defaultPlatformRandom()Lkotlin/random/Random;
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
const/16 v0, 0x22
|
||
|
|
|
||
|
|
.line 58
|
||
|
|
invoke-direct {p0, v0}, Lkotlin/internal/jdk8/JDK8PlatformImplementations;->sdkIsNullOrAtLeast(I)Z
|
||
|
|
|
||
|
|
move-result v0
|
||
|
|
|
||
|
|
if-eqz v0, :cond_0
|
||
|
|
|
||
|
|
new-instance v0, Lkotlin/random/jdk8/PlatformThreadLocalRandom;
|
||
|
|
|
||
|
|
invoke-direct {v0}, Lkotlin/random/jdk8/PlatformThreadLocalRandom;-><init>()V
|
||
|
|
|
||
|
|
check-cast v0, Lkotlin/random/Random;
|
||
|
|
|
||
|
|
goto :goto_0
|
||
|
|
|
||
|
|
:cond_0
|
||
|
|
invoke-super {p0}, Lkotlin/internal/jdk7/JDK7PlatformImplementations;->defaultPlatformRandom()Lkotlin/random/Random;
|
||
|
|
|
||
|
|
move-result-object v0
|
||
|
|
|
||
|
|
:goto_0
|
||
|
|
return-object v0
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public getMatchResultNamedGroup(Ljava/util/regex/MatchResult;Ljava/lang/String;)Lkotlin/text/MatchGroup;
|
||
|
|
.locals 4
|
||
|
|
|
||
|
|
const-string v0, "matchResult"
|
||
|
|
|
||
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
|
||
|
|
const-string v0, "name"
|
||
|
|
|
||
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
|
||
|
|
.line 43
|
||
|
|
instance-of v0, p1, Ljava/util/regex/Matcher;
|
||
|
|
|
||
|
|
const/4 v1, 0x0
|
||
|
|
|
||
|
|
if-eqz v0, :cond_0
|
||
|
|
|
||
|
|
check-cast p1, Ljava/util/regex/Matcher;
|
||
|
|
|
||
|
|
goto :goto_0
|
||
|
|
|
||
|
|
:cond_0
|
||
|
|
move-object p1, v1
|
||
|
|
|
||
|
|
:goto_0
|
||
|
|
if-eqz p1, :cond_2
|
||
|
|
|
||
|
|
.line 45
|
||
|
|
new-instance v0, Lkotlin/ranges/IntRange;
|
||
|
|
|
||
|
|
invoke-virtual {p1, p2}, Ljava/util/regex/Matcher;->start(Ljava/lang/String;)I
|
||
|
|
|
||
|
|
move-result v2
|
||
|
|
|
||
|
|
invoke-virtual {p1, p2}, Ljava/util/regex/Matcher;->end(Ljava/lang/String;)I
|
||
|
|
|
||
|
|
move-result v3
|
||
|
|
|
||
|
|
add-int/lit8 v3, v3, -0x1
|
||
|
|
|
||
|
|
invoke-direct {v0, v2, v3}, Lkotlin/ranges/IntRange;-><init>(II)V
|
||
|
|
|
||
|
|
.line 46
|
||
|
|
invoke-virtual {v0}, Lkotlin/ranges/IntRange;->getStart()Ljava/lang/Integer;
|
||
|
|
|
||
|
|
move-result-object v2
|
||
|
|
|
||
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
||
|
|
|
||
|
|
move-result v2
|
||
|
|
|
||
|
|
if-ltz v2, :cond_1
|
||
|
|
|
||
|
|
.line 47
|
||
|
|
new-instance v1, Lkotlin/text/MatchGroup;
|
||
|
|
|
||
|
|
invoke-virtual {p1, p2}, Ljava/util/regex/Matcher;->group(Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
|
||
|
|
move-result-object p1
|
||
|
|
|
||
|
|
const-string p2, "matcher.group(name)"
|
||
|
|
|
||
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
|
||
|
|
invoke-direct {v1, p1, v0}, Lkotlin/text/MatchGroup;-><init>(Ljava/lang/String;Lkotlin/ranges/IntRange;)V
|
||
|
|
|
||
|
|
:cond_1
|
||
|
|
return-object v1
|
||
|
|
|
||
|
|
.line 43
|
||
|
|
:cond_2
|
||
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||
|
|
|
||
|
|
const-string p2, "Retrieving groups by name is not supported on this platform."
|
||
|
|
|
||
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
||
|
|
|
||
|
|
throw p1
|
||
|
|
.end method
|