public abstract class StdScalarDeserializer<T> extends StdDeserializer<T>
JsonDeserializer.None
_valueClass, _valueType, F_MASK_ACCEPT_ARRAYS, F_MASK_INT_COERCIONS
Modifier | Constructor and Description |
---|---|
protected |
StdScalarDeserializer(Class<?> vc) |
protected |
StdScalarDeserializer(JavaType valueType) |
protected |
StdScalarDeserializer(StdScalarDeserializer<?> src) |
Modifier and Type | Method and Description |
---|---|
T |
deserialize(JsonParser p,
DeserializationContext ctxt,
T intoValue)
Overridden to simply call
deserialize() method that does not take value
to update, since scalar values are usually non-mergeable. |
Object |
deserializeWithType(JsonParser p,
DeserializationContext ctxt,
TypeDeserializer typeDeserializer)
Base implementation that does not assume specific type
inclusion mechanism.
|
AccessPattern |
getEmptyAccessPattern()
This method may be called in conjunction with calls to
JsonDeserializer.getEmptyValue(DeserializationContext) , to check whether it needs
to be called just once (static values), or each time empty value is
needed. |
AccessPattern |
getNullAccessPattern()
This method may be called in conjunction with calls to
JsonDeserializer.getNullValue(DeserializationContext) , to check whether it needs
to be called just once (static values), or each time empty value is
needed. |
LogicalType |
logicalType()
Method for accessing logical type of values this deserializer produces.
|
Boolean |
supportsUpdate(DeserializationConfig config)
By default assumption is that scalar types cannot be updated: many are immutable
values (such as primitives and wrappers)
|
_byteOverflow, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkTextualNull, _coerceBooleanFromInt, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeFromEmptyString, _deserializeFromString, _deserializeWrappedValue, _failDoubleToIntCoercion, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isEmptyOrTextualNull, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDouble, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer
deserialize, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializer
protected StdScalarDeserializer(Class<?> vc)
protected StdScalarDeserializer(JavaType valueType)
protected StdScalarDeserializer(StdScalarDeserializer<?> src)
public LogicalType logicalType()
JsonDeserializer
logicalType
in class JsonDeserializer<T>
null
if notpublic Boolean supportsUpdate(DeserializationConfig config)
supportsUpdate
in class JsonDeserializer<T>
public AccessPattern getNullAccessPattern()
JsonDeserializer
JsonDeserializer.getNullValue(DeserializationContext)
, to check whether it needs
to be called just once (static values), or each time empty value is
needed.
Default implementation indicates that the "null value" to use for input null
does not vary across uses so that JsonDeserializer.getNullValue(DeserializationContext)
need not be called more than once per deserializer instance.
This information may be used as optimization.
getNullAccessPattern
in interface NullValueProvider
getNullAccessPattern
in class JsonDeserializer<T>
public AccessPattern getEmptyAccessPattern()
JsonDeserializer
JsonDeserializer.getEmptyValue(DeserializationContext)
, to check whether it needs
to be called just once (static values), or each time empty value is
needed.getEmptyAccessPattern
in class JsonDeserializer<T>
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws IOException
StdDeserializer
deserializeWithType
in class StdDeserializer<T>
typeDeserializer
- Deserializer to use for handling type informationIOException
public T deserialize(JsonParser p, DeserializationContext ctxt, T intoValue) throws IOException
deserialize()
method that does not take value
to update, since scalar values are usually non-mergeable.deserialize
in class JsonDeserializer<T>
IOException
Copyright © 2008–2021 FasterXML. All rights reserved.