Gson.smali
.class public final Lcom/google/gson/Gson;
.super Ljava/lang/Object;
.source "Gson.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/gson/Gson$FutureTypeAdapter;
}
.end annotation
# static fields
.field static final DEFAULT_COMPLEX_MAP_KEYS:Z = false
.field static final DEFAULT_ESCAPE_HTML:Z = true
.field static final DEFAULT_JSON_NON_EXECUTABLE:Z = false
.field static final DEFAULT_LENIENT:Z = false
.field static final DEFAULT_PRETTY_PRINT:Z = false
.field static final DEFAULT_SERIALIZE_NULLS:Z = false
.field static final DEFAULT_SPECIALIZE_FLOAT_VALUES:Z = false
.field private static final JSON_NON_EXECUTABLE_PREFIX:Ljava/lang/String; = ")]}\'\n"
.field private static final NULL_KEY_SURROGATE:Lcom/google/gson/reflect/TypeToken;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/gson/reflect/TypeToken<",
"*>;"
}
.end annotation
.end field
# instance fields
.field final builderFactories:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/gson/TypeAdapterFactory;",
">;"
}
.end annotation
.end field
.field final builderHierarchyFactories:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/gson/TypeAdapterFactory;",
">;"
}
.end annotation
.end field
.field private final calls:Ljava/lang/ThreadLocal;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ThreadLocal<",
"Ljava/util/Map<",
"Lcom/google/gson/reflect/TypeToken<",
"*>;",
"Lcom/google/gson/Gson$FutureTypeAdapter<",
"*>;>;>;"
}
.end annotation
.end field
.field final complexMapKeySerialization:Z
.field private final constructorConstructor:Lcom/google/gson/internal/ConstructorConstructor;
.field final datePattern:Ljava/lang/String;
.field final dateStyle:I
.field final excluder:Lcom/google/gson/internal/Excluder;
.field final factories:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/gson/TypeAdapterFactory;",
">;"
}
.end annotation
.end field
.field final fieldNamingStrategy:Lcom/google/gson/FieldNamingStrategy;
.field final generateNonExecutableJson:Z
.field final htmlSafe:Z
.field 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 final jsonAdapterFactory:Lcom/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory;
.field final lenient:Z
.field final longSerializationPolicy:Lcom/google/gson/LongSerializationPolicy;
.field final prettyPrinting:Z
.field final serializeNulls:Z
.field final serializeSpecialFloatingPointValues:Z
.field final timeStyle:I
.field private final typeTokenCache:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Lcom/google/gson/reflect/TypeToken<",
"*>;",
"Lcom/google/gson/TypeAdapter<",
"*>;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 114
const-class v0, Ljava/lang/Object;
invoke-static {v0}, Lcom/google/gson/reflect/TypeToken;->get(Ljava/lang/Class;)Lcom/google/gson/reflect/TypeToken;
move-result-object v0
sput-object v0, Lcom/google/gson/Gson;->NULL_KEY_SURROGATE:Lcom/google/gson/reflect/TypeToken;
return-void
.end method
.method public constructor <init>()V
.registers 19
move-object/from16 v0, p0
.line 186
sget-object v1, Lcom/google/gson/internal/Excluder;->DEFAULT:Lcom/google/gson/internal/Excluder;
sget-object v2, Lcom/google/gson/FieldNamingPolicy;->IDENTITY:Lcom/google/gson/FieldNamingPolicy;
.line 187
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
move-result-object v3
sget-object v11, Lcom/google/gson/LongSerializationPolicy;->DEFAULT:Lcom/google/gson/LongSerializationPolicy;
.line 191
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v15
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v16
.line 192
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v17
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x1
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v12, 0x0
const/4 v13, 0x2
const/4 v14, 0x2
.line 186
invoke-direct/range {v0 .. v17}, Lcom/google/gson/Gson;-><init>(Lcom/google/gson/internal/Excluder;Lcom/google/gson/FieldNamingStrategy;Ljava/util/Map;ZZZZZZZLcom/google/gson/LongSerializationPolicy;Ljava/lang/String;IILjava/util/List;Ljava/util/List;Ljava/util/List;)V
return-void
.end method
.method constructor <init>(Lcom/google/gson/internal/Excluder;Lcom/google/gson/FieldNamingStrategy;Ljava/util/Map;ZZZZZZZLcom/google/gson/LongSerializationPolicy;Ljava/lang/String;IILjava/util/List;Ljava/util/List;Ljava/util/List;)V
.registers 28
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/gson/internal/Excluder;",
"Lcom/google/gson/FieldNamingStrategy;",
"Ljava/util/Map<",
"Ljava/lang/reflect/Type;",
"Lcom/google/gson/InstanceCreator<",
"*>;>;ZZZZZZZ",
"Lcom/google/gson/LongSerializationPolicy;",
"Ljava/lang/String;",
"II",
"Ljava/util/List<",
"Lcom/google/gson/TypeAdapterFactory;",
">;",
"Ljava/util/List<",
"Lcom/google/gson/TypeAdapterFactory;",
">;",
"Ljava/util/List<",
"Lcom/google/gson/TypeAdapterFactory;",
">;)V"
}
.end annotation
move-object v0, p0
move-object v1, p1
move-object v2, p2
move-object v3, p3
move v4, p5
move/from16 v5, p10
.line 202
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 124
new-instance v6, Ljava/lang/ThreadLocal;
invoke-direct {v6}, Ljava/lang/ThreadLocal;-><init>()V
iput-object v6, v0, Lcom/google/gson/Gson;->calls:Ljava/lang/ThreadLocal;
.line 127
new-instance v6, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v6}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
iput-object v6, v0, Lcom/google/gson/Gson;->typeTokenCache:Ljava/util/Map;
.line 203
iput-object v1, v0, Lcom/google/gson/Gson;->excluder:Lcom/google/gson/internal/Excluder;
.line 204
iput-object v2, v0, Lcom/google/gson/Gson;->fieldNamingStrategy:Lcom/google/gson/FieldNamingStrategy;
.line 205
iput-object v3, v0, Lcom/google/gson/Gson;->instanceCreators:Ljava/util/Map;
.line 206
new-instance v6, Lcom/google/gson/internal/ConstructorConstructor;
invoke-direct {v6, p3}, Lcom/google/gson/internal/ConstructorConstructor;-><init>(Ljava/util/Map;)V
iput-object v6, v0, Lcom/google/gson/Gson;->constructorConstructor:Lcom/google/gson/internal/ConstructorConstructor;
move v3, p4
.line 207
iput-boolean v3, v0, Lcom/google/gson/Gson;->serializeNulls:Z
.line 208
iput-boolean v4, v0, Lcom/google/gson/Gson;->complexMapKeySerialization:Z
move/from16 v3, p6
.line 209
iput-boolean v3, v0, Lcom/google/gson/Gson;->generateNonExecutableJson:Z
move/from16 v3, p7
.line 210
iput-boolean v3, v0, Lcom/google/gson/Gson;->htmlSafe:Z
move/from16 v3, p8
.line 211
iput-boolean v3, v0, Lcom/google/gson/Gson;->prettyPrinting:Z
move/from16 v3, p9
.line 212
iput-boolean v3, v0, Lcom/google/gson/Gson;->lenient:Z
.line 213
iput-boolean v5, v0, Lcom/google/gson/Gson;->serializeSpecialFloatingPointValues:Z
move-object/from16 v3, p11
.line 214
iput-object v3, v0, Lcom/google/gson/Gson;->longSerializationPolicy:Lcom/google/gson/LongSerializationPolicy;
move-object/from16 v6, p12
.line 215
iput-object v6, v0, Lcom/google/gson/Gson;->datePattern:Ljava/lang/String;
move/from16 v6, p13
.line 216
iput v6, v0, Lcom/google/gson/Gson;->dateStyle:I
move/from16 v6, p14
.line 217
iput v6, v0, Lcom/google/gson/Gson;->timeStyle:I
move-object/from16 v6, p15
.line 218
iput-object v6, v0, Lcom/google/gson/Gson;->builderFactories:Ljava/util/List;
move-object/from16 v6, p16
.line 219
iput-object v6, v0, Lcom/google/gson/Gson;->builderHierarchyFactories:Ljava/util/List;
.line 221
new-instance v6, Ljava/util/ArrayList;
invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V
.line 224
sget-object v7, Lcom/google/gson/internal/bind/TypeAdapters;->JSON_ELEMENT_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 225
sget-object v7, Lcom/google/gson/internal/bind/ObjectTypeAdapter;->FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 228
invoke-interface {v6, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
move-object/from16 v7, p17
.line 231
invoke-interface {v6, v7}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
.line 234
sget-object v7, Lcom/google/gson/internal/bind/TypeAdapters;->STRING_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 235
sget-object v7, Lcom/google/gson/internal/bind/TypeAdapters;->INTEGER_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 236
sget-object v7, Lcom/google/gson/internal/bind/TypeAdapters;->BOOLEAN_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 237
sget-object v7, Lcom/google/gson/internal/bind/TypeAdapters;->BYTE_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 238
sget-object v7, Lcom/google/gson/internal/bind/TypeAdapters;->SHORT_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 239
invoke-static/range {p11 .. p11}, Lcom/google/gson/Gson;->longAdapter(Lcom/google/gson/LongSerializationPolicy;)Lcom/google/gson/TypeAdapter;
move-result-object v3
.line 240
sget-object v7, Ljava/lang/Long;->TYPE:Ljava/lang/Class;
const-class v8, Ljava/lang/Long;
invoke-static {v7, v8, v3}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Ljava/lang/Class;Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v7
invoke-interface {v6, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 241
sget-object v7, Ljava/lang/Double;->TYPE:Ljava/lang/Class;
const-class v8, Ljava/lang/Double;
.line 242
invoke-direct {p0, v5}, Lcom/google/gson/Gson;->doubleAdapter(Z)Lcom/google/gson/TypeAdapter;
move-result-object v9
.line 241
invoke-static {v7, v8, v9}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Ljava/lang/Class;Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v7
invoke-interface {v6, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 243
sget-object v7, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
const-class v8, Ljava/lang/Float;
.line 244
invoke-direct {p0, v5}, Lcom/google/gson/Gson;->floatAdapter(Z)Lcom/google/gson/TypeAdapter;
move-result-object v5
.line 243
invoke-static {v7, v8, v5}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Ljava/lang/Class;Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v5
invoke-interface {v6, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 245
sget-object v5, Lcom/google/gson/internal/bind/TypeAdapters;->NUMBER_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 246
sget-object v5, Lcom/google/gson/internal/bind/TypeAdapters;->ATOMIC_INTEGER_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 247
sget-object v5, Lcom/google/gson/internal/bind/TypeAdapters;->ATOMIC_BOOLEAN_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 248
const-class v5, Ljava/util/concurrent/atomic/AtomicLong;
invoke-static {v3}, Lcom/google/gson/Gson;->atomicLongAdapter(Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapter;
move-result-object v7
invoke-static {v5, v7}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v5
invoke-interface {v6, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 249
const-class v5, Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-static {v3}, Lcom/google/gson/Gson;->atomicLongArrayAdapter(Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapter;
move-result-object v3
invoke-static {v5, v3}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v3
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 250
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->ATOMIC_INTEGER_ARRAY_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 251
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->CHARACTER_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 252
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->STRING_BUILDER_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 253
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->STRING_BUFFER_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 254
const-class v3, Ljava/math/BigDecimal;
sget-object v5, Lcom/google/gson/internal/bind/TypeAdapters;->BIG_DECIMAL:Lcom/google/gson/TypeAdapter;
invoke-static {v3, v5}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v3
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 255
const-class v3, Ljava/math/BigInteger;
sget-object v5, Lcom/google/gson/internal/bind/TypeAdapters;->BIG_INTEGER:Lcom/google/gson/TypeAdapter;
invoke-static {v3, v5}, Lcom/google/gson/internal/bind/TypeAdapters;->newFactory(Ljava/lang/Class;Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapterFactory;
move-result-object v3
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 256
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->URL_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 257
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->URI_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 258
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->UUID_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 259
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->CURRENCY_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 260
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->LOCALE_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 261
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->INET_ADDRESS_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 262
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->BIT_SET_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 263
sget-object v3, Lcom/google/gson/internal/bind/DateTypeAdapter;->FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 264
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->CALENDAR_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 265
sget-object v3, Lcom/google/gson/internal/bind/TimeTypeAdapter;->FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 266
sget-object v3, Lcom/google/gson/internal/bind/SqlDateTypeAdapter;->FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 267
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->TIMESTAMP_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 268
sget-object v3, Lcom/google/gson/internal/bind/ArrayTypeAdapter;->FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 269
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->CLASS_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 272
new-instance v3, Lcom/google/gson/internal/bind/CollectionTypeAdapterFactory;
iget-object v5, v0, Lcom/google/gson/Gson;->constructorConstructor:Lcom/google/gson/internal/ConstructorConstructor;
invoke-direct {v3, v5}, Lcom/google/gson/internal/bind/CollectionTypeAdapterFactory;-><init>(Lcom/google/gson/internal/ConstructorConstructor;)V
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 273
new-instance v3, Lcom/google/gson/internal/bind/MapTypeAdapterFactory;
iget-object v5, v0, Lcom/google/gson/Gson;->constructorConstructor:Lcom/google/gson/internal/ConstructorConstructor;
invoke-direct {v3, v5, p5}, Lcom/google/gson/internal/bind/MapTypeAdapterFactory;-><init>(Lcom/google/gson/internal/ConstructorConstructor;Z)V
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 274
new-instance v3, Lcom/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory;
iget-object v4, v0, Lcom/google/gson/Gson;->constructorConstructor:Lcom/google/gson/internal/ConstructorConstructor;
invoke-direct {v3, v4}, Lcom/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory;-><init>(Lcom/google/gson/internal/ConstructorConstructor;)V
iput-object v3, v0, Lcom/google/gson/Gson;->jsonAdapterFactory:Lcom/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory;
.line 275
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 276
sget-object v3, Lcom/google/gson/internal/bind/TypeAdapters;->ENUM_FACTORY:Lcom/google/gson/TypeAdapterFactory;
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 277
new-instance v3, Lcom/google/gson/internal/bind/ReflectiveTypeAdapterFactory;
iget-object v4, v0, Lcom/google/gson/Gson;->constructorConstructor:Lcom/google/gson/internal/ConstructorConstructor;
iget-object v5, v0, Lcom/google/gson/Gson;->jsonAdapterFactory:Lcom/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory;
invoke-direct {v3, v4, p2, p1, v5}, Lcom/google/gson/internal/bind/ReflectiveTypeAdapterFactory;-><init>(Lcom/google/gson/internal/ConstructorConstructor;Lcom/google/gson/FieldNamingStrategy;Lcom/google/gson/internal/Excluder;Lcom/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory;)V
invoke-interface {v6, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 280
invoke-static {v6}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object v1
iput-object v1, v0, Lcom/google/gson/Gson;->factories:Ljava/util/List;
return-void
.end method
.method private static assertFullConsumption(Ljava/lang/Object;Lcom/google/gson/stream/JsonReader;)V
.registers 2
if-eqz p0, :cond_21
.line 899
:try_start_2
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
move-result-object p0
sget-object p1, Lcom/google/gson/stream/JsonToken;->END_DOCUMENT:Lcom/google/gson/stream/JsonToken;
if-ne p0, p1, :cond_b
goto :goto_21
.line 900
:cond_b
new-instance p0, Lcom/google/gson/JsonIOException;
const-string p1, "JSON document was not fully consumed."
invoke-direct {p0, p1}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/String;)V
throw p0
:try_end_13
.catch Lcom/google/gson/stream/MalformedJsonException; {:try_start_2 .. :try_end_13} :catch_1a
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_13} :catch_13
:catch_13
move-exception p0
.line 905
new-instance p1, Lcom/google/gson/JsonIOException;
invoke-direct {p1, p0}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/Throwable;)V
throw p1
:catch_1a
move-exception p0
.line 903
new-instance p1, Lcom/google/gson/JsonSyntaxException;
invoke-direct {p1, p0}, Lcom/google/gson/JsonSyntaxException;-><init>(Ljava/lang/Throwable;)V
throw p1
:cond_21
:goto_21
return-void
.end method
.method private static atomicLongAdapter(Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapter;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/gson/TypeAdapter<",
"Ljava/lang/Number;",
">;)",
"Lcom/google/gson/TypeAdapter<",
"Ljava/util/concurrent/atomic/AtomicLong;",
">;"
}
.end annotation
.line 388
new-instance v0, Lcom/google/gson/Gson$4;
invoke-direct {v0, p0}, Lcom/google/gson/Gson$4;-><init>(Lcom/google/gson/TypeAdapter;)V
.line 396
invoke-virtual {v0}, Lcom/google/gson/Gson$4;->nullSafe()Lcom/google/gson/TypeAdapter;
move-result-object p0
return-object p0
.end method
.method private static atomicLongArrayAdapter(Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapter;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/gson/TypeAdapter<",
"Ljava/lang/Number;",
">;)",
"Lcom/google/gson/TypeAdapter<",
"Ljava/util/concurrent/atomic/AtomicLongArray;",
">;"
}
.end annotation
.line 400
new-instance v0, Lcom/google/gson/Gson$5;
invoke-direct {v0, p0}, Lcom/google/gson/Gson$5;-><init>(Lcom/google/gson/TypeAdapter;)V
.line 423
invoke-virtual {v0}, Lcom/google/gson/Gson$5;->nullSafe()Lcom/google/gson/TypeAdapter;
move-result-object p0
return-object p0
.end method
.method static checkValidFloatingPoint(D)V
.registers 4
.line 358
invoke-static {p0, p1}, Ljava/lang/Double;->isNaN(D)Z
move-result v0
if-nez v0, :cond_d
invoke-static {p0, p1}, Ljava/lang/Double;->isInfinite(D)Z
move-result v0
if-nez v0, :cond_d
return-void
.line 359
:cond_d
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, p0, p1}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
const-string p0, " is not a valid double value as per JSON specification. To override this behavior, use GsonBuilder.serializeSpecialFloatingPointValues() method."
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private doubleAdapter(Z)Lcom/google/gson/TypeAdapter;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(Z)",
"Lcom/google/gson/TypeAdapter<",
"Ljava/lang/Number;",
">;"
}
.end annotation
if-eqz p1, :cond_5
.line 311
sget-object p1, Lcom/google/gson/internal/bind/TypeAdapters;->DOUBLE:Lcom/google/gson/TypeAdapter;
return-object p1
.line 313
:cond_5
new-instance p1, Lcom/google/gson/Gson$1;
invoke-direct {p1, p0}, Lcom/google/gson/Gson$1;-><init>(Lcom/google/gson/Gson;)V
return-object p1
.end method
.method private floatAdapter(Z)Lcom/google/gson/TypeAdapter;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(Z)",
"Lcom/google/gson/TypeAdapter<",
"Ljava/lang/Number;",
">;"
}
.end annotation
if-eqz p1, :cond_5
.line 335
sget-object p1, Lcom/google/gson/internal/bind/TypeAdapters;->FLOAT:Lcom/google/gson/TypeAdapter;
return-object p1
.line 337
:cond_5
new-instance p1, Lcom/google/gson/Gson$2;
invoke-direct {p1, p0}, Lcom/google/gson/Gson$2;-><init>(Lcom/google/gson/Gson;)V
return-object p1
.end method
.method private static longAdapter(Lcom/google/gson/LongSerializationPolicy;)Lcom/google/gson/TypeAdapter;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/gson/LongSerializationPolicy;",
")",
"Lcom/google/gson/TypeAdapter<",
"Ljava/lang/Number;",
">;"
}
.end annotation
.line 366
sget-object v0, Lcom/google/gson/LongSerializationPolicy;->DEFAULT:Lcom/google/gson/LongSerializationPolicy;
if-ne p0, v0, :cond_7
.line 367
sget-object p0, Lcom/google/gson/internal/bind/TypeAdapters;->LONG:Lcom/google/gson/TypeAdapter;
return-object p0
.line 369
:cond_7
new-instance p0, Lcom/google/gson/Gson$3;
invoke-direct {p0}, Lcom/google/gson/Gson$3;-><init>()V
return-object p0
.end method
# virtual methods
.method public excluder()Lcom/google/gson/internal/Excluder;
.registers 2
.line 294
iget-object v0, p0, Lcom/google/gson/Gson;->excluder:Lcom/google/gson/internal/Excluder;
return-object v0
.end method
.method public fieldNamingStrategy()Lcom/google/gson/FieldNamingStrategy;
.registers 2
.line 298
iget-object v0, p0, Lcom/google/gson/Gson;->fieldNamingStrategy:Lcom/google/gson/FieldNamingStrategy;
return-object v0
.end method
.method public fromJson(Lcom/google/gson/JsonElement;Ljava/lang/Class;)Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/google/gson/JsonElement;",
"Ljava/lang/Class<",
"TT;>;)TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonSyntaxException;
}
.end annotation
.line 967
invoke-virtual {p0, p1, p2}, Lcom/google/gson/Gson;->fromJson(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object p1
.line 968
invoke-static {p2}, Lcom/google/gson/internal/Primitives;->wrap(Ljava/lang/Class;)Ljava/lang/Class;
move-result-object p2
invoke-virtual {p2, p1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public fromJson(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;)Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/google/gson/JsonElement;",
"Ljava/lang/reflect/Type;",
")TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonSyntaxException;
}
.end annotation
if-nez p1, :cond_4
const/4 p1, 0x0
return-object p1
.line 994
:cond_4
new-instance v0, Lcom/google/gson/internal/bind/JsonTreeReader;
invoke-direct {v0, p1}, Lcom/google/gson/internal/bind/JsonTreeReader;-><init>(Lcom/google/gson/JsonElement;)V
invoke-virtual {p0, v0, p2}, Lcom/google/gson/Gson;->fromJson(Lcom/google/gson/stream/JsonReader;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public fromJson(Lcom/google/gson/stream/JsonReader;Ljava/lang/reflect/Type;)Ljava/lang/Object;
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/google/gson/stream/JsonReader;",
"Ljava/lang/reflect/Type;",
")TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonIOException;,
Lcom/google/gson/JsonSyntaxException;
}
.end annotation
.line 920
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->isLenient()Z
move-result v0
const/4 v1, 0x1
.line 921
invoke-virtual {p1, v1}, Lcom/google/gson/stream/JsonReader;->setLenient(Z)V
.line 923
:try_start_8
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
const/4 v1, 0x0
.line 925
invoke-static {p2}, Lcom/google/gson/reflect/TypeToken;->get(Ljava/lang/reflect/Type;)Lcom/google/gson/reflect/TypeToken;
move-result-object p2
.line 926
invoke-virtual {p0, p2}, Lcom/google/gson/Gson;->getAdapter(Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
move-result-object p2
.line 927
invoke-virtual {p2, p1}, Lcom/google/gson/TypeAdapter;->read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
move-result-object p2
:try_end_18
.catch Ljava/io/EOFException; {:try_start_8 .. :try_end_18} :catch_48
.catch Ljava/lang/IllegalStateException; {:try_start_8 .. :try_end_18} :catch_41
.catch Ljava/io/IOException; {:try_start_8 .. :try_end_18} :catch_3a
.catch Ljava/lang/AssertionError; {:try_start_8 .. :try_end_18} :catch_1e
.catchall {:try_start_8 .. :try_end_18} :catchall_1c
.line 946
invoke-virtual {p1, v0}, Lcom/google/gson/stream/JsonReader;->setLenient(Z)V
return-object p2
:catchall_1c
move-exception p2
goto :goto_56
:catch_1e
move-exception p2
.line 944
:try_start_1f
new-instance v1, Ljava/lang/AssertionError;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "AssertionError (GSON 2.8.5): "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/AssertionError;->getMessage()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2, p2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
:catch_3a
move-exception p2
.line 942
new-instance v1, Lcom/google/gson/JsonSyntaxException;
invoke-direct {v1, p2}, Lcom/google/gson/JsonSyntaxException;-><init>(Ljava/lang/Throwable;)V
throw v1
:catch_41
move-exception p2
.line 939
new-instance v1, Lcom/google/gson/JsonSyntaxException;
invoke-direct {v1, p2}, Lcom/google/gson/JsonSyntaxException;-><init>(Ljava/lang/Throwable;)V
throw v1
:try_end_48
.catchall {:try_start_1f .. :try_end_48} :catchall_1c
:catch_48
move-exception p2
if-eqz v1, :cond_50
const/4 p2, 0x0
.line 946
invoke-virtual {p1, v0}, Lcom/google/gson/stream/JsonReader;->setLenient(Z)V
return-object p2
.line 937
:cond_50
:try_start_50
new-instance v1, Lcom/google/gson/JsonSyntaxException;
invoke-direct {v1, p2}, Lcom/google/gson/JsonSyntaxException;-><init>(Ljava/lang/Throwable;)V
throw v1
:try_end_56
.catchall {:try_start_50 .. :try_end_56} :catchall_1c
.line 946
:goto_56
invoke-virtual {p1, v0}, Lcom/google/gson/stream/JsonReader;->setLenient(Z)V
throw p2
.end method
.method public fromJson(Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/io/Reader;",
"Ljava/lang/Class<",
"TT;>;)TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonSyntaxException;,
Lcom/google/gson/JsonIOException;
}
.end annotation
.line 864
invoke-virtual {p0, p1}, Lcom/google/gson/Gson;->newJsonReader(Ljava/io/Reader;)Lcom/google/gson/stream/JsonReader;
move-result-object p1
.line 865
invoke-virtual {p0, p1, p2}, Lcom/google/gson/Gson;->fromJson(Lcom/google/gson/stream/JsonReader;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object v0
.line 866
invoke-static {v0, p1}, Lcom/google/gson/Gson;->assertFullConsumption(Ljava/lang/Object;Lcom/google/gson/stream/JsonReader;)V
.line 867
invoke-static {p2}, Lcom/google/gson/internal/Primitives;->wrap(Ljava/lang/Class;)Ljava/lang/Class;
move-result-object p1
invoke-virtual {p1, v0}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public fromJson(Ljava/io/Reader;Ljava/lang/reflect/Type;)Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/io/Reader;",
"Ljava/lang/reflect/Type;",
")TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonIOException;,
Lcom/google/gson/JsonSyntaxException;
}
.end annotation
.line 891
invoke-virtual {p0, p1}, Lcom/google/gson/Gson;->newJsonReader(Ljava/io/Reader;)Lcom/google/gson/stream/JsonReader;
move-result-object p1
.line 892
invoke-virtual {p0, p1, p2}, Lcom/google/gson/Gson;->fromJson(Lcom/google/gson/stream/JsonReader;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object p2
.line 893
invoke-static {p2, p1}, Lcom/google/gson/Gson;->assertFullConsumption(Ljava/lang/Object;Lcom/google/gson/stream/JsonReader;)V
return-object p2
.end method
.method public fromJson(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/String;",
"Ljava/lang/Class<",
"TT;>;)TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonSyntaxException;
}
.end annotation
.line 813
invoke-virtual {p0, p1, p2}, Lcom/google/gson/Gson;->fromJson(Ljava/lang/String;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object p1
.line 814
invoke-static {p2}, Lcom/google/gson/internal/Primitives;->wrap(Ljava/lang/Class;)Ljava/lang/Class;
move-result-object p2
invoke-virtual {p2, p1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public fromJson(Ljava/lang/String;Ljava/lang/reflect/Type;)Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/String;",
"Ljava/lang/reflect/Type;",
")TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonSyntaxException;
}
.end annotation
if-nez p1, :cond_4
const/4 p1, 0x0
return-object p1
.line 840
:cond_4
new-instance v0, Ljava/io/StringReader;
invoke-direct {v0, p1}, Ljava/io/StringReader;-><init>(Ljava/lang/String;)V
.line 841
invoke-virtual {p0, v0, p2}, Lcom/google/gson/Gson;->fromJson(Ljava/io/Reader;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public getAdapter(Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/google/gson/reflect/TypeToken<",
"TT;>;)",
"Lcom/google/gson/TypeAdapter<",
"TT;>;"
}
.end annotation
.line 434
iget-object v0, p0, Lcom/google/gson/Gson;->typeTokenCache:Ljava/util/Map;
if-nez p1, :cond_7
sget-object v1, Lcom/google/gson/Gson;->NULL_KEY_SURROGATE:Lcom/google/gson/reflect/TypeToken;
goto :goto_8
:cond_7
move-object v1, p1
:goto_8
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/gson/TypeAdapter;
if-eqz v0, :cond_11
return-object v0
.line 439
:cond_11
iget-object v0, p0, Lcom/google/gson/Gson;->calls:Ljava/lang/ThreadLocal;
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map;
const/4 v1, 0x0
if-nez v0, :cond_27
.line 442
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
.line 443
iget-object v1, p0, Lcom/google/gson/Gson;->calls:Ljava/lang/ThreadLocal;
invoke-virtual {v1, v0}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
const/4 v1, 0x1
.line 448
:cond_27
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/gson/Gson$FutureTypeAdapter;
if-eqz v2, :cond_30
return-object v2
.line 454
:cond_30
:try_start_30
new-instance v2, Lcom/google/gson/Gson$FutureTypeAdapter;
invoke-direct {v2}, Lcom/google/gson/Gson$FutureTypeAdapter;-><init>()V
.line 455
invoke-interface {v0, p1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 457
iget-object v3, p0, Lcom/google/gson/Gson;->factories:Ljava/util/List;
invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v3
:cond_3e
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_63
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/google/gson/TypeAdapterFactory;
.line 458
invoke-interface {v4, p0, p1}, Lcom/google/gson/TypeAdapterFactory;->create(Lcom/google/gson/Gson;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
move-result-object v4
if-eqz v4, :cond_3e
.line 460
invoke-virtual {v2, v4}, Lcom/google/gson/Gson$FutureTypeAdapter;->setDelegate(Lcom/google/gson/TypeAdapter;)V
.line 461
iget-object v2, p0, Lcom/google/gson/Gson;->typeTokenCache:Ljava/util/Map;
invoke-interface {v2, p1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_58
.catchall {:try_start_30 .. :try_end_58} :catchall_7a
.line 467
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
if-eqz v1, :cond_62
.line 470
iget-object p1, p0, Lcom/google/gson/Gson;->calls:Ljava/lang/ThreadLocal;
invoke-virtual {p1}, Ljava/lang/ThreadLocal;->remove()V
:cond_62
return-object v4
.line 465
:cond_63
:try_start_63
new-instance v2, Ljava/lang/IllegalArgumentException;
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "GSON (2.8.5) cannot handle "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-direct {v2, v3}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v2
:try_end_7a
.catchall {:try_start_63 .. :try_end_7a} :catchall_7a
:catchall_7a
move-exception v2
.line 467
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
if-eqz v1, :cond_85
.line 470
iget-object p1, p0, Lcom/google/gson/Gson;->calls:Ljava/lang/ThreadLocal;
invoke-virtual {p1}, Ljava/lang/ThreadLocal;->remove()V
:cond_85
throw v2
.end method
.method public getAdapter(Ljava/lang/Class;)Lcom/google/gson/TypeAdapter;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Lcom/google/gson/TypeAdapter<",
"TT;>;"
}
.end annotation
.line 556
invoke-static {p1}, Lcom/google/gson/reflect/TypeToken;->get(Ljava/lang/Class;)Lcom/google/gson/reflect/TypeToken;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/gson/Gson;->getAdapter(Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
move-result-object p1
return-object p1
.end method
.method public getDelegateAdapter(Lcom/google/gson/TypeAdapterFactory;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/google/gson/TypeAdapterFactory;",
"Lcom/google/gson/reflect/TypeToken<",
"TT;>;)",
"Lcom/google/gson/TypeAdapter<",
"TT;>;"
}
.end annotation
.line 528
iget-object v0, p0, Lcom/google/gson/Gson;->factories:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_a
.line 529
iget-object p1, p0, Lcom/google/gson/Gson;->jsonAdapterFactory:Lcom/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory;
:cond_a
const/4 v0, 0x0
.line 533
iget-object v1, p0, Lcom/google/gson/Gson;->factories:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_11
:goto_11
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_2a
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/gson/TypeAdapterFactory;
if-nez v0, :cond_23
if-ne v2, p1, :cond_11
const/4 v0, 0x1
goto :goto_11
.line 541
:cond_23
invoke-interface {v2, p0, p2}, Lcom/google/gson/TypeAdapterFactory;->create(Lcom/google/gson/Gson;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
move-result-object v2
if-eqz v2, :cond_11
return-object v2
.line 546
:cond_2a
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "GSON cannot serialize "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public htmlSafe()Z
.registers 2
.line 306
iget-boolean v0, p0, Lcom/google/gson/Gson;->htmlSafe:Z
return v0
.end method
.method public newBuilder()Lcom/google/gson/GsonBuilder;
.registers 2
.line 290
new-instance v0, Lcom/google/gson/GsonBuilder;
invoke-direct {v0, p0}, Lcom/google/gson/GsonBuilder;-><init>(Lcom/google/gson/Gson;)V
return-object v0
.end method
.method public newJsonReader(Ljava/io/Reader;)Lcom/google/gson/stream/JsonReader;
.registers 3
.line 765
new-instance v0, Lcom/google/gson/stream/JsonReader;
invoke-direct {v0, p1}, Lcom/google/gson/stream/JsonReader;-><init>(Ljava/io/Reader;)V
.line 766
iget-boolean p1, p0, Lcom/google/gson/Gson;->lenient:Z
invoke-virtual {v0, p1}, Lcom/google/gson/stream/JsonReader;->setLenient(Z)V
return-object v0
.end method
.method public newJsonWriter(Ljava/io/Writer;)Lcom/google/gson/stream/JsonWriter;
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 750
iget-boolean v0, p0, Lcom/google/gson/Gson;->generateNonExecutableJson:Z
if-eqz v0, :cond_9
const-string v0, ")]}\'\n"
.line 751
invoke-virtual {p1, v0}, Ljava/io/Writer;->write(Ljava/lang/String;)V
.line 753
:cond_9
new-instance v0, Lcom/google/gson/stream/JsonWriter;
invoke-direct {v0, p1}, Lcom/google/gson/stream/JsonWriter;-><init>(Ljava/io/Writer;)V
.line 754
iget-boolean p1, p0, Lcom/google/gson/Gson;->prettyPrinting:Z
if-eqz p1, :cond_17
const-string p1, " "
.line 755
invoke-virtual {v0, p1}, Lcom/google/gson/stream/JsonWriter;->setIndent(Ljava/lang/String;)V
.line 757
:cond_17
iget-boolean p1, p0, Lcom/google/gson/Gson;->serializeNulls:Z
invoke-virtual {v0, p1}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
return-object v0
.end method
.method public serializeNulls()Z
.registers 2
.line 302
iget-boolean v0, p0, Lcom/google/gson/Gson;->serializeNulls:Z
return v0
.end method
.method public toJson(Lcom/google/gson/JsonElement;)Ljava/lang/String;
.registers 3
.line 724
new-instance v0, Ljava/io/StringWriter;
invoke-direct {v0}, Ljava/io/StringWriter;-><init>()V
.line 725
invoke-virtual {p0, p1, v0}, Lcom/google/gson/Gson;->toJson(Lcom/google/gson/JsonElement;Ljava/lang/Appendable;)V
.line 726
invoke-virtual {v0}, Ljava/io/StringWriter;->toString()Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public toJson(Ljava/lang/Object;)Ljava/lang/String;
.registers 3
if-nez p1, :cond_9
.line 616
sget-object p1, Lcom/google/gson/JsonNull;->INSTANCE:Lcom/google/gson/JsonNull;
invoke-virtual {p0, p1}, Lcom/google/gson/Gson;->toJson(Lcom/google/gson/JsonElement;)Ljava/lang/String;
move-result-object p1
return-object p1
.line 618
:cond_9
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {p0, p1, v0}, Lcom/google/gson/Gson;->toJson(Ljava/lang/Object;Ljava/lang/reflect/Type;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public toJson(Ljava/lang/Object;Ljava/lang/reflect/Type;)Ljava/lang/String;
.registers 4
.line 637
new-instance v0, Ljava/io/StringWriter;
invoke-direct {v0}, Ljava/io/StringWriter;-><init>()V
.line 638
invoke-virtual {p0, p1, p2, v0}, Lcom/google/gson/Gson;->toJson(Ljava/lang/Object;Ljava/lang/reflect/Type;Ljava/lang/Appendable;)V
.line 639
invoke-virtual {v0}, Ljava/io/StringWriter;->toString()Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public toJson(Lcom/google/gson/JsonElement;Lcom/google/gson/stream/JsonWriter;)V
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonIOException;
}
.end annotation
.line 775
invoke-virtual {p2}, Lcom/google/gson/stream/JsonWriter;->isLenient()Z
move-result v0
const/4 v1, 0x1
.line 776
invoke-virtual {p2, v1}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
.line 777
invoke-virtual {p2}, Lcom/google/gson/stream/JsonWriter;->isHtmlSafe()Z
move-result v1
.line 778
iget-boolean v2, p0, Lcom/google/gson/Gson;->htmlSafe:Z
invoke-virtual {p2, v2}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
.line 779
invoke-virtual {p2}, Lcom/google/gson/stream/JsonWriter;->getSerializeNulls()Z
move-result v2
.line 780
iget-boolean v3, p0, Lcom/google/gson/Gson;->serializeNulls:Z
invoke-virtual {p2, v3}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
.line 782
:try_start_1a
invoke-static {p1, p2}, Lcom/google/gson/internal/Streams;->write(Lcom/google/gson/JsonElement;Lcom/google/gson/stream/JsonWriter;)V
:try_end_1d
.catch Ljava/io/IOException; {:try_start_1a .. :try_end_1d} :catch_45
.catch Ljava/lang/AssertionError; {:try_start_1a .. :try_end_1d} :catch_29
.catchall {:try_start_1a .. :try_end_1d} :catchall_27
.line 788
invoke-virtual {p2, v0}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
.line 789
invoke-virtual {p2, v1}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
.line 790
invoke-virtual {p2, v2}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
return-void
:catchall_27
move-exception p1
goto :goto_4c
:catch_29
move-exception p1
.line 786
:try_start_2a
new-instance v3, Ljava/lang/AssertionError;
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "AssertionError (GSON 2.8.5): "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/AssertionError;->getMessage()Ljava/lang/String;
move-result-object v5
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-direct {v3, v4, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v3
:catch_45
move-exception p1
.line 784
new-instance v3, Lcom/google/gson/JsonIOException;
invoke-direct {v3, p1}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/Throwable;)V
throw v3
:try_end_4c
.catchall {:try_start_2a .. :try_end_4c} :catchall_27
.line 788
:goto_4c
invoke-virtual {p2, v0}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
.line 789
invoke-virtual {p2, v1}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
.line 790
invoke-virtual {p2, v2}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
throw p1
.end method
.method public toJson(Lcom/google/gson/JsonElement;Ljava/lang/Appendable;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonIOException;
}
.end annotation
.line 739
:try_start_0
invoke-static {p2}, Lcom/google/gson/internal/Streams;->writerForAppendable(Ljava/lang/Appendable;)Ljava/io/Writer;
move-result-object p2
invoke-virtual {p0, p2}, Lcom/google/gson/Gson;->newJsonWriter(Ljava/io/Writer;)Lcom/google/gson/stream/JsonWriter;
move-result-object p2
.line 740
invoke-virtual {p0, p1, p2}, Lcom/google/gson/Gson;->toJson(Lcom/google/gson/JsonElement;Lcom/google/gson/stream/JsonWriter;)V
:try_end_b
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_b} :catch_c
return-void
:catch_c
move-exception p1
.line 742
new-instance p2, Lcom/google/gson/JsonIOException;
invoke-direct {p2, p1}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/Throwable;)V
throw p2
.end method
.method public toJson(Ljava/lang/Object;Ljava/lang/Appendable;)V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonIOException;
}
.end annotation
if-eqz p1, :cond_a
.line 658
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {p0, p1, v0, p2}, Lcom/google/gson/Gson;->toJson(Ljava/lang/Object;Ljava/lang/reflect/Type;Ljava/lang/Appendable;)V
goto :goto_f
.line 660
:cond_a
sget-object p1, Lcom/google/gson/JsonNull;->INSTANCE:Lcom/google/gson/JsonNull;
invoke-virtual {p0, p1, p2}, Lcom/google/gson/Gson;->toJson(Lcom/google/gson/JsonElement;Ljava/lang/Appendable;)V
:goto_f
return-void
.end method
.method public toJson(Ljava/lang/Object;Ljava/lang/reflect/Type;Lcom/google/gson/stream/JsonWriter;)V
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonIOException;
}
.end annotation
.line 696
invoke-static {p2}, Lcom/google/gson/reflect/TypeToken;->get(Ljava/lang/reflect/Type;)Lcom/google/gson/reflect/TypeToken;
move-result-object p2
invoke-virtual {p0, p2}, Lcom/google/gson/Gson;->getAdapter(Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
move-result-object p2
.line 697
invoke-virtual {p3}, Lcom/google/gson/stream/JsonWriter;->isLenient()Z
move-result v0
const/4 v1, 0x1
.line 698
invoke-virtual {p3, v1}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
.line 699
invoke-virtual {p3}, Lcom/google/gson/stream/JsonWriter;->isHtmlSafe()Z
move-result v1
.line 700
iget-boolean v2, p0, Lcom/google/gson/Gson;->htmlSafe:Z
invoke-virtual {p3, v2}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
.line 701
invoke-virtual {p3}, Lcom/google/gson/stream/JsonWriter;->getSerializeNulls()Z
move-result v2
.line 702
iget-boolean v3, p0, Lcom/google/gson/Gson;->serializeNulls:Z
invoke-virtual {p3, v3}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
.line 704
:try_start_22
invoke-virtual {p2, p3, p1}, Lcom/google/gson/TypeAdapter;->write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
:try_end_25
.catch Ljava/io/IOException; {:try_start_22 .. :try_end_25} :catch_4d
.catch Ljava/lang/AssertionError; {:try_start_22 .. :try_end_25} :catch_31
.catchall {:try_start_22 .. :try_end_25} :catchall_2f
.line 710
invoke-virtual {p3, v0}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
.line 711
invoke-virtual {p3, v1}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
.line 712
invoke-virtual {p3, v2}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
return-void
:catchall_2f
move-exception p1
goto :goto_54
:catch_31
move-exception p1
.line 708
:try_start_32
new-instance p2, Ljava/lang/AssertionError;
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "AssertionError (GSON 2.8.5): "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/AssertionError;->getMessage()Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-direct {p2, v3, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p2
:catch_4d
move-exception p1
.line 706
new-instance p2, Lcom/google/gson/JsonIOException;
invoke-direct {p2, p1}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/Throwable;)V
throw p2
:try_end_54
.catchall {:try_start_32 .. :try_end_54} :catchall_2f
.line 710
:goto_54
invoke-virtual {p3, v0}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
.line 711
invoke-virtual {p3, v1}, Lcom/google/gson/stream/JsonWriter;->setHtmlSafe(Z)V
.line 712
invoke-virtual {p3, v2}, Lcom/google/gson/stream/JsonWriter;->setSerializeNulls(Z)V
throw p1
.end method
.method public toJson(Ljava/lang/Object;Ljava/lang/reflect/Type;Ljava/lang/Appendable;)V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonIOException;
}
.end annotation
.line 682
:try_start_0
invoke-static {p3}, Lcom/google/gson/internal/Streams;->writerForAppendable(Ljava/lang/Appendable;)Ljava/io/Writer;
move-result-object p3
invoke-virtual {p0, p3}, Lcom/google/gson/Gson;->newJsonWriter(Ljava/io/Writer;)Lcom/google/gson/stream/JsonWriter;
move-result-object p3
.line 683
invoke-virtual {p0, p1, p2, p3}, Lcom/google/gson/Gson;->toJson(Ljava/lang/Object;Ljava/lang/reflect/Type;Lcom/google/gson/stream/JsonWriter;)V
:try_end_b
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_b} :catch_c
return-void
:catch_c
move-exception p1
.line 685
new-instance p2, Lcom/google/gson/JsonIOException;
invoke-direct {p2, p1}, Lcom/google/gson/JsonIOException;-><init>(Ljava/lang/Throwable;)V
throw p2
.end method
.method public toJsonTree(Ljava/lang/Object;)Lcom/google/gson/JsonElement;
.registers 3
if-nez p1, :cond_5
.line 574
sget-object p1, Lcom/google/gson/JsonNull;->INSTANCE:Lcom/google/gson/JsonNull;
return-object p1
.line 576
:cond_5
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {p0, p1, v0}, Lcom/google/gson/Gson;->toJsonTree(Ljava/lang/Object;Ljava/lang/reflect/Type;)Lcom/google/gson/JsonElement;
move-result-object p1
return-object p1
.end method
.method public toJsonTree(Ljava/lang/Object;Ljava/lang/reflect/Type;)Lcom/google/gson/JsonElement;
.registers 4
.line 596
new-instance v0, Lcom/google/gson/internal/bind/JsonTreeWriter;
invoke-direct {v0}, Lcom/google/gson/internal/bind/JsonTreeWriter;-><init>()V
.line 597
invoke-virtual {p0, p1, p2, v0}, Lcom/google/gson/Gson;->toJson(Ljava/lang/Object;Ljava/lang/reflect/Type;Lcom/google/gson/stream/JsonWriter;)V
.line 598
invoke-virtual {v0}, Lcom/google/gson/internal/bind/JsonTreeWriter;->get()Lcom/google/gson/JsonElement;
move-result-object p1
return-object p1
.end method
.method public toString()Ljava/lang/String;
.registers 3
.line 1024
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "{serializeNulls:"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-boolean v1, p0, Lcom/google/gson/Gson;->serializeNulls:Z
.line 1025
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
const-string v1, ",factories:"
.line 1026
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/google/gson/Gson;->factories:Ljava/util/List;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ",instanceCreators:"
.line 1027
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/google/gson/Gson;->constructorConstructor:Lcom/google/gson/internal/ConstructorConstructor;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, "}"
.line 1028
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 1029
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method