Rabbit-R1/original r1/smali/smali_classes2/androidx/navigation/NavDeepLinkDslBuilder.smali
2024-05-21 17:08:36 -04:00

219 lines
6.4 KiB
Smali

.class public final Landroidx/navigation/NavDeepLinkDslBuilder;
.super Ljava/lang/Object;
.source "NavDeepLinkDslBuilder.kt"
# annotations
.annotation runtime Landroidx/navigation/NavDeepLinkDsl;
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nNavDeepLinkDslBuilder.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NavDeepLinkDslBuilder.kt\nandroidx/navigation/NavDeepLinkDslBuilder\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,68:1\n1#2:69\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0007\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\r\u0010\u0012\u001a\u00020\u0013H\u0000\u00a2\u0006\u0002\u0008\u0014R(\u0010\u0005\u001a\u0004\u0018\u00010\u00042\u0008\u0010\u0003\u001a\u0004\u0018\u00010\u0004@FX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0006\u0010\u0007\"\u0004\u0008\u0008\u0010\tR\u000e\u0010\n\u001a\u00020\u000bX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u001c\u0010\u000c\u001a\u0004\u0018\u00010\u0004X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\r\u0010\u0007\"\u0004\u0008\u000e\u0010\tR\u001c\u0010\u000f\u001a\u0004\u0018\u00010\u0004X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0010\u0010\u0007\"\u0004\u0008\u0011\u0010\t\u00a8\u0006\u0015"
}
d2 = {
"Landroidx/navigation/NavDeepLinkDslBuilder;",
"",
"()V",
"p",
"",
"action",
"getAction",
"()Ljava/lang/String;",
"setAction",
"(Ljava/lang/String;)V",
"builder",
"Landroidx/navigation/NavDeepLink$Builder;",
"mimeType",
"getMimeType",
"setMimeType",
"uriPattern",
"getUriPattern",
"setUriPattern",
"build",
"Landroidx/navigation/NavDeepLink;",
"build$navigation_common_release",
"navigation-common_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private action:Ljava/lang/String;
.field private final builder:Landroidx/navigation/NavDeepLink$Builder;
.field private mimeType:Ljava/lang/String;
.field private uriPattern:Ljava/lang/String;
# direct methods
.method public constructor <init>()V
.locals 1
.line 31
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 33
new-instance v0, Landroidx/navigation/NavDeepLink$Builder;
invoke-direct {v0}, Landroidx/navigation/NavDeepLink$Builder;-><init>()V
iput-object v0, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->builder:Landroidx/navigation/NavDeepLink$Builder;
return-void
.end method
# virtual methods
.method public final build$navigation_common_release()Landroidx/navigation/NavDeepLink;
.locals 3
iget-object v0, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->builder:Landroidx/navigation/NavDeepLink$Builder;
iget-object v1, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->uriPattern:Ljava/lang/String;
if-nez v1, :cond_1
iget-object v2, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->action:Ljava/lang/String;
if-nez v2, :cond_1
iget-object v2, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->mimeType:Ljava/lang/String;
if-eqz v2, :cond_0
goto :goto_0
.line 60
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string v0, "The NavDeepLink must have an uri, action, and/or mimeType."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
:cond_1
:goto_0
if-eqz v1, :cond_2
.line 63
invoke-virtual {v0, v1}, Landroidx/navigation/NavDeepLink$Builder;->setUriPattern(Ljava/lang/String;)Landroidx/navigation/NavDeepLink$Builder;
:cond_2
iget-object v1, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->action:Ljava/lang/String;
if-eqz v1, :cond_3
.line 64
invoke-virtual {v0, v1}, Landroidx/navigation/NavDeepLink$Builder;->setAction(Ljava/lang/String;)Landroidx/navigation/NavDeepLink$Builder;
:cond_3
iget-object p0, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->mimeType:Ljava/lang/String;
if-eqz p0, :cond_4
.line 65
invoke-virtual {v0, p0}, Landroidx/navigation/NavDeepLink$Builder;->setMimeType(Ljava/lang/String;)Landroidx/navigation/NavDeepLink$Builder;
.line 66
:cond_4
invoke-virtual {v0}, Landroidx/navigation/NavDeepLink$Builder;->build()Landroidx/navigation/NavDeepLink;
move-result-object p0
return-object p0
.end method
.method public final getAction()Ljava/lang/String;
.locals 0
iget-object p0, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->action:Ljava/lang/String;
return-object p0
.end method
.method public final getMimeType()Ljava/lang/String;
.locals 0
iget-object p0, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->mimeType:Ljava/lang/String;
return-object p0
.end method
.method public final getUriPattern()Ljava/lang/String;
.locals 0
iget-object p0, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->uriPattern:Ljava/lang/String;
return-object p0
.end method
.method public final setAction(Ljava/lang/String;)V
.locals 1
if-eqz p1, :cond_1
.line 48
move-object v0, p1
check-cast v0, Ljava/lang/CharSequence;
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
move-result v0
if-eqz v0, :cond_0
goto :goto_0
.line 49
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "The NavDeepLink cannot have an empty action."
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
:cond_1
:goto_0
iput-object p1, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->action:Ljava/lang/String;
return-void
.end method
.method public final setMimeType(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->mimeType:Ljava/lang/String;
return-void
.end method
.method public final setUriPattern(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Landroidx/navigation/NavDeepLinkDslBuilder;->uriPattern:Ljava/lang/String;
return-void
.end method