DateTimeFormatterBuilder$f.smali
.class public final Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;
.super Ljava/lang/Object;
.source "DateTimeFormatterBuilder.java"
# interfaces
.implements Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lorg/threeten/bp/format/DateTimeFormatterBuilder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "f"
.end annotation
# instance fields
.field public final a:[Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;
.field public final b:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Ljava/util/List;Z)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;",
">;Z)V"
}
.end annotation
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
new-array v0, v0, [Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;
invoke-interface {p1, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;
invoke-direct {p0, p1, p2}, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;-><init>([Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;Z)V
return-void
.end method
.method public constructor <init>([Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;Z)V
.registers 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->a:[Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;
iput-boolean p2, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->b:Z
return-void
.end method
# virtual methods
.method public a(Z)Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;
.registers 4
iget-boolean v0, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->b:Z
if-ne p1, v0, :cond_5
return-object p0
:cond_5
new-instance v0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;
iget-object v1, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->a:[Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;
invoke-direct {v0, v1, p1}, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;-><init>([Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;Z)V
return-object v0
.end method
.method public print(Lqq/d;Ljava/lang/StringBuilder;)Z
.registers 9
invoke-virtual {p2}, Ljava/lang/StringBuilder;->length()I
move-result v0
iget-boolean v1, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->b:Z
if-eqz v1, :cond_b
invoke-virtual {p1}, Lqq/d;->e()V
:cond_b
:try_start_b
iget-object v1, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->a:[Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;
array-length v2, v1
const/4 v3, 0x0
:goto_f
const/4 v4, 0x1
if-ge v3, v2, :cond_28
aget-object v5, v1, v3
invoke-interface {v5, p1, p2}, Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;->print(Lqq/d;Ljava/lang/StringBuilder;)Z
move-result v5
if-nez v5, :cond_25
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->setLength(I)V
:try_end_1d
.catchall {:try_start_b .. :try_end_1d} :catchall_30
iget-boolean p2, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->b:Z
if-eqz p2, :cond_24
invoke-virtual {p1}, Lqq/d;->a()V
:cond_24
return v4
:cond_25
add-int/lit8 v3, v3, 0x1
goto :goto_f
:cond_28
iget-boolean p2, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->b:Z
if-eqz p2, :cond_2f
invoke-virtual {p1}, Lqq/d;->a()V
:cond_2f
return v4
:catchall_30
move-exception p2
iget-boolean v0, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->b:Z
if-eqz v0, :cond_38
invoke-virtual {p1}, Lqq/d;->a()V
:cond_38
goto :goto_3a
:goto_39
throw p2
:goto_3a
goto :goto_39
.end method
.method public toString()Ljava/lang/String;
.registers 6
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->a:[Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;
if-eqz v1, :cond_2f
iget-boolean v1, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->b:Z
if-eqz v1, :cond_10
const-string v1, "["
goto :goto_12
:cond_10
const-string v1, "("
:goto_12
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->a:[Lorg/threeten/bp/format/DateTimeFormatterBuilder$g;
array-length v2, v1
const/4 v3, 0x0
:goto_19
if-ge v3, v2, :cond_23
aget-object v4, v1, v3
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
add-int/lit8 v3, v3, 0x1
goto :goto_19
:cond_23
iget-boolean v1, p0, Lorg/threeten/bp/format/DateTimeFormatterBuilder$f;->b:Z
if-eqz v1, :cond_2a
const-string v1, "]"
goto :goto_2c
:cond_2a
const-string v1, ")"
:goto_2c
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_2f
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method