123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- .class Lcom/google/gson/Gson$2;
- .super Lcom/google/gson/TypeAdapter;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/EnclosingMethod;
- value = Lcom/google/gson/Gson;->floatAdapter(Z)Lcom/google/gson/TypeAdapter;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x0
- name = null
- .end annotation
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Lcom/google/gson/TypeAdapter<",
- "Ljava/lang/Number;",
- ">;"
- }
- .end annotation
- # instance fields
- .field final synthetic this$0:Lcom/google/gson/Gson;
- # direct methods
- .method constructor <init>(Lcom/google/gson/Gson;)V
- .locals 0
- iput-object p1, p0, Lcom/google/gson/Gson$2;->this$0:Lcom/google/gson/Gson;
- invoke-direct {p0}, Lcom/google/gson/TypeAdapter;-><init>()V
- return-void
- .end method
- # virtual methods
- .method public read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Float;
- .locals 2
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->peek()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_0
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->nextNull()V
- const/4 p1, 0x0
- return-object p1
- :cond_0
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->nextDouble()D
- move-result-wide v0
- double-to-float p1, v0
- invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
- move-result-object p1
- return-object p1
- .end method
- .method public bridge synthetic read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
- .locals 0
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- invoke-virtual {p0, p1}, Lcom/google/gson/Gson$2;->read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Float;
- move-result-object p1
- return-object p1
- .end method
- .method public write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Number;)V
- .locals 2
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- if-nez p2, :cond_0
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonWriter;->nullValue()Lcom/google/gson/stream/JsonWriter;
- return-void
- :cond_0
- invoke-virtual {p2}, Ljava/lang/Number;->floatValue()F
- move-result v0
- float-to-double v0, v0
- invoke-static {v0, v1}, Lcom/google/gson/Gson;->checkValidFloatingPoint(D)V
- invoke-virtual {p1, p2}, Lcom/google/gson/stream/JsonWriter;->value(Ljava/lang/Number;)Lcom/google/gson/stream/JsonWriter;
- return-void
- .end method
- .method public bridge synthetic write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
- .locals 0
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- check-cast p2, Ljava/lang/Number;
- invoke-virtual {p0, p1, p2}, Lcom/google/gson/Gson$2;->write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Number;)V
- return-void
- .end method
|