You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
492 lines
14 KiB
492 lines
14 KiB
2 years ago
|
.class public final Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "Objects.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/google/common/base/Objects;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x19
|
||
|
name = "ToStringHelper"
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final className:Ljava/lang/String;
|
||
|
|
||
|
.field private holderHead:Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
.field private holderTail:Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
.field private omitNullValues:Z
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method private constructor <init>(Ljava/lang/String;)V
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 208
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
.line 201
|
||
|
new-instance v0, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-direct {v0, v1}, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;-><init>(Lcom/google/common/base/Objects$1;)V
|
||
|
|
||
|
iput-object v0, p0, Lcom/google/common/base/Objects$ToStringHelper;->holderHead:Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
.line 202
|
||
|
iget-object v0, p0, Lcom/google/common/base/Objects$ToStringHelper;->holderHead:Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
iput-object v0, p0, Lcom/google/common/base/Objects$ToStringHelper;->holderTail:Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
.line 203
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
iput-boolean v0, p0, Lcom/google/common/base/Objects$ToStringHelper;->omitNullValues:Z
|
||
|
|
||
|
.line 209
|
||
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/lang/String;
|
||
|
|
||
|
iput-object v0, p0, Lcom/google/common/base/Objects$ToStringHelper;->className:Ljava/lang/String;
|
||
|
|
||
|
.line 210
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method synthetic constructor <init>(Ljava/lang/String;Lcom/google/common/base/Objects$1;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 199
|
||
|
invoke-direct {p0, p1}, Lcom/google/common/base/Objects$ToStringHelper;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private addHolder()Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 408
|
||
|
new-instance v0, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-direct {v0, v1}, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;-><init>(Lcom/google/common/base/Objects$1;)V
|
||
|
|
||
|
.line 409
|
||
|
iget-object v1, p0, Lcom/google/common/base/Objects$ToStringHelper;->holderTail:Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
iput-object v0, v1, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;->next:Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
iput-object v0, p0, Lcom/google/common/base/Objects$ToStringHelper;->holderTail:Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
.line 410
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private addHolder(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
.param p1 # Ljava/lang/Object;
|
||
|
.annotation runtime Ljavax/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 414
|
||
|
invoke-direct {p0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder()Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 415
|
||
|
iput-object p1, v0, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;->value:Ljava/lang/Object;
|
||
|
|
||
|
.line 416
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method private addHolder(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 2
|
||
|
.param p2 # Ljava/lang/Object;
|
||
|
.annotation runtime Ljavax/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 420
|
||
|
invoke-direct {p0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder()Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.line 421
|
||
|
iput-object p2, v1, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;->value:Ljava/lang/Object;
|
||
|
|
||
|
.line 422
|
||
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/lang/String;
|
||
|
|
||
|
iput-object v0, v1, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;->name:Ljava/lang/String;
|
||
|
|
||
|
.line 423
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public add(Ljava/lang/String;C)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 251
|
||
|
invoke-static {p2}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, p1, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public add(Ljava/lang/String;D)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 261
|
||
|
invoke-static {p2, p3}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, p1, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public add(Ljava/lang/String;F)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 271
|
||
|
invoke-static {p2}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, p1, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public add(Ljava/lang/String;I)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 281
|
||
|
invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, p1, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public add(Ljava/lang/String;J)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 291
|
||
|
invoke-static {p2, p3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, p1, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public add(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
.param p2 # Ljava/lang/Object;
|
||
|
.annotation runtime Ljavax/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 231
|
||
|
invoke-direct {p0, p1, p2}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public add(Ljava/lang/String;Z)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 241
|
||
|
invoke-static {p2}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, p1, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public addValue(C)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 325
|
||
|
invoke-static {p1}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public addValue(D)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 337
|
||
|
invoke-static {p1, p2}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public addValue(F)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 349
|
||
|
invoke-static {p1}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public addValue(I)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 361
|
||
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public addValue(J)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 373
|
||
|
invoke-static {p1, p2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public addValue(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
.param p1 # Ljava/lang/Object;
|
||
|
.annotation runtime Ljavax/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 301
|
||
|
invoke-direct {p0, p1}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public addValue(Z)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 313
|
||
|
invoke-static {p1}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, v0}, Lcom/google/common/base/Objects$ToStringHelper;->addHolder(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public omitNullValues()Lcom/google/common/base/Objects$ToStringHelper;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 220
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
iput-boolean v0, p0, Lcom/google/common/base/Objects$ToStringHelper;->omitNullValues:Z
|
||
|
|
||
|
.line 221
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 7
|
||
|
|
||
|
.prologue
|
||
|
.line 388
|
||
|
iget-boolean v2, p0, Lcom/google/common/base/Objects$ToStringHelper;->omitNullValues:Z
|
||
|
|
||
|
.line 389
|
||
|
const-string v1, ""
|
||
|
|
||
|
.line 390
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const/16 v3, 0x20
|
||
|
|
||
|
invoke-direct {v0, v3}, Ljava/lang/StringBuilder;-><init>(I)V
|
||
|
|
||
|
iget-object v3, p0, Lcom/google/common/base/Objects$ToStringHelper;->className:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/16 v3, 0x7b
|
||
|
|
||
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
.line 392
|
||
|
iget-object v0, p0, Lcom/google/common/base/Objects$ToStringHelper;->holderHead:Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
iget-object v0, v0, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;->next:Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
move-object v6, v0
|
||
|
|
||
|
move-object v0, v1
|
||
|
|
||
|
move-object v1, v6
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
.line 394
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
iget-object v4, v1, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;->value:Ljava/lang/Object;
|
||
|
|
||
|
if-eqz v4, :cond_2
|
||
|
|
||
|
.line 395
|
||
|
:cond_0
|
||
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
.line 396
|
||
|
const-string v0, ", "
|
||
|
|
||
|
.line 398
|
||
|
iget-object v4, v1, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;->name:Ljava/lang/String;
|
||
|
|
||
|
if-eqz v4, :cond_1
|
||
|
|
||
|
.line 399
|
||
|
iget-object v4, v1, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;->name:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
const/16 v5, 0x3d
|
||
|
|
||
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||
|
|
||
|
.line 401
|
||
|
:cond_1
|
||
|
iget-object v4, v1, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;->value:Ljava/lang/Object;
|
||
|
|
||
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
.line 393
|
||
|
:cond_2
|
||
|
iget-object v1, v1, Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;->next:Lcom/google/common/base/Objects$ToStringHelper$ValueHolder;
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 404
|
||
|
:cond_3
|
||
|
const/16 v0, 0x7d
|
||
|
|
||
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|