mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
1508 lines
43 KiB
Smali
1508 lines
43 KiB
Smali
.class public Lcom/alibaba/fastjson/parser/ParserConfig;
|
|
.super Ljava/lang/Object;
|
|
.source "ParserConfig.java"
|
|
|
|
|
|
# static fields
|
|
.field private static denyList:[J
|
|
|
|
.field public static global:Lcom/alibaba/fastjson/parser/ParserConfig;
|
|
|
|
|
|
# instance fields
|
|
.field public autoTypeSupport:Z
|
|
|
|
.field public defaultClassLoader:Ljava/lang/ClassLoader;
|
|
|
|
.field private final deserializers:Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/alibaba/fastjson/util/IdentityHashMap<",
|
|
"Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public propertyNamingStrategy:Lcom/alibaba/fastjson/PropertyNamingStrategy;
|
|
|
|
.field public final symbolTable:Lcom/alibaba/fastjson/parser/SymbolTable;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const/16 v0, 0xa
|
|
|
|
new-array v0, v0, [J
|
|
|
|
fill-array-data v0, :array_0
|
|
|
|
sput-object v0, Lcom/alibaba/fastjson/parser/ParserConfig;->denyList:[J
|
|
|
|
.line 75
|
|
new-instance v0, Lcom/alibaba/fastjson/parser/ParserConfig;
|
|
|
|
invoke-direct {v0}, Lcom/alibaba/fastjson/parser/ParserConfig;-><init>()V
|
|
|
|
sput-object v0, Lcom/alibaba/fastjson/parser/ParserConfig;->global:Lcom/alibaba/fastjson/parser/ParserConfig;
|
|
|
|
return-void
|
|
|
|
nop
|
|
|
|
:array_0
|
|
.array-data 8
|
|
-0x697c01b42c8a00caL
|
|
-0x38a661401c18dbfaL # -5.3210898116926836E35
|
|
-0x20d2200cef324c8bL # -3.0559968239287952E150
|
|
-0x96230e6f27cc8d0L
|
|
-0x388c51df37d896fL
|
|
0x14db2e6fead04af0L # 3.307156557815155E-208
|
|
0x398f942e01920cf0L # 1.9461954727645544E-31
|
|
0x4a3797b30328202cL # 3.448058737338662E49
|
|
0x4fd10ddc6d13821fL # 3.085523505057036E76
|
|
0x6ae528ae28dfe381L # 8.491419128219555E206
|
|
.end array-data
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 3
|
|
|
|
.line 82
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 76
|
|
new-instance v0, Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
|
|
const/16 v1, 0x400
|
|
|
|
invoke-direct {v0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lcom/alibaba/fastjson/parser/ParserConfig;->deserializers:Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
|
|
.line 77
|
|
new-instance v1, Lcom/alibaba/fastjson/parser/SymbolTable;
|
|
|
|
const/16 v2, 0x4000
|
|
|
|
invoke-direct {v1, v2}, Lcom/alibaba/fastjson/parser/SymbolTable;-><init>(I)V
|
|
|
|
iput-object v1, p0, Lcom/alibaba/fastjson/parser/ParserConfig;->symbolTable:Lcom/alibaba/fastjson/parser/SymbolTable;
|
|
|
|
.line 83
|
|
const-class p0, Ljava/text/SimpleDateFormat;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 84
|
|
const-class p0, Ljava/util/Date;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/DateCodec;->instance:Lcom/alibaba/fastjson/serializer/DateCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 85
|
|
const-class p0, Ljava/util/Calendar;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/DateCodec;->instance:Lcom/alibaba/fastjson/serializer/DateCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 87
|
|
const-class p0, Ljava/util/Map;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/parser/MapDeserializer;->instance:Lcom/alibaba/fastjson/parser/MapDeserializer;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 88
|
|
const-class p0, Ljava/util/HashMap;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/parser/MapDeserializer;->instance:Lcom/alibaba/fastjson/parser/MapDeserializer;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 89
|
|
const-class p0, Ljava/util/LinkedHashMap;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/parser/MapDeserializer;->instance:Lcom/alibaba/fastjson/parser/MapDeserializer;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 90
|
|
const-class p0, Ljava/util/TreeMap;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/parser/MapDeserializer;->instance:Lcom/alibaba/fastjson/parser/MapDeserializer;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 91
|
|
const-class p0, Ljava/util/concurrent/ConcurrentMap;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/parser/MapDeserializer;->instance:Lcom/alibaba/fastjson/parser/MapDeserializer;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 92
|
|
const-class p0, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/parser/MapDeserializer;->instance:Lcom/alibaba/fastjson/parser/MapDeserializer;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 94
|
|
const-class p0, Ljava/util/Collection;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/CollectionCodec;->instance:Lcom/alibaba/fastjson/serializer/CollectionCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 95
|
|
const-class p0, Ljava/util/List;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/CollectionCodec;->instance:Lcom/alibaba/fastjson/serializer/CollectionCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 96
|
|
const-class p0, Ljava/util/ArrayList;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/CollectionCodec;->instance:Lcom/alibaba/fastjson/serializer/CollectionCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 98
|
|
const-class p0, Ljava/lang/Object;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;->instance:Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 99
|
|
const-class p0, Ljava/lang/String;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/StringCodec;->instance:Lcom/alibaba/fastjson/serializer/StringCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 100
|
|
sget-object p0, Ljava/lang/Character;->TYPE:Ljava/lang/Class;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 101
|
|
const-class p0, Ljava/lang/Character;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 102
|
|
sget-object p0, Ljava/lang/Byte;->TYPE:Ljava/lang/Class;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/NumberCodec;->instance:Lcom/alibaba/fastjson/serializer/NumberCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 103
|
|
const-class p0, Ljava/lang/Byte;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/NumberCodec;->instance:Lcom/alibaba/fastjson/serializer/NumberCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 104
|
|
sget-object p0, Ljava/lang/Short;->TYPE:Ljava/lang/Class;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/NumberCodec;->instance:Lcom/alibaba/fastjson/serializer/NumberCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 105
|
|
const-class p0, Ljava/lang/Short;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/NumberCodec;->instance:Lcom/alibaba/fastjson/serializer/NumberCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 106
|
|
sget-object p0, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/IntegerCodec;->instance:Lcom/alibaba/fastjson/serializer/IntegerCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 107
|
|
const-class p0, Ljava/lang/Integer;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/IntegerCodec;->instance:Lcom/alibaba/fastjson/serializer/IntegerCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 108
|
|
sget-object p0, Ljava/lang/Long;->TYPE:Ljava/lang/Class;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/IntegerCodec;->instance:Lcom/alibaba/fastjson/serializer/IntegerCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 109
|
|
const-class p0, Ljava/lang/Long;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/IntegerCodec;->instance:Lcom/alibaba/fastjson/serializer/IntegerCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 110
|
|
const-class p0, Ljava/math/BigInteger;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/BigDecimalCodec;->instance:Lcom/alibaba/fastjson/serializer/BigDecimalCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 111
|
|
const-class p0, Ljava/math/BigDecimal;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/BigDecimalCodec;->instance:Lcom/alibaba/fastjson/serializer/BigDecimalCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 112
|
|
sget-object p0, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/NumberCodec;->instance:Lcom/alibaba/fastjson/serializer/NumberCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 113
|
|
const-class p0, Ljava/lang/Float;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/NumberCodec;->instance:Lcom/alibaba/fastjson/serializer/NumberCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 114
|
|
sget-object p0, Ljava/lang/Double;->TYPE:Ljava/lang/Class;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/NumberCodec;->instance:Lcom/alibaba/fastjson/serializer/NumberCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 115
|
|
const-class p0, Ljava/lang/Double;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/NumberCodec;->instance:Lcom/alibaba/fastjson/serializer/NumberCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 116
|
|
sget-object p0, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/BooleanCodec;->instance:Lcom/alibaba/fastjson/serializer/BooleanCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 117
|
|
const-class p0, Ljava/lang/Boolean;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/BooleanCodec;->instance:Lcom/alibaba/fastjson/serializer/BooleanCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 118
|
|
const-class p0, Ljava/lang/Class;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
const-class p0, [C
|
|
|
|
.line 119
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/ArrayCodec;->instance:Lcom/alibaba/fastjson/serializer/ArrayCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 120
|
|
const-class p0, [Ljava/lang/Object;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/ArrayCodec;->instance:Lcom/alibaba/fastjson/serializer/ArrayCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 122
|
|
const-class p0, Ljava/util/UUID;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 123
|
|
const-class p0, Ljava/util/TimeZone;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 124
|
|
const-class p0, Ljava/util/Locale;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 125
|
|
const-class p0, Ljava/util/Currency;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 126
|
|
const-class p0, Ljava/net/URI;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 127
|
|
const-class p0, Ljava/net/URL;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 128
|
|
const-class p0, Ljava/util/regex/Pattern;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 129
|
|
const-class p0, Ljava/nio/charset/Charset;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 130
|
|
const-class p0, Ljava/lang/Number;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/NumberCodec;->instance:Lcom/alibaba/fastjson/serializer/NumberCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 131
|
|
const-class p0, Ljava/lang/StackTraceElement;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 133
|
|
const-class p0, Ljava/io/Serializable;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;->instance:Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 134
|
|
const-class p0, Ljava/lang/Cloneable;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;->instance:Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 135
|
|
const-class p0, Ljava/lang/Comparable;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;->instance:Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
.line 136
|
|
const-class p0, Ljava/io/Closeable;
|
|
|
|
sget-object v1, Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;->instance:Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getGlobalInstance()Lcom/alibaba/fastjson/parser/ParserConfig;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/alibaba/fastjson/parser/ParserConfig;->global:Lcom/alibaba/fastjson/parser/ParserConfig;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static isPrimitive(Ljava/lang/Class;)Z
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Class<",
|
|
"*>;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 288
|
|
invoke-virtual {p0}, Ljava/lang/Class;->isPrimitive()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-class v0, Ljava/lang/Boolean;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/lang/Character;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/lang/Byte;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/lang/Short;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/lang/Integer;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/lang/Long;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/lang/Float;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/lang/Double;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/math/BigInteger;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/math/BigDecimal;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/lang/String;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/util/Date;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/sql/Date;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/sql/Time;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/sql/Timestamp;
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p0, 0x1
|
|
|
|
:goto_1
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public checkAutoType(Ljava/lang/String;Ljava/lang/Class;I)Ljava/lang/Class;
|
|
.locals 16
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Class<",
|
|
"*>;I)",
|
|
"Ljava/lang/Class<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move-object/from16 v2, p2
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
.line 312
|
|
:cond_0
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v3
|
|
|
|
const/16 v4, 0x80
|
|
|
|
const-string v5, "autoType is not support. "
|
|
|
|
if-ge v3, v4, :cond_d
|
|
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
if-lt v3, v4, :cond_d
|
|
|
|
const/4 v3, 0x0
|
|
|
|
.line 319
|
|
invoke-virtual {v1, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v6
|
|
|
|
int-to-long v6, v6
|
|
|
|
const-wide v8, -0x340d631b7bdddcdbL # -7.302176725335867E57
|
|
|
|
xor-long/2addr v6, v8
|
|
|
|
const-wide v10, 0x100000001b3L
|
|
|
|
mul-long/2addr v6, v10
|
|
|
|
const-wide v12, -0x509be9b379fdb0e6L # -2.1176223865607047E-80
|
|
|
|
cmp-long v12, v6, v12
|
|
|
|
if-eqz v12, :cond_c
|
|
|
|
.line 324
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v12
|
|
|
|
const/4 v13, 0x1
|
|
|
|
sub-int/2addr v12, v13
|
|
|
|
invoke-virtual {v1, v12}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v12
|
|
|
|
int-to-long v14, v12
|
|
|
|
xor-long/2addr v6, v14
|
|
|
|
mul-long/2addr v6, v10
|
|
|
|
const-wide v14, 0x9198507b5af98f0L
|
|
|
|
cmp-long v6, v6, v14
|
|
|
|
if-eqz v6, :cond_b
|
|
|
|
.line 328
|
|
invoke-virtual {v1, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v6
|
|
|
|
int-to-long v6, v6
|
|
|
|
xor-long/2addr v6, v8
|
|
|
|
mul-long/2addr v6, v10
|
|
|
|
.line 330
|
|
invoke-virtual {v1, v13}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v8
|
|
|
|
int-to-long v8, v8
|
|
|
|
xor-long/2addr v6, v8
|
|
|
|
mul-long/2addr v6, v10
|
|
|
|
const/4 v8, 0x2
|
|
|
|
.line 332
|
|
invoke-virtual {v1, v8}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v8
|
|
|
|
int-to-long v8, v8
|
|
|
|
xor-long/2addr v6, v8
|
|
|
|
mul-long/2addr v6, v10
|
|
|
|
.line 336
|
|
:goto_0
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v8
|
|
|
|
if-ge v4, v8, :cond_3
|
|
|
|
.line 337
|
|
invoke-virtual {v1, v4}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v8
|
|
|
|
int-to-long v8, v8
|
|
|
|
xor-long/2addr v6, v8
|
|
|
|
mul-long/2addr v6, v10
|
|
|
|
sget-object v8, Lcom/alibaba/fastjson/parser/ParserConfig;->denyList:[J
|
|
|
|
.line 339
|
|
invoke-static {v8, v6, v7}, Ljava/util/Arrays;->binarySearch([JJ)I
|
|
|
|
move-result v8
|
|
|
|
if-ltz v8, :cond_2
|
|
|
|
invoke-static/range {p1 .. p1}, Lcom/alibaba/fastjson/util/TypeUtils;->getClassFromMapping(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
if-eqz v8, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
.line 340
|
|
:cond_1
|
|
new-instance v0, Lcom/alibaba/fastjson/JSONException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 344
|
|
:cond_3
|
|
invoke-static/range {p1 .. p1}, Lcom/alibaba/fastjson/util/TypeUtils;->getClassFromMapping(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
return-object v4
|
|
|
|
:cond_4
|
|
iget-object v4, v0, Lcom/alibaba/fastjson/parser/ParserConfig;->deserializers:Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
|
|
.line 349
|
|
invoke-virtual {v4, v1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->findClass(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
return-object v4
|
|
|
|
:cond_5
|
|
iget-object v4, v0, Lcom/alibaba/fastjson/parser/ParserConfig;->defaultClassLoader:Ljava/lang/ClassLoader;
|
|
|
|
.line 354
|
|
invoke-static {v1, v4, v3}, Lcom/alibaba/fastjson/util/TypeUtils;->loadClass(Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
.line 356
|
|
const-class v4, Ljava/util/HashMap;
|
|
|
|
if-eq v3, v4, :cond_7
|
|
|
|
.line 360
|
|
invoke-virtual {v2, v3}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 361
|
|
invoke-static {v1, v3}, Lcom/alibaba/fastjson/util/TypeUtils;->addMapping(Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
return-object v3
|
|
|
|
.line 364
|
|
:cond_6
|
|
new-instance v0, Lcom/alibaba/fastjson/JSONException;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
const-string v4, "type not match. "
|
|
|
|
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v3, " -> "
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 368
|
|
:cond_7
|
|
const-class v2, Lcom/alibaba/fastjson/annotation/JSONType;
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/Class;->isAnnotationPresent(Ljava/lang/Class;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
.line 369
|
|
invoke-static {v1, v3}, Lcom/alibaba/fastjson/util/TypeUtils;->addMapping(Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
return-object v3
|
|
|
|
.line 373
|
|
:cond_8
|
|
sget-object v2, Lcom/alibaba/fastjson/parser/Feature;->SupportAutoType:Lcom/alibaba/fastjson/parser/Feature;
|
|
|
|
iget v2, v2, Lcom/alibaba/fastjson/parser/Feature;->mask:I
|
|
|
|
and-int v4, p3, v2
|
|
|
|
if-nez v4, :cond_a
|
|
|
|
.line 374
|
|
sget v4, Lcom/alibaba/fastjson/JSON;->DEFAULT_PARSER_FEATURE:I
|
|
|
|
and-int/2addr v2, v4
|
|
|
|
if-nez v2, :cond_a
|
|
|
|
iget-boolean v0, v0, Lcom/alibaba/fastjson/parser/ParserConfig;->autoTypeSupport:Z
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
goto :goto_2
|
|
|
|
.line 377
|
|
:cond_9
|
|
new-instance v0, Lcom/alibaba/fastjson/JSONException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "autoType is not support : "
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 380
|
|
:cond_a
|
|
:goto_2
|
|
invoke-static {v1, v3}, Lcom/alibaba/fastjson/util/TypeUtils;->addMapping(Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
return-object v3
|
|
|
|
.line 325
|
|
:cond_b
|
|
new-instance v0, Lcom/alibaba/fastjson/JSONException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 321
|
|
:cond_c
|
|
new-instance v0, Lcom/alibaba/fastjson/JSONException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 313
|
|
:cond_d
|
|
new-instance v0, Lcom/alibaba/fastjson/JSONException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public containsKey(Ljava/lang/Class;)Z
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/alibaba/fastjson/parser/ParserConfig;->deserializers:Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
|
|
.line 266
|
|
invoke-virtual {p0, p1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->get(Ljava/lang/reflect/Type;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public createFieldDeserializer(Lcom/alibaba/fastjson/parser/ParserConfig;Ljava/lang/Class;Lcom/alibaba/fastjson/util/FieldInfo;)Lcom/alibaba/fastjson/parser/deserializer/FieldDeserializer;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/alibaba/fastjson/parser/ParserConfig;",
|
|
"Ljava/lang/Class<",
|
|
"*>;",
|
|
"Lcom/alibaba/fastjson/util/FieldInfo;",
|
|
")",
|
|
"Lcom/alibaba/fastjson/parser/deserializer/FieldDeserializer;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 270
|
|
iget-object p0, p3, Lcom/alibaba/fastjson/util/FieldInfo;->fieldClass:Ljava/lang/Class;
|
|
|
|
.line 272
|
|
const-class v0, Ljava/util/List;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const-class v0, Ljava/util/ArrayList;
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
.line 274
|
|
invoke-virtual {p0}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 275
|
|
invoke-virtual {p0}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Class;->isPrimitive()Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 280
|
|
:cond_0
|
|
new-instance p0, Lcom/alibaba/fastjson/parser/DefaultFieldDeserializer;
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/alibaba/fastjson/parser/DefaultFieldDeserializer;-><init>(Lcom/alibaba/fastjson/parser/ParserConfig;Ljava/lang/Class;Lcom/alibaba/fastjson/util/FieldInfo;)V
|
|
|
|
return-object p0
|
|
|
|
.line 277
|
|
:cond_1
|
|
:goto_0
|
|
new-instance p0, Lcom/alibaba/fastjson/parser/ListTypeFieldDeserializer;
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/alibaba/fastjson/parser/ListTypeFieldDeserializer;-><init>(Lcom/alibaba/fastjson/parser/ParserConfig;Ljava/lang/Class;Lcom/alibaba/fastjson/util/FieldInfo;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getDeserializer(Ljava/lang/Class;Ljava/lang/reflect/Type;)Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Class<",
|
|
"*>;",
|
|
"Ljava/lang/reflect/Type;",
|
|
")",
|
|
"Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/alibaba/fastjson/parser/ParserConfig;->deserializers:Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
|
|
.line 172
|
|
invoke-virtual {v0, p2}, Lcom/alibaba/fastjson/util/IdentityHashMap;->get(Ljava/lang/reflect/Type;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
if-nez p2, :cond_1
|
|
|
|
move-object p2, p1
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/alibaba/fastjson/parser/ParserConfig;->deserializers:Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
|
|
.line 181
|
|
invoke-virtual {v0, p2}, Lcom/alibaba/fastjson/util/IdentityHashMap;->get(Ljava/lang/reflect/Type;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
return-object v0
|
|
|
|
.line 186
|
|
:cond_2
|
|
invoke-static {p1}, Lcom/alibaba/fastjson/parser/ParserConfig;->isPrimitive(Ljava/lang/Class;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
.line 187
|
|
const-class v1, Lcom/alibaba/fastjson/annotation/JSONType;
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/Class;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/alibaba/fastjson/annotation/JSONType;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 189
|
|
invoke-interface {v1}, Lcom/alibaba/fastjson/annotation/JSONType;->mappingTo()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
.line 190
|
|
const-class v2, Ljava/lang/Void;
|
|
|
|
if-eq v1, v2, :cond_3
|
|
|
|
.line 191
|
|
invoke-virtual {p0, v1, v1}, Lcom/alibaba/fastjson/parser/ParserConfig;->getDeserializer(Ljava/lang/Class;Ljava/lang/reflect/Type;)Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 196
|
|
:cond_3
|
|
instance-of v1, p2, Ljava/lang/reflect/WildcardType;
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
instance-of v1, p2, Ljava/lang/reflect/TypeVariable;
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
instance-of v1, p2, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
:cond_4
|
|
iget-object v0, p0, Lcom/alibaba/fastjson/parser/ParserConfig;->deserializers:Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
|
|
.line 197
|
|
invoke-virtual {v0, p1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->get(Ljava/lang/reflect/Type;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
:cond_5
|
|
if-eqz v0, :cond_6
|
|
|
|
return-object v0
|
|
|
|
:cond_6
|
|
iget-object v0, p0, Lcom/alibaba/fastjson/parser/ParserConfig;->deserializers:Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
|
|
.line 204
|
|
invoke-virtual {v0, p2}, Lcom/alibaba/fastjson/util/IdentityHashMap;->get(Ljava/lang/reflect/Type;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
return-object v0
|
|
|
|
.line 209
|
|
:cond_7
|
|
invoke-virtual {p1}, Ljava/lang/Class;->isEnum()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
.line 210
|
|
new-instance v0, Lcom/alibaba/fastjson/parser/EnumDeserializer;
|
|
|
|
invoke-direct {v0, p1}, Lcom/alibaba/fastjson/parser/EnumDeserializer;-><init>(Ljava/lang/Class;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 211
|
|
:cond_8
|
|
invoke-virtual {p1}, Ljava/lang/Class;->isArray()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
.line 212
|
|
sget-object v0, Lcom/alibaba/fastjson/serializer/ArrayCodec;->instance:Lcom/alibaba/fastjson/serializer/ArrayCodec;
|
|
|
|
goto :goto_1
|
|
|
|
.line 213
|
|
:cond_9
|
|
const-class v0, Ljava/util/Set;
|
|
|
|
if-eq p1, v0, :cond_f
|
|
|
|
const-class v0, Ljava/util/HashSet;
|
|
|
|
if-eq p1, v0, :cond_f
|
|
|
|
const-class v0, Ljava/util/Collection;
|
|
|
|
if-eq p1, v0, :cond_f
|
|
|
|
const-class v0, Ljava/util/List;
|
|
|
|
if-eq p1, v0, :cond_f
|
|
|
|
const-class v0, Ljava/util/ArrayList;
|
|
|
|
if-ne p1, v0, :cond_a
|
|
|
|
goto :goto_0
|
|
|
|
.line 216
|
|
:cond_a
|
|
const-class v0, Ljava/util/Collection;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
.line 217
|
|
sget-object v0, Lcom/alibaba/fastjson/serializer/CollectionCodec;->instance:Lcom/alibaba/fastjson/serializer/CollectionCodec;
|
|
|
|
goto :goto_1
|
|
|
|
.line 218
|
|
:cond_b
|
|
const-class v0, Ljava/util/Map;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
.line 219
|
|
sget-object v0, Lcom/alibaba/fastjson/parser/MapDeserializer;->instance:Lcom/alibaba/fastjson/parser/MapDeserializer;
|
|
|
|
goto :goto_1
|
|
|
|
.line 220
|
|
:cond_c
|
|
const-class v0, Ljava/lang/Throwable;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_d
|
|
|
|
.line 221
|
|
new-instance v0, Lcom/alibaba/fastjson/parser/ThrowableDeserializer;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/alibaba/fastjson/parser/ThrowableDeserializer;-><init>(Lcom/alibaba/fastjson/parser/ParserConfig;Ljava/lang/Class;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 223
|
|
:cond_d
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "android.net.Uri"
|
|
|
|
.line 225
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_e
|
|
|
|
.line 226
|
|
sget-object v0, Lcom/alibaba/fastjson/serializer/MiscCodec;->instance:Lcom/alibaba/fastjson/serializer/MiscCodec;
|
|
|
|
goto :goto_1
|
|
|
|
.line 228
|
|
:cond_e
|
|
new-instance v0, Lcom/alibaba/fastjson/parser/JavaBeanDeserializer;
|
|
|
|
invoke-direct {v0, p0, p1, p2}, Lcom/alibaba/fastjson/parser/JavaBeanDeserializer;-><init>(Lcom/alibaba/fastjson/parser/ParserConfig;Ljava/lang/Class;Ljava/lang/reflect/Type;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 215
|
|
:cond_f
|
|
:goto_0
|
|
sget-object v0, Lcom/alibaba/fastjson/serializer/CollectionCodec;->instance:Lcom/alibaba/fastjson/serializer/CollectionCodec;
|
|
|
|
.line 232
|
|
:goto_1
|
|
invoke-virtual {p0, p2, v0}, Lcom/alibaba/fastjson/parser/ParserConfig;->putDeserializer(Ljava/lang/reflect/Type;Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getDeserializer(Ljava/lang/reflect/Type;)Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/alibaba/fastjson/parser/ParserConfig;->deserializers:Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
|
|
.line 141
|
|
invoke-virtual {v0, p1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->get(Ljava/lang/reflect/Type;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 146
|
|
:cond_0
|
|
instance-of v0, p1, Ljava/lang/Class;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 147
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Ljava/lang/Class;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/alibaba/fastjson/parser/ParserConfig;->getDeserializer(Ljava/lang/Class;Ljava/lang/reflect/Type;)Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 150
|
|
:cond_1
|
|
instance-of v0, p1, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 151
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
invoke-interface {v0}, Ljava/lang/reflect/ParameterizedType;->getRawType()Ljava/lang/reflect/Type;
|
|
|
|
move-result-object v0
|
|
|
|
.line 152
|
|
instance-of v1, v0, Ljava/lang/Class;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 153
|
|
check-cast v0, Ljava/lang/Class;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/alibaba/fastjson/parser/ParserConfig;->getDeserializer(Ljava/lang/Class;Ljava/lang/reflect/Type;)Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 155
|
|
:cond_2
|
|
invoke-virtual {p0, v0}, Lcom/alibaba/fastjson/parser/ParserConfig;->getDeserializer(Ljava/lang/reflect/Type;)Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 159
|
|
:cond_3
|
|
instance-of v0, p1, Ljava/lang/reflect/WildcardType;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 160
|
|
check-cast p1, Ljava/lang/reflect/WildcardType;
|
|
|
|
.line 161
|
|
invoke-interface {p1}, Ljava/lang/reflect/WildcardType;->getUpperBounds()[Ljava/lang/reflect/Type;
|
|
|
|
move-result-object p1
|
|
|
|
.line 162
|
|
array-length v0, p1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 163
|
|
aget-object p1, p1, v0
|
|
|
|
.line 164
|
|
invoke-virtual {p0, p1}, Lcom/alibaba/fastjson/parser/ParserConfig;->getDeserializer(Ljava/lang/reflect/Type;)Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 168
|
|
:cond_4
|
|
sget-object p0, Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;->instance:Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public putDeserializer(Ljava/lang/reflect/Type;Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/alibaba/fastjson/parser/ParserConfig;->deserializers:Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
|
|
.line 284
|
|
invoke-virtual {p0, p1, p2}, Lcom/alibaba/fastjson/util/IdentityHashMap;->put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public registerIfNotExists(Ljava/lang/Class;)Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Class<",
|
|
"*>;)",
|
|
"Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 238
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getModifiers()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x1
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-virtual/range {v0 .. v6}, Lcom/alibaba/fastjson/parser/ParserConfig;->registerIfNotExists(Ljava/lang/Class;IZZZZ)Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public registerIfNotExists(Ljava/lang/Class;IZZZZ)Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Class<",
|
|
"*>;IZZZZ)",
|
|
"Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/alibaba/fastjson/parser/ParserConfig;->deserializers:Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
|
|
.line 247
|
|
invoke-virtual {v0, p1}, Lcom/alibaba/fastjson/util/IdentityHashMap;->get(Ljava/lang/reflect/Type;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v8, p0, Lcom/alibaba/fastjson/parser/ParserConfig;->propertyNamingStrategy:Lcom/alibaba/fastjson/PropertyNamingStrategy;
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move-object v3, p1
|
|
|
|
move v4, p3
|
|
|
|
move v5, p4
|
|
|
|
move v6, p5
|
|
|
|
move v7, p6
|
|
|
|
.line 252
|
|
invoke-static/range {v1 .. v8}, Lcom/alibaba/fastjson/parser/JavaBeanInfo;->build(Ljava/lang/Class;ILjava/lang/reflect/Type;ZZZZLcom/alibaba/fastjson/PropertyNamingStrategy;)Lcom/alibaba/fastjson/parser/JavaBeanInfo;
|
|
|
|
move-result-object p2
|
|
|
|
.line 259
|
|
new-instance p3, Lcom/alibaba/fastjson/parser/JavaBeanDeserializer;
|
|
|
|
invoke-direct {p3, p0, p1, p1, p2}, Lcom/alibaba/fastjson/parser/JavaBeanDeserializer;-><init>(Lcom/alibaba/fastjson/parser/ParserConfig;Ljava/lang/Class;Ljava/lang/reflect/Type;Lcom/alibaba/fastjson/parser/JavaBeanInfo;)V
|
|
|
|
.line 260
|
|
invoke-virtual {p0, p1, p3}, Lcom/alibaba/fastjson/parser/ParserConfig;->putDeserializer(Ljava/lang/reflect/Type;Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;)V
|
|
|
|
return-object p3
|
|
.end method
|