public abstract class StdScalarDeserializer<T> extends StdDeserializer<T>
JsonDeserializer.None
_valueClass, 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()
Default implementation indicates that "null value" to use for input null
is simply Java `null` for all deserializers, unless overridden by sub-classes.
|
Boolean |
supportsUpdate(DeserializationConfig config)
By default assumption is that scalar types cannot be updated: many are immutable
values (such as primitives and wrappers)
|
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
deserialize, findBackReference, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializer
protected StdScalarDeserializer(Class<?> vc)
protected StdScalarDeserializer(JavaType valueType)
protected StdScalarDeserializer(StdScalarDeserializer<?> src)
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
public Boolean supportsUpdate(DeserializationConfig config)
supportsUpdate
in class JsonDeserializer<T>
public AccessPattern getNullAccessPattern()
JsonDeserializer
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>
Copyright © 2008–2020 FasterXML. All rights reserved.