r$10.smali
.class final Lcom/google/gson/internal/a/r$10;
.super Lcom/google/gson/n;
.source "TypeAdapters.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/gson/internal/a/r;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/gson/n",
"<",
"Ljava/math/BigInteger;",
">;"
}
.end annotation
# direct methods
.method constructor <init>()V
.registers 1
.prologue
.line 427
invoke-direct {p0}, Lcom/google/gson/n;-><init>()V
return-void
.end method
.method private static i(Lcom/google/gson/stream/a;)Ljava/math/BigInteger;
.registers 3
.prologue
.line 429
invoke-virtual {p0}, Lcom/google/gson/stream/a;->Aj()Lcom/google/gson/stream/JsonToken;
move-result-object v0
sget-object v1, Lcom/google/gson/stream/JsonToken;->NULL:Lcom/google/gson/stream/JsonToken;
if-ne v0, v1, :cond_d
.line 430
invoke-virtual {p0}, Lcom/google/gson/stream/a;->nextNull()V
.line 431
const/4 v0, 0x0
.line 434
:goto_c
return-object v0
:cond_d
:try_start_d
new-instance v0, Ljava/math/BigInteger;
invoke-virtual {p0}, Lcom/google/gson/stream/a;->nextString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/math/BigInteger;-><init>(Ljava/lang/String;)V
:try_end_16
.catch Ljava/lang/NumberFormatException; {:try_start_d .. :try_end_16} :catch_17
goto :goto_c
.line 435
:catch_17
move-exception v0
.line 436
new-instance v1, Lcom/google/gson/JsonSyntaxException;
invoke-direct {v1, v0}, Lcom/google/gson/JsonSyntaxException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
# virtual methods
.method public final synthetic a(Lcom/google/gson/stream/a;)Ljava/lang/Object;
.registers 3
.prologue
.line 427
invoke-static {p1}, Lcom/google/gson/internal/a/r$10;->i(Lcom/google/gson/stream/a;)Ljava/math/BigInteger;
move-result-object v0
return-object v0
.end method
.method public final synthetic a(Lcom/google/gson/stream/b;Ljava/lang/Object;)V
.registers 3
.prologue
.line 427
check-cast p2, Ljava/math/BigInteger;
.line 1441
invoke-virtual {p1, p2}, Lcom/google/gson/stream/b;->c(Ljava/lang/Number;)Lcom/google/gson/stream/b;
.line 427
return-void
.end method