apkfuckery/com.discord/smali/com/google/gson/GsonBuilder.smali
2019-02-04 21:05:16 +01:00

751 lines
22 KiB
Smali

.class public final Lcom/google/gson/GsonBuilder;
.super Ljava/lang/Object;
.source "GsonBuilder.java"
# 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 3
.prologue
const/4 v2, 0x2
const/4 v1, 0x0
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;
iput-boolean v1, p0, Lcom/google/gson/GsonBuilder;->serializeNulls:Z
iput v2, p0, Lcom/google/gson/GsonBuilder;->dateStyle:I
iput v2, p0, Lcom/google/gson/GsonBuilder;->timeStyle:I
iput-boolean v1, p0, Lcom/google/gson/GsonBuilder;->complexMapKeySerialization:Z
iput-boolean v1, p0, Lcom/google/gson/GsonBuilder;->serializeSpecialFloatingPointValues:Z
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/google/gson/GsonBuilder;->escapeHtmlChars:Z
iput-boolean v1, p0, Lcom/google/gson/GsonBuilder;->prettyPrinting:Z
iput-boolean v1, p0, Lcom/google/gson/GsonBuilder;->generateNonExecutableJson:Z
iput-boolean v1, p0, Lcom/google/gson/GsonBuilder;->lenient:Z
return-void
.end method
.method private addTypeAdaptersForDate(Ljava/lang/String;IILjava/util/List;)V
.locals 4
.param p1, "datePattern" # Ljava/lang/String;
.param p2, "dateStyle" # I
.param p3, "timeStyle" # I
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"II",
"Ljava/util/List",
"<",
"Lcom/google/gson/TypeAdapterFactory;",
">;)V"
}
.end annotation
.prologue
.local p4, "factories":Ljava/util/List;, "Ljava/util/List<Lcom/google/gson/TypeAdapterFactory;>;"
const/4 v3, 0x2
if-eqz p1, :cond_1
const-string v1, ""
invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_1
new-instance v0, Lcom/google/gson/DefaultDateTypeAdapter;
invoke-direct {v0, p1}, Lcom/google/gson/DefaultDateTypeAdapter;-><init>(Ljava/lang/String;)V
.local v0, "dateTypeAdapter":Lcom/google/gson/DefaultDateTypeAdapter;
:goto_0
const-class v1, Ljava/util/Date;
invoke-static {v1}, Lcom/google/gson/reflect/TypeToken;->get(Ljava/lang/Class;)Lcom/google/gson/reflect/TypeToken;
move-result-object v1
invoke-static {v1, v0}, Lcom/google/gson/TreeTypeAdapter;->newFactory(Lcom/google/gson/reflect/TypeToken;Ljava/lang/Object;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v1
invoke-interface {p4, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
const-class v1, Ljava/sql/Timestamp;
invoke-static {v1}, Lcom/google/gson/reflect/TypeToken;->get(Ljava/lang/Class;)Lcom/google/gson/reflect/TypeToken;
move-result-object v1
invoke-static {v1, v0}, Lcom/google/gson/TreeTypeAdapter;->newFactory(Lcom/google/gson/reflect/TypeToken;Ljava/lang/Object;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v1
invoke-interface {p4, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
const-class v1, Ljava/sql/Date;
invoke-static {v1}, Lcom/google/gson/reflect/TypeToken;->get(Ljava/lang/Class;)Lcom/google/gson/reflect/TypeToken;
move-result-object v1
invoke-static {v1, v0}, Lcom/google/gson/TreeTypeAdapter;->newFactory(Lcom/google/gson/reflect/TypeToken;Ljava/lang/Object;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v1
invoke-interface {p4, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.end local v0 # "dateTypeAdapter":Lcom/google/gson/DefaultDateTypeAdapter;
:cond_0
return-void
:cond_1
if-eq p2, v3, :cond_0
if-eq p3, v3, :cond_0
new-instance v0, Lcom/google/gson/DefaultDateTypeAdapter;
invoke-direct {v0, p2, p3}, Lcom/google/gson/DefaultDateTypeAdapter;-><init>(II)V
.restart local v0 # "dateTypeAdapter":Lcom/google/gson/DefaultDateTypeAdapter;
goto :goto_0
.end method
# virtual methods
.method public addDeserializationExclusionStrategy(Lcom/google/gson/ExclusionStrategy;)Lcom/google/gson/GsonBuilder;
.locals 3
.param p1, "strategy" # Lcom/google/gson/ExclusionStrategy;
.prologue
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 v0
iput-object v0, 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
.param p1, "strategy" # Lcom/google/gson/ExclusionStrategy;
.prologue
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 v0
iput-object v0, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
return-object p0
.end method
.method public create()Lcom/google/gson/Gson;
.locals 13
.prologue
new-instance v12, Ljava/util/ArrayList;
invoke-direct {v12}, Ljava/util/ArrayList;-><init>()V
.local v12, "factories":Ljava/util/List;, "Ljava/util/List<Lcom/google/gson/TypeAdapterFactory;>;"
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-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 v0, 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;
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 v0
.end method
.method public disableHtmlEscaping()Lcom/google/gson/GsonBuilder;
.locals 1
.prologue
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
.prologue
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
.prologue
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
.param p1, "modifiers" # [I
.prologue
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 v0
iput-object v0, 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
.prologue
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
.prologue
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
.param p1, "type" # Ljava/lang/reflect/Type;
.param p2, "typeAdapter" # Ljava/lang/Object;
.prologue
instance-of v1, p2, Lcom/google/gson/JsonSerializer;
if-nez v1, :cond_0
instance-of v1, p2, Lcom/google/gson/JsonDeserializer;
if-nez v1, :cond_0
instance-of v1, p2, Lcom/google/gson/InstanceCreator;
if-nez v1, :cond_0
instance-of v1, p2, Lcom/google/gson/TypeAdapter;
if-eqz v1, :cond_5
:cond_0
const/4 v1, 0x1
:goto_0
invoke-static {v1}, Lcom/google/gson/internal/$Gson$Preconditions;->checkArgument(Z)V
instance-of v1, p2, Lcom/google/gson/InstanceCreator;
if-eqz v1, :cond_1
iget-object v2, p0, Lcom/google/gson/GsonBuilder;->instanceCreators:Ljava/util/Map;
move-object v1, p2
check-cast v1, Lcom/google/gson/InstanceCreator;
invoke-interface {v2, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_1
instance-of v1, p2, Lcom/google/gson/JsonSerializer;
if-nez v1, :cond_2
instance-of v1, p2, Lcom/google/gson/JsonDeserializer;
if-eqz v1, :cond_3
:cond_2
invoke-static {p1}, Lcom/google/gson/reflect/TypeToken;->get(Ljava/lang/reflect/Type;)Lcom/google/gson/reflect/TypeToken;
move-result-object v0
.local v0, "typeToken":Lcom/google/gson/reflect/TypeToken;, "Lcom/google/gson/reflect/TypeToken<*>;"
iget-object v1, p0, Lcom/google/gson/GsonBuilder;->factories:Ljava/util/List;
invoke-static {v0, p2}, Lcom/google/gson/TreeTypeAdapter;->newFactoryWithMatchRawType(Lcom/google/gson/reflect/TypeToken;Ljava/lang/Object;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v2
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.end local v0 # "typeToken":Lcom/google/gson/reflect/TypeToken;, "Lcom/google/gson/reflect/TypeToken<*>;"
:cond_3
instance-of v1, p2, Lcom/google/gson/TypeAdapter;
if-eqz v1, :cond_4
iget-object v1, 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 v2
check-cast p2, Lcom/google/gson/TypeAdapter;
.end local p2 # "typeAdapter":Ljava/lang/Object;
invoke-static {v2, p2}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Lcom/google/gson/reflect/TypeToken;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v2
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_4
return-object p0
.restart local p2 # "typeAdapter":Ljava/lang/Object;
:cond_5
const/4 v1, 0x0
goto :goto_0
.end method
.method public registerTypeAdapterFactory(Lcom/google/gson/TypeAdapterFactory;)Lcom/google/gson/GsonBuilder;
.locals 1
.param p1, "factory" # Lcom/google/gson/TypeAdapterFactory;
.prologue
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 3
.param p2, "typeAdapter" # Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class",
"<*>;",
"Ljava/lang/Object;",
")",
"Lcom/google/gson/GsonBuilder;"
}
.end annotation
.prologue
.local p1, "baseType":Ljava/lang/Class;, "Ljava/lang/Class<*>;"
const/4 v1, 0x0
instance-of v0, p2, Lcom/google/gson/JsonSerializer;
if-nez v0, :cond_0
instance-of v0, p2, Lcom/google/gson/JsonDeserializer;
if-nez v0, :cond_0
instance-of v0, p2, Lcom/google/gson/TypeAdapter;
if-eqz v0, :cond_4
:cond_0
const/4 v0, 0x1
:goto_0
invoke-static {v0}, Lcom/google/gson/internal/$Gson$Preconditions;->checkArgument(Z)V
instance-of v0, p2, Lcom/google/gson/JsonDeserializer;
if-nez v0, :cond_1
instance-of v0, p2, Lcom/google/gson/JsonSerializer;
if-eqz v0, :cond_2
:cond_1
iget-object v0, p0, Lcom/google/gson/GsonBuilder;->hierarchyFactories:Ljava/util/List;
invoke-static {p1, p2}, Lcom/google/gson/TreeTypeAdapter;->newTypeHierarchyFactory(Ljava/lang/Class;Ljava/lang/Object;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v2
invoke-interface {v0, v1, v2}, Ljava/util/List;->add(ILjava/lang/Object;)V
:cond_2
instance-of v0, p2, Lcom/google/gson/TypeAdapter;
if-eqz v0, :cond_3
iget-object v0, p0, Lcom/google/gson/GsonBuilder;->factories:Ljava/util/List;
check-cast p2, Lcom/google/gson/TypeAdapter;
.end local p2 # "typeAdapter":Ljava/lang/Object;
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 v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_3
return-object p0
.restart local p2 # "typeAdapter":Ljava/lang/Object;
:cond_4
move v0, v1
goto :goto_0
.end method
.method public serializeNulls()Lcom/google/gson/GsonBuilder;
.locals 1
.prologue
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
.prologue
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 1
.param p1, "style" # I
.prologue
iput p1, p0, Lcom/google/gson/GsonBuilder;->dateStyle:I
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/gson/GsonBuilder;->datePattern:Ljava/lang/String;
return-object p0
.end method
.method public setDateFormat(II)Lcom/google/gson/GsonBuilder;
.locals 1
.param p1, "dateStyle" # I
.param p2, "timeStyle" # I
.prologue
iput p1, p0, Lcom/google/gson/GsonBuilder;->dateStyle:I
iput p2, p0, Lcom/google/gson/GsonBuilder;->timeStyle:I
const/4 v0, 0x0
iput-object v0, 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
.param p1, "pattern" # Ljava/lang/String;
.prologue
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
.param p1, "strategies" # [Lcom/google/gson/ExclusionStrategy;
.prologue
const/4 v4, 0x1
array-length v2, p1
const/4 v1, 0x0
:goto_0
if-ge v1, v2, :cond_0
aget-object v0, p1, v1
.local v0, "strategy":Lcom/google/gson/ExclusionStrategy;
iget-object v3, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
invoke-virtual {v3, v0, v4, v4}, Lcom/google/gson/internal/Excluder;->withExclusionStrategy(Lcom/google/gson/ExclusionStrategy;ZZ)Lcom/google/gson/internal/Excluder;
move-result-object v3
iput-object v3, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
add-int/lit8 v1, v1, 0x1
goto :goto_0
.end local v0 # "strategy":Lcom/google/gson/ExclusionStrategy;
:cond_0
return-object p0
.end method
.method public setFieldNamingPolicy(Lcom/google/gson/FieldNamingPolicy;)Lcom/google/gson/GsonBuilder;
.locals 0
.param p1, "namingConvention" # Lcom/google/gson/FieldNamingPolicy;
.prologue
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
.param p1, "fieldNamingStrategy" # Lcom/google/gson/FieldNamingStrategy;
.prologue
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
.prologue
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
.param p1, "serializationPolicy" # Lcom/google/gson/LongSerializationPolicy;
.prologue
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
.prologue
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
.param p1, "ignoreVersionsAfter" # D
.prologue
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 v0
iput-object v0, p0, Lcom/google/gson/GsonBuilder;->excluder:Lcom/google/gson/internal/Excluder;
return-object p0
.end method