D.smali
.class Lcom/google/gson/internal/bind/D;
.super Lcom/google/gson/x;
.source "TypeAdapters.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/gson/internal/bind/T;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/gson/x<",
"Ljava/util/Currency;",
">;"
}
.end annotation
# direct methods
.method constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Lcom/google/gson/x;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic a(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0, p1}, Lcom/google/gson/internal/bind/D;->a(Lcom/google/gson/stream/JsonReader;)Ljava/util/Currency;
move-result-object p1
return-object p1
.end method
.method public a(Lcom/google/gson/stream/JsonReader;)Ljava/util/Currency;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 3
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->nextString()Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Ljava/util/Currency;->getInstance(Ljava/lang/String;)Ljava/util/Currency;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic a(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 2
check-cast p2, Ljava/util/Currency;
invoke-virtual {p0, p1, p2}, Lcom/google/gson/internal/bind/D;->a(Lcom/google/gson/stream/JsonWriter;Ljava/util/Currency;)V
return-void
.end method
.method public a(Lcom/google/gson/stream/JsonWriter;Ljava/util/Currency;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 4
invoke-virtual {p2}, Ljava/util/Currency;->getCurrencyCode()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Lcom/google/gson/stream/JsonWriter;->value(Ljava/lang/String;)Lcom/google/gson/stream/JsonWriter;
return-void
.end method