FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java/src/main/java/com/jsoniter/ReflectionDecoderFactory.java at master · Howeu/java · GitHub
Howeu
/
java
Public
forked from
json-iterator/java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
java
/
src
/
main
/
java
/
com
/
jsoniter
/
ReflectionDecoderFactory.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (22 loc) · 758 Bytes
Breadcrumbs
java
/
src
/
main
/
java
/
com
/
jsoniter
/
ReflectionDecoderFactory.java
Copy path
File metadata and controls
25 lines (22 loc) · 758 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package
com
.
jsoniter
;
import
com
.
jsoniter
.
spi
.
Decoder
;
import
java
.
lang
.
reflect
.
Type
;
import
java
.
util
.
Collection
;
import
java
.
util
.
Map
;
public
class
ReflectionDecoderFactory
{
public
static
Decoder
create
(
Class
clazz
,
Type
...
typeArgs
) {
if
(
clazz
.
isArray
()) {
return
new
ReflectionArrayDecoder
(
clazz
);
}
if
(
Collection
.
class
.
isAssignableFrom
(
clazz
)) {
return
new
ReflectionCollectionDecoder
(
clazz
,
typeArgs
);
}
if
(
Map
.
class
.
isAssignableFrom
(
clazz
)) {
return
new
ReflectionMapDecoder
(
clazz
,
typeArgs
);
}
if
(
clazz
.
isEnum
()) {
return
new
ReflectionEnumDecoder
(
clazz
);
}
return
new
ReflectionObjectDecoder
(
clazz
).
create
();
}
}
Back
|
FazBrowse Home
|
New Git URL