public abstract class JsonParserBase
extends java.lang.Object
JsonParser
that contains
various utilities, to reduce the size of a parser.Modifier and Type | Field and Description |
---|---|
protected static java.util.function.Supplier<java.util.List> |
ARRAYLIST_SUPPLIER |
protected java.util.List<java.lang.String> |
classnameWhitelist |
protected static java.util.function.Supplier<java.util.Map> |
HASHMAP_SUPPLIER |
protected static java.util.function.Supplier<java.util.List> |
LAZYLIST_SUPPLIER |
protected static java.util.function.Supplier<java.util.Map> |
LAZYMAP_SUPPLIER |
protected java.util.function.Supplier<java.util.List> |
listSupplier |
protected java.util.function.Supplier<java.util.Map> |
mapSupplier |
protected boolean |
strictTypes |
Constructor and Description |
---|
JsonParserBase(boolean strictTypes) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
convertType(java.lang.Object value,
java.lang.Class targetType)
Converts type of the given value.
|
protected MapToBean |
createMapToBean(java.lang.String classMetadataName)
Creates new instance of
MapToBean . |
protected void |
injectValueIntoObject(java.lang.Object target,
PropertyDescriptor pd,
java.lang.Object value)
Injects value into the targets property.
|
protected java.util.Collection<java.lang.Object> |
newArrayInstance(java.lang.Class targetType)
Creates new type for JSON array objects.
|
protected java.lang.Object |
newObjectInstance(java.lang.Class targetType)
Creates new object or a
HashMap if type is not specified. |
protected static final java.util.function.Supplier<java.util.Map> HASHMAP_SUPPLIER
protected static final java.util.function.Supplier<java.util.Map> LAZYMAP_SUPPLIER
protected static final java.util.function.Supplier<java.util.List> ARRAYLIST_SUPPLIER
protected static final java.util.function.Supplier<java.util.List> LAZYLIST_SUPPLIER
protected java.util.function.Supplier<java.util.Map> mapSupplier
protected java.util.function.Supplier<java.util.List> listSupplier
protected java.util.List<java.lang.String> classnameWhitelist
protected boolean strictTypes
protected MapToBean createMapToBean(java.lang.String classMetadataName)
MapToBean
.protected java.util.Collection<java.lang.Object> newArrayInstance(java.lang.Class targetType)
protected java.lang.Object newObjectInstance(java.lang.Class targetType)
HashMap
if type is not specified.protected void injectValueIntoObject(java.lang.Object target, PropertyDescriptor pd, java.lang.Object value)
protected java.lang.Object convertType(java.lang.Object value, java.lang.Class targetType)
Copyright © 2003-present Jodd Team