mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
297 lines
6.9 KiB
Smali
297 lines
6.9 KiB
Smali
![]() |
.class final Lcom/google/common/io/CharSource$ConcatenatedCharSource;
|
||
|
.super Lcom/google/common/io/CharSource;
|
||
|
.source "CharSource.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/google/common/io/CharSource;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x1a
|
||
|
name = "ConcatenatedCharSource"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final sources:Ljava/lang/Iterable;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/lang/Iterable<",
|
||
|
"+",
|
||
|
"Lcom/google/common/io/CharSource;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Ljava/lang/Iterable;)V
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/Iterable<",
|
||
|
"+",
|
||
|
"Lcom/google/common/io/CharSource;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 621
|
||
|
invoke-direct {p0}, Lcom/google/common/io/CharSource;-><init>()V
|
||
|
|
||
|
.line 622
|
||
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Ljava/lang/Iterable;
|
||
|
|
||
|
iput-object p1, p0, Lcom/google/common/io/CharSource$ConcatenatedCharSource;->sources:Ljava/lang/Iterable;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public isEmpty()Z
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/common/io/CharSource$ConcatenatedCharSource;->sources:Ljava/lang/Iterable;
|
||
|
|
||
|
.line 632
|
||
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/google/common/io/CharSource;
|
||
|
|
||
|
.line 633
|
||
|
invoke-virtual {v0}, Lcom/google/common/io/CharSource;->isEmpty()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
return p0
|
||
|
|
||
|
:cond_1
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public length()J
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/common/io/CharSource$ConcatenatedCharSource;->sources:Ljava/lang/Iterable;
|
||
|
|
||
|
.line 656
|
||
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const-wide/16 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Lcom/google/common/io/CharSource;
|
||
|
|
||
|
.line 657
|
||
|
invoke-virtual {v2}, Lcom/google/common/io/CharSource;->length()J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
add-long/2addr v0, v2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public lengthIfKnown()Lcom/google/common/base/Optional;
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Lcom/google/common/base/Optional<",
|
||
|
"Ljava/lang/Long;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/common/io/CharSource$ConcatenatedCharSource;->sources:Ljava/lang/Iterable;
|
||
|
|
||
|
.line 643
|
||
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const-wide/16 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Lcom/google/common/io/CharSource;
|
||
|
|
||
|
.line 644
|
||
|
invoke-virtual {v2}, Lcom/google/common/io/CharSource;->lengthIfKnown()Lcom/google/common/base/Optional;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
.line 645
|
||
|
invoke-virtual {v2}, Lcom/google/common/base/Optional;->isPresent()Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-nez v3, :cond_0
|
||
|
|
||
|
.line 646
|
||
|
invoke-static {}, Lcom/google/common/base/Optional;->absent()Lcom/google/common/base/Optional;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 648
|
||
|
:cond_0
|
||
|
invoke-virtual {v2}, Lcom/google/common/base/Optional;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Ljava/lang/Long;
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
add-long/2addr v0, v2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 650
|
||
|
:cond_1
|
||
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0}, Lcom/google/common/base/Optional;->of(Ljava/lang/Object;)Lcom/google/common/base/Optional;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public openStream()Ljava/io/Reader;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 627
|
||
|
new-instance v0, Lcom/google/common/io/MultiReader;
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/common/io/CharSource$ConcatenatedCharSource;->sources:Ljava/lang/Iterable;
|
||
|
|
||
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {v0, p0}, Lcom/google/common/io/MultiReader;-><init>(Ljava/util/Iterator;)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/common/io/CharSource$ConcatenatedCharSource;->sources:Ljava/lang/Iterable;
|
||
|
|
||
|
.line 664
|
||
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
add-int/lit8 v0, v0, 0x13
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(I)V
|
||
|
|
||
|
const-string v0, "CharSource.concat("
|
||
|
|
||
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const-string v0, ")"
|
||
|
|
||
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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
|