123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732 |
- .class public final Lcom/google/gson/GsonBuilder;
- .super Ljava/lang/Object;
- .source ""
- # instance fields
- .field private complexMapKeySerialization:Z
- .field private datePattern:Ljava/lang/String;
- .field private dateStyle:I
- .field private escapeHtmlChars:Z
- .field private excluder:Lcom/google/gson/internal/Excluder;
- .field private final factories:Ljava/util/List;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Ljava/util/List<",
- "Lcom/google/gson/TypeAdapterFactory;",
- ">;"
- }
- .end annotation
- .end field
- .field private fieldNamingPolicy:Lcom/google/gson/FieldNamingStrategy;
- .field private generateNonExecutableJson:Z
- .field private final hierarchyFactories:Ljava/util/List;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Ljava/util/List<",
- "Lcom/google/gson/TypeAdapterFactory;",
- ">;"
- }
- .end annotation
- .end field
- .field private final instanceCreators:Ljava/util/Map;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Ljava/util/Map<",
- "Ljava/lang/reflect/Type;",
- "Lcom/google/gson/InstanceCreator<",
- "*>;>;"
- }
- .end annotation
- .end field
- .field private lenient:Z
- .field private longSerializationPolicy:Lcom/google/gson/LongSerializationPolicy;
- .field private prettyPrinting:Z
- .field private serializeNulls:Z
- .field private serializeSpecialFloatingPointValues:Z
- .field private timeStyle:I
- # direct methods
- .method public constructor <init>()V
- .locals 2
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- sget-object v0, Lcom/google/gson/internal/Excluder;->DEFAULT:Lcom/google/gson/internal/Excluder;
- iput-object v0, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- sget-object v0, Lcom/google/gson/LongSerializationPolicy;->DEFAULT:Lcom/google/gson/LongSerializationPolicy;
- iput-object v0, p0, Lcom/google/gson/GsonBuilder;->longSerializationPolicy:Lcom/google/gson/LongSerializationPolicy;
- sget-object v0, Lcom/google/gson/FieldNamingPolicy;->IDENTITY:Lcom/google/gson/FieldNamingPolicy;
- iput-object v0, p0, Lcom/google/gson/GsonBuilder;->fieldNamingPolicy:Lcom/google/gson/FieldNamingStrategy;
- new-instance v0, Ljava/util/HashMap;
- invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
- iput-object v0, p0, Lcom/google/gson/GsonBuilder;->instanceCreators:Ljava/util/Map;
- new-instance v0, Ljava/util/ArrayList;
- invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
- iput-object v0, p0, Lcom/google/gson/GsonBuilder;->factories:Ljava/util/List;
- new-instance v0, Ljava/util/ArrayList;
- invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
- iput-object v0, p0, Lcom/google/gson/GsonBuilder;->hierarchyFactories:Ljava/util/List;
- const/4 v0, 0x0
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->serializeNulls:Z
- const/4 v1, 0x2
- iput v1, p0, Lcom/google/gson/GsonBuilder;->dateStyle:I
- iput v1, p0, Lcom/google/gson/GsonBuilder;->timeStyle:I
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->complexMapKeySerialization:Z
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->serializeSpecialFloatingPointValues:Z
- const/4 v1, 0x1
- iput-boolean v1, p0, Lcom/google/gson/GsonBuilder;->escapeHtmlChars:Z
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->prettyPrinting:Z
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->generateNonExecutableJson:Z
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->lenient:Z
- return-void
- .end method
- .method private addTypeAdaptersForDate(Ljava/lang/String;IILjava/util/List;)V
- .locals 3
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Ljava/lang/String;",
- "II",
- "Ljava/util/List<",
- "Lcom/google/gson/TypeAdapterFactory;",
- ">;)V"
- }
- .end annotation
- if-eqz p1, :cond_0
- invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;
- move-result-object v0
- const-string v1, ""
- invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_0
- new-instance p2, Lcom/google/gson/DefaultDateTypeAdapter;
- const-class p3, Ljava/util/Date;
- invoke-direct {p2, p3, p1}, Lcom/google/gson/DefaultDateTypeAdapter;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
- new-instance p3, Lcom/google/gson/DefaultDateTypeAdapter;
- const-class v0, Ljava/sql/Timestamp;
- invoke-direct {p3, v0, p1}, Lcom/google/gson/DefaultDateTypeAdapter;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
- new-instance v0, Lcom/google/gson/DefaultDateTypeAdapter;
- const-class v1, Ljava/sql/Date;
- invoke-direct {v0, v1, p1}, Lcom/google/gson/DefaultDateTypeAdapter;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
- move-object p1, p2
- goto :goto_0
- :cond_0
- const/4 p1, 0x2
- if-eq p2, p1, :cond_1
- if-eq p3, p1, :cond_1
- new-instance p1, Lcom/google/gson/DefaultDateTypeAdapter;
- const-class v0, Ljava/util/Date;
- invoke-direct {p1, v0, p2, p3}, Lcom/google/gson/DefaultDateTypeAdapter;-><init>(Ljava/lang/Class;II)V
- new-instance v0, Lcom/google/gson/DefaultDateTypeAdapter;
- const-class v1, Ljava/sql/Timestamp;
- invoke-direct {v0, v1, p2, p3}, Lcom/google/gson/DefaultDateTypeAdapter;-><init>(Ljava/lang/Class;II)V
- new-instance v1, Lcom/google/gson/DefaultDateTypeAdapter;
- const-class v2, Ljava/sql/Date;
- invoke-direct {v1, v2, p2, p3}, Lcom/google/gson/DefaultDateTypeAdapter;-><init>(Ljava/lang/Class;II)V
- move-object p3, v0
- move-object v0, v1
- :goto_0
- const-class p2, Ljava/util/Date;
- invoke-static {p2, p1}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
- move-result-object p1
- invoke-interface {p4, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- const-class p1, Ljava/sql/Timestamp;
- invoke-static {p1, p3}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
- move-result-object p1
- invoke-interface {p4, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- const-class p1, Ljava/sql/Date;
- invoke-static {p1, v0}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
- move-result-object p1
- invoke-interface {p4, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- :cond_1
- return-void
- .end method
- # virtual methods
- .method public addDeserializationExclusionStrategy(Lcom/google/gson/ExclusionStrategy;)Lcom/google/gson/GsonBuilder;
- .locals 3
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- const/4 v1, 0x0
- const/4 v2, 0x1
- invoke-virtual {v0, p1, v1, v2}, Lcom/google/gson/internal/Excluder;->withExclusionStrategy(Lcom/google/gson/ExclusionStrategy;ZZ)Lcom/google/gson/internal/Excluder;
- move-result-object p1
- iput-object p1, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- return-object p0
- .end method
- .method public addSerializationExclusionStrategy(Lcom/google/gson/ExclusionStrategy;)Lcom/google/gson/GsonBuilder;
- .locals 3
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- const/4 v1, 0x1
- const/4 v2, 0x0
- invoke-virtual {v0, p1, v1, v2}, Lcom/google/gson/internal/Excluder;->withExclusionStrategy(Lcom/google/gson/ExclusionStrategy;ZZ)Lcom/google/gson/internal/Excluder;
- move-result-object p1
- iput-object p1, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- return-object p0
- .end method
- .method public create()Lcom/google/gson/Gson;
- .locals 14
- new-instance v12, Ljava/util/ArrayList;
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->factories:Ljava/util/List;
- invoke-interface {v0}, Ljava/util/List;->size()I
- move-result v0
- iget-object v1, p0, Lcom/google/gson/GsonBuilder;->hierarchyFactories:Ljava/util/List;
- invoke-interface {v1}, Ljava/util/List;->size()I
- move-result v1
- add-int/2addr v0, v1
- add-int/lit8 v0, v0, 0x3
- invoke-direct {v12, v0}, Ljava/util/ArrayList;-><init>(I)V
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->factories:Ljava/util/List;
- invoke-interface {v12, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
- invoke-static {v12}, Ljava/util/Collections;->reverse(Ljava/util/List;)V
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->hierarchyFactories:Ljava/util/List;
- invoke-static {v0}, Ljava/util/Collections;->reverse(Ljava/util/List;)V
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->hierarchyFactories:Ljava/util/List;
- invoke-interface {v12, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->datePattern:Ljava/lang/String;
- iget v1, p0, Lcom/google/gson/GsonBuilder;->dateStyle:I
- iget v2, p0, Lcom/google/gson/GsonBuilder;->timeStyle:I
- invoke-direct {p0, v0, v1, v2, v12}, Lcom/google/gson/GsonBuilder;->addTypeAdaptersForDate(Ljava/lang/String;IILjava/util/List;)V
- new-instance v13, Lcom/google/gson/Gson;
- iget-object v1, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- iget-object v2, p0, Lcom/google/gson/GsonBuilder;->fieldNamingPolicy:Lcom/google/gson/FieldNamingStrategy;
- iget-object v3, p0, Lcom/google/gson/GsonBuilder;->instanceCreators:Ljava/util/Map;
- iget-boolean v4, p0, Lcom/google/gson/GsonBuilder;->serializeNulls:Z
- iget-boolean v5, p0, Lcom/google/gson/GsonBuilder;->complexMapKeySerialization:Z
- iget-boolean v6, p0, Lcom/google/gson/GsonBuilder;->generateNonExecutableJson:Z
- iget-boolean v7, p0, Lcom/google/gson/GsonBuilder;->escapeHtmlChars:Z
- iget-boolean v8, p0, Lcom/google/gson/GsonBuilder;->prettyPrinting:Z
- iget-boolean v9, p0, Lcom/google/gson/GsonBuilder;->lenient:Z
- iget-boolean v10, p0, Lcom/google/gson/GsonBuilder;->serializeSpecialFloatingPointValues:Z
- iget-object v11, p0, Lcom/google/gson/GsonBuilder;->longSerializationPolicy:Lcom/google/gson/LongSerializationPolicy;
- move-object v0, v13
- invoke-direct/range {v0 .. v12}, Lcom/google/gson/Gson;-><init>(Lcom/google/gson/internal/Excluder;Lcom/google/gson/FieldNamingStrategy;Ljava/util/Map;ZZZZZZZLcom/google/gson/LongSerializationPolicy;Ljava/util/List;)V
- return-object v13
- .end method
- .method public disableHtmlEscaping()Lcom/google/gson/GsonBuilder;
- .locals 1
- const/4 v0, 0x0
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->escapeHtmlChars:Z
- return-object p0
- .end method
- .method public disableInnerClassSerialization()Lcom/google/gson/GsonBuilder;
- .locals 1
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- invoke-virtual {v0}, Lcom/google/gson/internal/Excluder;->disableInnerClassSerialization()Lcom/google/gson/internal/Excluder;
- move-result-object v0
- iput-object v0, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- return-object p0
- .end method
- .method public enableComplexMapKeySerialization()Lcom/google/gson/GsonBuilder;
- .locals 1
- const/4 v0, 0x1
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->complexMapKeySerialization:Z
- return-object p0
- .end method
- .method public varargs excludeFieldsWithModifiers([I)Lcom/google/gson/GsonBuilder;
- .locals 1
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- invoke-virtual {v0, p1}, Lcom/google/gson/internal/Excluder;->withModifiers([I)Lcom/google/gson/internal/Excluder;
- move-result-object p1
- iput-object p1, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- return-object p0
- .end method
- .method public excludeFieldsWithoutExposeAnnotation()Lcom/google/gson/GsonBuilder;
- .locals 1
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- invoke-virtual {v0}, Lcom/google/gson/internal/Excluder;->excludeFieldsWithoutExposeAnnotation()Lcom/google/gson/internal/Excluder;
- move-result-object v0
- iput-object v0, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- return-object p0
- .end method
- .method public generateNonExecutableJson()Lcom/google/gson/GsonBuilder;
- .locals 1
- const/4 v0, 0x1
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->generateNonExecutableJson:Z
- return-object p0
- .end method
- .method public registerTypeAdapter(Ljava/lang/reflect/Type;Ljava/lang/Object;)Lcom/google/gson/GsonBuilder;
- .locals 3
- instance-of v0, p2, Lcom/google/gson/JsonSerializer;
- if-nez v0, :cond_1
- instance-of v1, p2, Lcom/google/gson/JsonDeserializer;
- if-nez v1, :cond_1
- instance-of v1, p2, Lcom/google/gson/InstanceCreator;
- if-nez v1, :cond_1
- instance-of v1, p2, Lcom/google/gson/TypeAdapter;
- if-eqz v1, :cond_0
- goto :goto_0
- :cond_0
- const/4 v1, 0x0
- goto :goto_1
- :cond_1
- :goto_0
- const/4 v1, 0x1
- :goto_1
- invoke-static {v1}, Lcom/google/gson/internal/$Gson$Preconditions;->checkArgument(Z)V
- instance-of v1, p2, Lcom/google/gson/InstanceCreator;
- if-eqz v1, :cond_2
- iget-object v1, p0, Lcom/google/gson/GsonBuilder;->instanceCreators:Ljava/util/Map;
- move-object v2, p2
- check-cast v2, Lcom/google/gson/InstanceCreator;
- invoke-interface {v1, p1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
- :cond_2
- if-nez v0, :cond_3
- instance-of v0, p2, Lcom/google/gson/JsonDeserializer;
- if-eqz v0, :cond_4
- :cond_3
- invoke-static {p1}, Lcom/google/gson/reflect/TypeToken;->get(Ljava/lang/reflect/Type;)Lcom/google/gson/reflect/TypeToken;
- move-result-object v0
- iget-object v1, p0, Lcom/google/gson/GsonBuilder;->factories:Ljava/util/List;
- invoke-static {v0, p2}, Lcom/google/gson/internal/bind/TreeTypeAdapter;->newFactoryWithMatchRawType(Lcom/google/gson/reflect/TypeToken;Ljava/lang/Object;)Lcom/google/gson/TypeAdapterFactory;
- move-result-object v0
- invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- :cond_4
- instance-of v0, p2, Lcom/google/gson/TypeAdapter;
- if-eqz v0, :cond_5
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->factories:Ljava/util/List;
- invoke-static {p1}, Lcom/google/gson/reflect/TypeToken;->get(Ljava/lang/reflect/Type;)Lcom/google/gson/reflect/TypeToken;
- move-result-object p1
- check-cast p2, Lcom/google/gson/TypeAdapter;
- invoke-static {p1, p2}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Lcom/google/gson/reflect/TypeToken;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
- move-result-object p1
- invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- :cond_5
- return-object p0
- .end method
- .method public registerTypeAdapterFactory(Lcom/google/gson/TypeAdapterFactory;)Lcom/google/gson/GsonBuilder;
- .locals 1
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->factories:Ljava/util/List;
- invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- return-object p0
- .end method
- .method public registerTypeHierarchyAdapter(Ljava/lang/Class;Ljava/lang/Object;)Lcom/google/gson/GsonBuilder;
- .locals 2
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Ljava/lang/Class<",
- "*>;",
- "Ljava/lang/Object;",
- ")",
- "Lcom/google/gson/GsonBuilder;"
- }
- .end annotation
- instance-of v0, p2, Lcom/google/gson/JsonSerializer;
- if-nez v0, :cond_1
- instance-of v1, p2, Lcom/google/gson/JsonDeserializer;
- if-nez v1, :cond_1
- instance-of v1, p2, Lcom/google/gson/TypeAdapter;
- if-eqz v1, :cond_0
- goto :goto_0
- :cond_0
- const/4 v1, 0x0
- goto :goto_1
- :cond_1
- :goto_0
- const/4 v1, 0x1
- :goto_1
- invoke-static {v1}, Lcom/google/gson/internal/$Gson$Preconditions;->checkArgument(Z)V
- instance-of v1, p2, Lcom/google/gson/JsonDeserializer;
- if-nez v1, :cond_2
- if-eqz v0, :cond_3
- :cond_2
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->hierarchyFactories:Ljava/util/List;
- invoke-static {p1, p2}, Lcom/google/gson/internal/bind/TreeTypeAdapter;->newTypeHierarchyFactory(Ljava/lang/Class;Ljava/lang/Object;)Lcom/google/gson/TypeAdapterFactory;
- move-result-object v1
- invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- :cond_3
- instance-of v0, p2, Lcom/google/gson/TypeAdapter;
- if-eqz v0, :cond_4
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->factories:Ljava/util/List;
- check-cast p2, Lcom/google/gson/TypeAdapter;
- invoke-static {p1, p2}, Lcom/google/gson/internal/bind/TypeAdapters;->newTypeHierarchyFactory(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
- move-result-object p1
- invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- :cond_4
- return-object p0
- .end method
- .method public serializeNulls()Lcom/google/gson/GsonBuilder;
- .locals 1
- const/4 v0, 0x1
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->serializeNulls:Z
- return-object p0
- .end method
- .method public serializeSpecialFloatingPointValues()Lcom/google/gson/GsonBuilder;
- .locals 1
- const/4 v0, 0x1
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->serializeSpecialFloatingPointValues:Z
- return-object p0
- .end method
- .method public setDateFormat(I)Lcom/google/gson/GsonBuilder;
- .locals 0
- iput p1, p0, Lcom/google/gson/GsonBuilder;->dateStyle:I
- const/4 p1, 0x0
- iput-object p1, p0, Lcom/google/gson/GsonBuilder;->datePattern:Ljava/lang/String;
- return-object p0
- .end method
- .method public setDateFormat(II)Lcom/google/gson/GsonBuilder;
- .locals 0
- iput p1, p0, Lcom/google/gson/GsonBuilder;->dateStyle:I
- iput p2, p0, Lcom/google/gson/GsonBuilder;->timeStyle:I
- const/4 p1, 0x0
- iput-object p1, p0, Lcom/google/gson/GsonBuilder;->datePattern:Ljava/lang/String;
- return-object p0
- .end method
- .method public setDateFormat(Ljava/lang/String;)Lcom/google/gson/GsonBuilder;
- .locals 0
- iput-object p1, p0, Lcom/google/gson/GsonBuilder;->datePattern:Ljava/lang/String;
- return-object p0
- .end method
- .method public varargs setExclusionStrategies([Lcom/google/gson/ExclusionStrategy;)Lcom/google/gson/GsonBuilder;
- .locals 5
- array-length v0, p1
- const/4 v1, 0x0
- :goto_0
- if-ge v1, v0, :cond_0
- aget-object v2, p1, v1
- iget-object v3, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- const/4 v4, 0x1
- invoke-virtual {v3, v2, v4, v4}, Lcom/google/gson/internal/Excluder;->withExclusionStrategy(Lcom/google/gson/ExclusionStrategy;ZZ)Lcom/google/gson/internal/Excluder;
- move-result-object v2
- iput-object v2, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- add-int/lit8 v1, v1, 0x1
- goto :goto_0
- :cond_0
- return-object p0
- .end method
- .method public setFieldNamingPolicy(Lcom/google/gson/FieldNamingPolicy;)Lcom/google/gson/GsonBuilder;
- .locals 0
- iput-object p1, p0, Lcom/google/gson/GsonBuilder;->fieldNamingPolicy:Lcom/google/gson/FieldNamingStrategy;
- return-object p0
- .end method
- .method public setFieldNamingStrategy(Lcom/google/gson/FieldNamingStrategy;)Lcom/google/gson/GsonBuilder;
- .locals 0
- iput-object p1, p0, Lcom/google/gson/GsonBuilder;->fieldNamingPolicy:Lcom/google/gson/FieldNamingStrategy;
- return-object p0
- .end method
- .method public setLenient()Lcom/google/gson/GsonBuilder;
- .locals 1
- const/4 v0, 0x1
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->lenient:Z
- return-object p0
- .end method
- .method public setLongSerializationPolicy(Lcom/google/gson/LongSerializationPolicy;)Lcom/google/gson/GsonBuilder;
- .locals 0
- iput-object p1, p0, Lcom/google/gson/GsonBuilder;->longSerializationPolicy:Lcom/google/gson/LongSerializationPolicy;
- return-object p0
- .end method
- .method public setPrettyPrinting()Lcom/google/gson/GsonBuilder;
- .locals 1
- const/4 v0, 0x1
- iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->prettyPrinting:Z
- return-object p0
- .end method
- .method public setVersion(D)Lcom/google/gson/GsonBuilder;
- .locals 1
- iget-object v0, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- invoke-virtual {v0, p1, p2}, Lcom/google/gson/internal/Excluder;->withVersion(D)Lcom/google/gson/internal/Excluder;
- move-result-object p1
- iput-object p1, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
- return-object p0
- .end method
|