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

593 lines
19 KiB
Smali

.class public Landroidx/navigation/NavDestinationBuilder;
.super Ljava/lang/Object;
.source "NavDestinationBuilder.kt"
# annotations
.annotation runtime Landroidx/navigation/NavDestinationDsl;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<D:",
"Landroidx/navigation/NavDestination;",
">",
"Ljava/lang/Object;"
}
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nNavDestinationBuilder.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NavDestinationBuilder.kt\nandroidx/navigation/NavDestinationBuilder\n+ 2 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,259:1\n215#2,2:260\n215#2,2:264\n1855#3,2:262\n*S KotlinDebug\n*F\n+ 1 NavDestinationBuilder.kt\nandroidx/navigation/NavDestinationBuilder\n*L\n152#1:260,2\n158#1:264,2\n155#1:262,2\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000r\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0010%\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\r\n\u0002\u0008\t\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0017\u0018\u0000*\n\u0008\u0000\u0010\u0001 \u0001*\u00020\u00022\u00020\u0003B!\u0008\u0017\u0012\u000e\u0010\u0004\u001a\n\u0012\u0006\u0008\u0001\u0012\u00028\u00000\u0005\u0012\u0008\u0008\u0001\u0010\u0006\u001a\u00020\u0007\u00a2\u0006\u0002\u0010\u0008B!\u0008\u0016\u0012\u000e\u0010\u0004\u001a\n\u0012\u0006\u0008\u0001\u0012\u00028\u00000\u0005\u0012\u0008\u0010\t\u001a\u0004\u0018\u00010\n\u00a2\u0006\u0002\u0010\u000bB+\u0008\u0000\u0012\u000e\u0010\u0004\u001a\n\u0012\u0006\u0008\u0001\u0012\u00028\u00000\u0005\u0012\u0008\u0008\u0001\u0010\u0006\u001a\u00020\u0007\u0012\u0008\u0010\t\u001a\u0004\u0018\u00010\n\u00a2\u0006\u0002\u0010\u000cJ)\u0010!\u001a\u00020\"2\u0006\u0010#\u001a\u00020\u00072\u0017\u0010$\u001a\u0013\u0012\u0004\u0012\u00020&\u0012\u0004\u0012\u00020\"0%\u00a2\u0006\u0002\u0008\'H\u0007J\'\u0010(\u001a\u00020\"2\u0006\u0010)\u001a\u00020\n2\u0017\u0010*\u001a\u0013\u0012\u0004\u0012\u00020+\u0012\u0004\u0012\u00020\"0%\u00a2\u0006\u0002\u0008\'J\r\u0010,\u001a\u00028\u0000H\u0016\u00a2\u0006\u0002\u0010-J\u001f\u0010.\u001a\u00020\"2\u0017\u0010/\u001a\u0013\u0012\u0004\u0012\u000200\u0012\u0004\u0012\u00020\"0%\u00a2\u0006\u0002\u0008\'J\u000e\u0010.\u001a\u00020\"2\u0006\u00101\u001a\u00020\nR\u001a\u0010\r\u001a\u000e\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\u000f0\u000eX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001a\u0010\u0010\u001a\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\u00110\u000eX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0012\u001a\u0008\u0012\u0004\u0012\u00020\u00140\u0013X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u0006\u001a\u00020\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0015\u0010\u0016R\u001c\u0010\u0017\u001a\u0004\u0018\u00010\u0018X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0019\u0010\u001a\"\u0004\u0008\u001b\u0010\u001cR\u001c\u0010\u0004\u001a\n\u0012\u0006\u0008\u0001\u0012\u00028\u00000\u0005X\u0084\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u001d\u0010\u001eR\u0013\u0010\t\u001a\u0004\u0018\u00010\n\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u001f\u0010 \u00a8\u00062"
}
d2 = {
"Landroidx/navigation/NavDestinationBuilder;",
"D",
"Landroidx/navigation/NavDestination;",
"",
"navigator",
"Landroidx/navigation/Navigator;",
"id",
"",
"(Landroidx/navigation/Navigator;I)V",
"route",
"",
"(Landroidx/navigation/Navigator;Ljava/lang/String;)V",
"(Landroidx/navigation/Navigator;ILjava/lang/String;)V",
"actions",
"",
"Landroidx/navigation/NavAction;",
"arguments",
"Landroidx/navigation/NavArgument;",
"deepLinks",
"",
"Landroidx/navigation/NavDeepLink;",
"getId",
"()I",
"label",
"",
"getLabel",
"()Ljava/lang/CharSequence;",
"setLabel",
"(Ljava/lang/CharSequence;)V",
"getNavigator",
"()Landroidx/navigation/Navigator;",
"getRoute",
"()Ljava/lang/String;",
"action",
"",
"actionId",
"actionBuilder",
"Lkotlin/Function1;",
"Landroidx/navigation/NavActionBuilder;",
"Lkotlin/ExtensionFunctionType;",
"argument",
"name",
"argumentBuilder",
"Landroidx/navigation/NavArgumentBuilder;",
"build",
"()Landroidx/navigation/NavDestination;",
"deepLink",
"navDeepLink",
"Landroidx/navigation/NavDeepLinkDslBuilder;",
"uriPattern",
"navigation-common_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private actions:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Integer;",
"Landroidx/navigation/NavAction;",
">;"
}
.end annotation
.end field
.field private arguments:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/navigation/NavArgument;",
">;"
}
.end annotation
.end field
.field private deepLinks:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Landroidx/navigation/NavDeepLink;",
">;"
}
.end annotation
.end field
.field private final id:I
.field private label:Ljava/lang/CharSequence;
.field private final navigator:Landroidx/navigation/Navigator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/navigation/Navigator<",
"+TD;>;"
}
.end annotation
.end field
.field private final route:Ljava/lang/String;
# direct methods
.method public constructor <init>(Landroidx/navigation/Navigator;I)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/navigation/Navigator<",
"+TD;>;I)V"
}
.end annotation
.annotation runtime Lkotlin/Deprecated;
message = "Use routes to build your NavDestination instead"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "NavDestinationBuilder(navigator, route = id.toString())"
imports = {}
.end subannotation
.end annotation
const-string v0, "navigator"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 59
invoke-direct {p0, p1, p2, v0}, Landroidx/navigation/NavDestinationBuilder;-><init>(Landroidx/navigation/Navigator;ILjava/lang/String;)V
return-void
.end method
.method public constructor <init>(Landroidx/navigation/Navigator;ILjava/lang/String;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/navigation/Navigator<",
"+TD;>;I",
"Ljava/lang/String;",
")V"
}
.end annotation
const-string v0, "navigator"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 28
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/navigation/NavDestinationBuilder;->navigator:Landroidx/navigation/Navigator;
iput p2, p0, Landroidx/navigation/NavDestinationBuilder;->id:I
iput-object p3, p0, Landroidx/navigation/NavDestinationBuilder;->route:Ljava/lang/String;
.line 79
new-instance p1, Ljava/util/LinkedHashMap;
invoke-direct {p1}, Ljava/util/LinkedHashMap;-><init>()V
check-cast p1, Ljava/util/Map;
iput-object p1, p0, Landroidx/navigation/NavDestinationBuilder;->arguments:Ljava/util/Map;
.line 88
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
check-cast p1, Ljava/util/List;
iput-object p1, p0, Landroidx/navigation/NavDestinationBuilder;->deepLinks:Ljava/util/List;
.line 133
new-instance p1, Ljava/util/LinkedHashMap;
invoke-direct {p1}, Ljava/util/LinkedHashMap;-><init>()V
check-cast p1, Ljava/util/Map;
iput-object p1, p0, Landroidx/navigation/NavDestinationBuilder;->actions:Ljava/util/Map;
return-void
.end method
.method public constructor <init>(Landroidx/navigation/Navigator;Ljava/lang/String;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/navigation/Navigator<",
"+TD;>;",
"Ljava/lang/String;",
")V"
}
.end annotation
const-string v0, "navigator"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, -0x1
.line 72
invoke-direct {p0, p1, v0, p2}, Landroidx/navigation/NavDestinationBuilder;-><init>(Landroidx/navigation/Navigator;ILjava/lang/String;)V
return-void
.end method
# virtual methods
.method public final action(ILkotlin/jvm/functions/Function1;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Lkotlin/jvm/functions/Function1<",
"-",
"Landroidx/navigation/NavActionBuilder;",
"Lkotlin/Unit;",
">;)V"
}
.end annotation
.annotation runtime Lkotlin/Deprecated;
message = "Building NavDestinations using IDs with the Kotlin DSL has been deprecated in favor of using routes. When using routes there is no need for actions."
.end annotation
const-string v0, "actionBuilder"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p0, p0, Landroidx/navigation/NavDestinationBuilder;->actions:Ljava/util/Map;
.line 143
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
new-instance v0, Landroidx/navigation/NavActionBuilder;
invoke-direct {v0}, Landroidx/navigation/NavActionBuilder;-><init>()V
invoke-interface {p2, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {v0}, Landroidx/navigation/NavActionBuilder;->build$navigation_common_release()Landroidx/navigation/NavAction;
move-result-object p2
invoke-interface {p0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method public final argument(Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Lkotlin/jvm/functions/Function1<",
"-",
"Landroidx/navigation/NavArgumentBuilder;",
"Lkotlin/Unit;",
">;)V"
}
.end annotation
const-string v0, "name"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "argumentBuilder"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p0, p0, Landroidx/navigation/NavDestinationBuilder;->arguments:Ljava/util/Map;
.line 85
new-instance v0, Landroidx/navigation/NavArgumentBuilder;
invoke-direct {v0}, Landroidx/navigation/NavArgumentBuilder;-><init>()V
invoke-interface {p2, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {v0}, Landroidx/navigation/NavArgumentBuilder;->build()Landroidx/navigation/NavArgument;
move-result-object p2
invoke-interface {p0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method public build()Landroidx/navigation/NavDestination;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()TD;"
}
.end annotation
iget-object v0, p0, Landroidx/navigation/NavDestinationBuilder;->navigator:Landroidx/navigation/Navigator;
.line 150
invoke-virtual {v0}, Landroidx/navigation/Navigator;->createDestination()Landroidx/navigation/NavDestination;
move-result-object v0
iget-object v1, p0, Landroidx/navigation/NavDestinationBuilder;->label:Ljava/lang/CharSequence;
.line 151
invoke-virtual {v0, v1}, Landroidx/navigation/NavDestination;->setLabel(Ljava/lang/CharSequence;)V
iget-object v1, p0, Landroidx/navigation/NavDestinationBuilder;->arguments:Ljava/util/Map;
.line 260
invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map$Entry;
.line 152
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/navigation/NavArgument;
.line 153
invoke-virtual {v0, v3, v2}, Landroidx/navigation/NavDestination;->addArgument(Ljava/lang/String;Landroidx/navigation/NavArgument;)V
goto :goto_0
:cond_0
iget-object v1, p0, Landroidx/navigation/NavDestinationBuilder;->deepLinks:Ljava/util/List;
.line 155
check-cast v1, Ljava/lang/Iterable;
.line 262
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_1
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/navigation/NavDeepLink;
.line 156
invoke-virtual {v0, v2}, Landroidx/navigation/NavDestination;->addDeepLink(Landroidx/navigation/NavDeepLink;)V
goto :goto_1
:cond_1
iget-object v1, p0, Landroidx/navigation/NavDestinationBuilder;->actions:Ljava/util/Map;
.line 264
invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_2
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_2
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map$Entry;
.line 158
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Number;
invoke-virtual {v3}, Ljava/lang/Number;->intValue()I
move-result v3
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/navigation/NavAction;
.line 159
invoke-virtual {v0, v3, v2}, Landroidx/navigation/NavDestination;->putAction(ILandroidx/navigation/NavAction;)V
goto :goto_2
:cond_2
iget-object v1, p0, Landroidx/navigation/NavDestinationBuilder;->route:Ljava/lang/String;
if-eqz v1, :cond_3
.line 162
invoke-virtual {v0, v1}, Landroidx/navigation/NavDestination;->setRoute(Ljava/lang/String;)V
:cond_3
iget p0, p0, Landroidx/navigation/NavDestinationBuilder;->id:I
const/4 v1, -0x1
if-eq p0, v1, :cond_4
.line 165
invoke-virtual {v0, p0}, Landroidx/navigation/NavDestination;->setId(I)V
:cond_4
return-object v0
.end method
.method public final deepLink(Ljava/lang/String;)V
.locals 1
const-string v0, "uriPattern"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p0, p0, Landroidx/navigation/NavDestinationBuilder;->deepLinks:Ljava/util/List;
.line 109
new-instance v0, Landroidx/navigation/NavDeepLink;
invoke-direct {v0, p1}, Landroidx/navigation/NavDeepLink;-><init>(Ljava/lang/String;)V
invoke-interface {p0, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public final deepLink(Lkotlin/jvm/functions/Function1;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function1<",
"-",
"Landroidx/navigation/NavDeepLinkDslBuilder;",
"Lkotlin/Unit;",
">;)V"
}
.end annotation
const-string v0, "navDeepLink"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p0, p0, Landroidx/navigation/NavDestinationBuilder;->deepLinks:Ljava/util/List;
.line 130
new-instance v0, Landroidx/navigation/NavDeepLinkDslBuilder;
invoke-direct {v0}, Landroidx/navigation/NavDeepLinkDslBuilder;-><init>()V
invoke-interface {p1, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {v0}, Landroidx/navigation/NavDeepLinkDslBuilder;->build$navigation_common_release()Landroidx/navigation/NavDeepLink;
move-result-object p1
invoke-interface {p0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public final getId()I
.locals 0
iget p0, p0, Landroidx/navigation/NavDestinationBuilder;->id:I
return p0
.end method
.method public final getLabel()Ljava/lang/CharSequence;
.locals 0
iget-object p0, p0, Landroidx/navigation/NavDestinationBuilder;->label:Ljava/lang/CharSequence;
return-object p0
.end method
.method protected final getNavigator()Landroidx/navigation/Navigator;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/navigation/Navigator<",
"+TD;>;"
}
.end annotation
iget-object p0, p0, Landroidx/navigation/NavDestinationBuilder;->navigator:Landroidx/navigation/Navigator;
return-object p0
.end method
.method public final getRoute()Ljava/lang/String;
.locals 0
iget-object p0, p0, Landroidx/navigation/NavDestinationBuilder;->route:Ljava/lang/String;
return-object p0
.end method
.method public final setLabel(Ljava/lang/CharSequence;)V
.locals 0
iput-object p1, p0, Landroidx/navigation/NavDestinationBuilder;->label:Ljava/lang/CharSequence;
return-void
.end method