Rabbit-R1/switch port/smali/smali_classes3/kotlin/io/FilePathComponents.smali
2024-05-21 17:08:36 -04:00

446 lines
12 KiB
Smali

.class public final Lkotlin/io/FilePathComponents;
.super Ljava/lang/Object;
.source "FilePathComponents.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0002\u0008\u0004\n\u0002\u0010\u000e\n\u0002\u0008\u0005\n\u0002\u0010\u0008\n\u0002\u0008\r\u0008\u0080\u0008\u0018\u00002\u00020\u0001B\u001d\u0008\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u000c\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00020\u00030\u0005\u00a2\u0006\u0002\u0010\u0006J\t\u0010\u0016\u001a\u00020\u0003H\u00c6\u0003J\u000f\u0010\u0017\u001a\u0008\u0012\u0004\u0012\u00020\u00030\u0005H\u00c6\u0003J#\u0010\u0018\u001a\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00032\u000e\u0008\u0002\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00020\u00030\u0005H\u00c6\u0001J\u0013\u0010\u0019\u001a\u00020\u00082\u0008\u0010\u001a\u001a\u0004\u0018\u00010\u0001H\u00d6\u0003J\t\u0010\u001b\u001a\u00020\u0013H\u00d6\u0001J\u0016\u0010\u001c\u001a\u00020\u00032\u0006\u0010\u001d\u001a\u00020\u00132\u0006\u0010\u001e\u001a\u00020\u0013J\t\u0010\u001f\u001a\u00020\rH\u00d6\u0001R\u0011\u0010\u0007\u001a\u00020\u00088F\u00a2\u0006\u0006\u001a\u0004\u0008\u0007\u0010\tR\u0011\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\n\u0010\u000bR\u0011\u0010\u000c\u001a\u00020\r8F\u00a2\u0006\u0006\u001a\u0004\u0008\u000e\u0010\u000fR\u0017\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00020\u00030\u0005\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0010\u0010\u0011R\u0011\u0010\u0012\u001a\u00020\u00138F\u00a2\u0006\u0006\u001a\u0004\u0008\u0014\u0010\u0015\u00a8\u0006 "
}
d2 = {
"Lkotlin/io/FilePathComponents;",
"",
"root",
"Ljava/io/File;",
"segments",
"",
"(Ljava/io/File;Ljava/util/List;)V",
"isRooted",
"",
"()Z",
"getRoot",
"()Ljava/io/File;",
"rootName",
"",
"getRootName",
"()Ljava/lang/String;",
"getSegments",
"()Ljava/util/List;",
"size",
"",
"getSize",
"()I",
"component1",
"component2",
"copy",
"equals",
"other",
"hashCode",
"subPath",
"beginIndex",
"endIndex",
"toString",
"kotlin-stdlib"
}
k = 0x1
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private final root:Ljava/io/File;
.field private final segments:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/io/File;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/io/File;Ljava/util/List;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/io/File;",
"Ljava/util/List<",
"+",
"Ljava/io/File;",
">;)V"
}
.end annotation
const-string v0, "root"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "segments"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 94
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lkotlin/io/FilePathComponents;->root:Ljava/io/File;
iput-object p2, p0, Lkotlin/io/FilePathComponents;->segments:Ljava/util/List;
return-void
.end method
.method public static synthetic copy$default(Lkotlin/io/FilePathComponents;Ljava/io/File;Ljava/util/List;ILjava/lang/Object;)Lkotlin/io/FilePathComponents;
.locals 0
and-int/lit8 p4, p3, 0x1
if-eqz p4, :cond_0
iget-object p1, p0, Lkotlin/io/FilePathComponents;->root:Ljava/io/File;
:cond_0
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_1
iget-object p2, p0, Lkotlin/io/FilePathComponents;->segments:Ljava/util/List;
:cond_1
invoke-virtual {p0, p1, p2}, Lkotlin/io/FilePathComponents;->copy(Ljava/io/File;Ljava/util/List;)Lkotlin/io/FilePathComponents;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final component1()Ljava/io/File;
.locals 0
iget-object p0, p0, Lkotlin/io/FilePathComponents;->root:Ljava/io/File;
return-object p0
.end method
.method public final component2()Ljava/util/List;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/io/File;",
">;"
}
.end annotation
iget-object p0, p0, Lkotlin/io/FilePathComponents;->segments:Ljava/util/List;
return-object p0
.end method
.method public final copy(Ljava/io/File;Ljava/util/List;)Lkotlin/io/FilePathComponents;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/io/File;",
"Ljava/util/List<",
"+",
"Ljava/io/File;",
">;)",
"Lkotlin/io/FilePathComponents;"
}
.end annotation
const-string p0, "root"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string p0, "segments"
invoke-static {p2, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
new-instance p0, Lkotlin/io/FilePathComponents;
invoke-direct {p0, p1, p2}, Lkotlin/io/FilePathComponents;-><init>(Ljava/io/File;Ljava/util/List;)V
return-object p0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
instance-of v1, p1, Lkotlin/io/FilePathComponents;
const/4 v2, 0x0
if-nez v1, :cond_1
return v2
:cond_1
check-cast p1, Lkotlin/io/FilePathComponents;
iget-object v1, p0, Lkotlin/io/FilePathComponents;->root:Ljava/io/File;
iget-object v3, p1, Lkotlin/io/FilePathComponents;->root:Ljava/io/File;
invoke-static {v1, v3}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_2
return v2
:cond_2
iget-object p0, p0, Lkotlin/io/FilePathComponents;->segments:Ljava/util/List;
iget-object p1, p1, Lkotlin/io/FilePathComponents;->segments:Ljava/util/List;
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-nez p0, :cond_3
return v2
:cond_3
return v0
.end method
.method public final getRoot()Ljava/io/File;
.locals 0
iget-object p0, p0, Lkotlin/io/FilePathComponents;->root:Ljava/io/File;
return-object p0
.end method
.method public final getRootName()Ljava/lang/String;
.locals 1
iget-object p0, p0, Lkotlin/io/FilePathComponents;->root:Ljava/io/File;
.line 100
invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;
move-result-object p0
const-string v0, "getPath(...)"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public final getSegments()Ljava/util/List;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/io/File;",
">;"
}
.end annotation
iget-object p0, p0, Lkotlin/io/FilePathComponents;->segments:Ljava/util/List;
return-object p0
.end method
.method public final getSize()I
.locals 0
iget-object p0, p0, Lkotlin/io/FilePathComponents;->segments:Ljava/util/List;
.line 110
invoke-interface {p0}, Ljava/util/List;->size()I
move-result p0
return p0
.end method
.method public hashCode()I
.locals 1
iget-object v0, p0, Lkotlin/io/FilePathComponents;->root:Ljava/io/File;
invoke-virtual {v0}, Ljava/io/File;->hashCode()I
move-result v0
mul-int/lit8 v0, v0, 0x1f
iget-object p0, p0, Lkotlin/io/FilePathComponents;->segments:Ljava/util/List;
invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I
move-result p0
add-int/2addr v0, p0
return v0
.end method
.method public final isRooted()Z
.locals 1
iget-object p0, p0, Lkotlin/io/FilePathComponents;->root:Ljava/io/File;
.line 105
invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;
move-result-object p0
const-string v0, "getPath(...)"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p0, Ljava/lang/CharSequence;
invoke-interface {p0}, Ljava/lang/CharSequence;->length()I
move-result p0
if-lez p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public final subPath(II)Ljava/io/File;
.locals 10
if-ltz p1, :cond_0
if-gt p1, p2, :cond_0
.line 117
invoke-virtual {p0}, Lkotlin/io/FilePathComponents;->getSize()I
move-result v0
if-gt p2, v0, :cond_0
.line 120
new-instance v0, Ljava/io/File;
iget-object p0, p0, Lkotlin/io/FilePathComponents;->segments:Ljava/util/List;
invoke-interface {p0, p1, p2}, Ljava/util/List;->subList(II)Ljava/util/List;
move-result-object p0
move-object v1, p0
check-cast v1, Ljava/lang/Iterable;
sget-object p0, Ljava/io/File;->separator:Ljava/lang/String;
const-string p1, "separator"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
move-object v2, p0
check-cast v2, Ljava/lang/CharSequence;
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/16 v8, 0x3e
const/4 v9, 0x0
invoke-static/range {v1 .. v9}, Lkotlin/collections/CollectionsKt;->joinToString$default(Ljava/lang/Iterable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
return-object v0
.line 118
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p0
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "FilePathComponents(root="
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lkotlin/io/FilePathComponents;->root:Ljava/io/File;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", segments="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object p0, p0, Lkotlin/io/FilePathComponents;->segments:Ljava/util/List;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
const/16 v0, 0x29
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method