207 lines
4.5 KiB
Smali
207 lines
4.5 KiB
Smali
.class public final Lkotlin/jvm/internal/aa;
|
|
.super Ljava/lang/Object;
|
|
.source "SpreadBuilder.java"
|
|
|
|
|
|
# instance fields
|
|
.field private final bhG:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(I)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0, p1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lkotlin/jvm/internal/aa;->bhG:Ljava/util/ArrayList;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final add(Ljava/lang/Object;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lkotlin/jvm/internal/aa;->bhG:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final addSpread(Ljava/lang/Object;)V
|
|
.locals 3
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
instance-of v0, p1, [Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
check-cast p1, [Ljava/lang/Object;
|
|
|
|
check-cast p1, [Ljava/lang/Object;
|
|
|
|
array-length v0, p1
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lkotlin/jvm/internal/aa;->bhG:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v1
|
|
|
|
array-length v2, p1
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->ensureCapacity(I)V
|
|
|
|
iget-object v0, p0, Lkotlin/jvm/internal/aa;->bhG:Ljava/util/ArrayList;
|
|
|
|
invoke-static {v0, p1}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
:cond_2
|
|
instance-of v0, p1, Ljava/util/Collection;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v0, p0, Lkotlin/jvm/internal/aa;->bhG:Ljava/util/ArrayList;
|
|
|
|
check-cast p1, Ljava/util/Collection;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
instance-of v0, p1, Ljava/lang/Iterable;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
check-cast p1, Ljava/lang/Iterable;
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lkotlin/jvm/internal/aa;->bhG:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
return-void
|
|
|
|
:cond_5
|
|
instance-of v0, p1, Ljava/util/Iterator;
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
check-cast p1, Ljava/util/Iterator;
|
|
|
|
:goto_1
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
iget-object v0, p0, Lkotlin/jvm/internal/aa;->bhG:Ljava/util/ArrayList;
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
return-void
|
|
|
|
:cond_7
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Don\'t know how to spread "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
goto :goto_3
|
|
|
|
:goto_2
|
|
throw v0
|
|
|
|
:goto_3
|
|
goto :goto_2
|
|
.end method
|
|
|
|
.method public final size()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lkotlin/jvm/internal/aa;->bhG:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lkotlin/jvm/internal/aa;->bhG:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|