123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- .class Lcom/google/gson/internal/Excluder$1;
- .super Lcom/google/gson/TypeAdapter;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/EnclosingMethod;
- value = Lcom/google/gson/internal/Excluder;->create(Lcom/google/gson/Gson;Lcom/google/gson/reflect/TypeToken;)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<",
- "TT;>;"
- }
- .end annotation
- # instance fields
- .field private delegate:Lcom/google/gson/TypeAdapter;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Lcom/google/gson/TypeAdapter<",
- "TT;>;"
- }
- .end annotation
- .end field
- .field final synthetic this$0:Lcom/google/gson/internal/Excluder;
- .field final synthetic val$gson:Lcom/google/gson/Gson;
- .field final synthetic val$skipDeserialize:Z
- .field final synthetic val$skipSerialize:Z
- .field final synthetic val$type:Lcom/google/gson/reflect/TypeToken;
- # direct methods
- .method constructor <init>(Lcom/google/gson/internal/Excluder;ZZLcom/google/gson/Gson;Lcom/google/gson/reflect/TypeToken;)V
- .locals 0
- iput-object p1, p0, Lcom/google/gson/internal/Excluder$1;->this$0:Lcom/google/gson/internal/Excluder;
- iput-boolean p2, p0, Lcom/google/gson/internal/Excluder$1;->val$skipDeserialize:Z
- iput-boolean p3, p0, Lcom/google/gson/internal/Excluder$1;->val$skipSerialize:Z
- iput-object p4, p0, Lcom/google/gson/internal/Excluder$1;->val$gson:Lcom/google/gson/Gson;
- iput-object p5, p0, Lcom/google/gson/internal/Excluder$1;->val$type:Lcom/google/gson/reflect/TypeToken;
- invoke-direct {p0}, Lcom/google/gson/TypeAdapter;-><init>()V
- return-void
- .end method
- .method private delegate()Lcom/google/gson/TypeAdapter;
- .locals 3
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "()",
- "Lcom/google/gson/TypeAdapter<",
- "TT;>;"
- }
- .end annotation
- iget-object v0, p0, Lcom/google/gson/internal/Excluder$1;->delegate:Lcom/google/gson/TypeAdapter;
- if-eqz v0, :cond_0
- goto :goto_0
- :cond_0
- iget-object v0, p0, Lcom/google/gson/internal/Excluder$1;->val$gson:Lcom/google/gson/Gson;
- iget-object v1, p0, Lcom/google/gson/internal/Excluder$1;->this$0:Lcom/google/gson/internal/Excluder;
- iget-object v2, p0, Lcom/google/gson/internal/Excluder$1;->val$type:Lcom/google/gson/reflect/TypeToken;
- invoke-virtual {v0, v1, v2}, Lcom/google/gson/Gson;->getDelegateAdapter(Lcom/google/gson/TypeAdapterFactory;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
- move-result-object v0
- iput-object v0, p0, Lcom/google/gson/internal/Excluder$1;->delegate:Lcom/google/gson/TypeAdapter;
- :goto_0
- return-object v0
- .end method
- # virtual methods
- .method public read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
- .locals 1
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Lcom/google/gson/stream/JsonReader;",
- ")TT;"
- }
- .end annotation
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-boolean v0, p0, Lcom/google/gson/internal/Excluder$1;->val$skipDeserialize:Z
- if-eqz v0, :cond_0
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->skipValue()V
- const/4 p1, 0x0
- return-object p1
- :cond_0
- invoke-direct {p0}, Lcom/google/gson/internal/Excluder$1;->delegate()Lcom/google/gson/TypeAdapter;
- move-result-object v0
- invoke-virtual {v0, p1}, Lcom/google/gson/TypeAdapter;->read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
- move-result-object p1
- return-object p1
- .end method
- .method public write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
- .locals 1
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Lcom/google/gson/stream/JsonWriter;",
- "TT;)V"
- }
- .end annotation
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-boolean v0, p0, Lcom/google/gson/internal/Excluder$1;->val$skipSerialize:Z
- if-eqz v0, :cond_0
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonWriter;->nullValue()Lcom/google/gson/stream/JsonWriter;
- return-void
- :cond_0
- invoke-direct {p0}, Lcom/google/gson/internal/Excluder$1;->delegate()Lcom/google/gson/TypeAdapter;
- move-result-object v0
- invoke-virtual {v0, p1, p2}, Lcom/google/gson/TypeAdapter;->write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
- return-void
- .end method
|