KeyDeserializer implementation used for most java.util.Map
types Jackson supports.
Implemented as "chameleon" (or swiss pocket knife) class; not particularly elegant,
but helps reduce number of classes and jar size (class metadata adds significant
per-class overhead; much more than bytecode).
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | StdKeyDeserializer.
Key deserializer that wraps a "regular" deserializer (but one that must recognize FIELD_NAMEs as text!) to reuse existing handlers as key handlers. |
| pack-priv static class | |
| pack-priv static class | StdKeyDeserializer.
Key deserializer that calls a single-string-arg constructor to instantiate desired key type. |
| pack-priv static class | StdKeyDeserializer.
Key deserializer that calls a static no-args factory method to instantiate desired key type. |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final FromStringDeserializer | _deser
Some types that are deserialized using a helper deserializer. |
| protected final Class | |
| protected final int | |
| private static final long | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | |
| protected double | |
| protected int | |
| protected long | |
| protected Object | |
| public Object | deserializeKey(String key, DeserializationContext ctxt)
Implements abstract com. Method called to deserialize a |
| public static StdKeyDeserializer | |
| public Class |
| _deser | back to summary |
|---|---|
| protected final FromStringDeserializer<?> _deser Some types that are deserialized using a helper deserializer. | |
| _keyClass | back to summary |
|---|---|
| protected final Class<?> _keyClass | |
| _kind | back to summary |
|---|---|
| protected final int _kind | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TYPE_BOOLEAN | back to summary |
|---|---|
| public static final int TYPE_BOOLEAN | |
| TYPE_BYTE | back to summary |
|---|---|
| public static final int TYPE_BYTE | |
| TYPE_BYTE_ARRAY | back to summary |
|---|---|
| public static final int TYPE_BYTE_ARRAY | |
| TYPE_CALENDAR | back to summary |
|---|---|
| public static final int TYPE_CALENDAR | |
| TYPE_CHAR | back to summary |
|---|---|
| public static final int TYPE_CHAR | |
| TYPE_CLASS | back to summary |
|---|---|
| public static final int TYPE_CLASS | |
| TYPE_CURRENCY | back to summary |
|---|---|
| public static final int TYPE_CURRENCY | |
| TYPE_DATE | back to summary |
|---|---|
| public static final int TYPE_DATE | |
| TYPE_DOUBLE | back to summary |
|---|---|
| public static final int TYPE_DOUBLE | |
| TYPE_FLOAT | back to summary |
|---|---|
| public static final int TYPE_FLOAT | |
| TYPE_INT | back to summary |
|---|---|
| public static final int TYPE_INT | |
| TYPE_LOCALE | back to summary |
|---|---|
| public static final int TYPE_LOCALE | |
| TYPE_LONG | back to summary |
|---|---|
| public static final int TYPE_LONG | |
| TYPE_SHORT | back to summary |
|---|---|
| public static final int TYPE_SHORT | |
| TYPE_URI | back to summary |
|---|---|
| public static final int TYPE_URI | |
| TYPE_URL | back to summary |
|---|---|
| public static final int TYPE_URL | |
| TYPE_UUID | back to summary |
|---|---|
| public static final int TYPE_UUID | |
| StdKeyDeserializer | back to summary |
|---|---|
| protected StdKeyDeserializer(int kind, Class<?> cls) | |
| StdKeyDeserializer | back to summary |
|---|---|
| protected StdKeyDeserializer(int kind, Class<?> cls, FromStringDeserializer<?> deser) | |
| _parse | back to summary |
|---|---|
| protected Object _parse(String key, DeserializationContext ctxt) throws Exception | |
| _parseDouble | back to summary |
|---|---|
| protected double _parseDouble(String key) throws IllegalArgumentException | |
| _parseInt | back to summary |
|---|---|
| protected int _parseInt(String key) throws IllegalArgumentException | |
| _parseLong | back to summary |
|---|---|
| protected long _parseLong(String key) throws IllegalArgumentException | |
| _weirdKey | back to summary |
|---|---|
| protected Object _weirdKey(DeserializationContext ctxt, String key, Exception e) throws IOException | |
| deserializeKey | back to summary |
|---|---|
| public Object deserializeKey(String key, DeserializationContext ctxt) throws IOException Implements abstract com. Doc from com. Method called to deserialize a
| |
| forType | back to summary |
|---|---|
| public static StdKeyDeserializer forType(Class<?> raw) | |
| getKeyClass | back to summary |
|---|---|
| public Class | |
| Modifier and Type | Field and Description |
|---|---|
| protected final JsonDeserializer | |
| protected final Class | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final Object | deserializeKey(String key, DeserializationContext ctxt)
Implements abstract com. Method called to deserialize a |
| public Class |
| _delegate | back to summary |
|---|---|
| protected final JsonDeserializer<?> _delegate | |
| _keyClass | back to summary |
|---|---|
| protected final Class<?> _keyClass | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DelegatingKD | back to summary |
|---|---|
| protected DelegatingKD(Class<?> cls, JsonDeserializer<?> deser) | |
| deserializeKey | back to summary |
|---|---|
| public final Object deserializeKey(String key, DeserializationContext ctxt) throws IOException Implements abstract com. Doc from com. Method called to deserialize a
| |
| getKeyClass | back to summary |
|---|---|
| public Class | |
| Modifier and Type | Field and Description |
|---|---|
| protected final EnumResolver | _byEnumNamingResolver
Look up map with key as |
| protected volatile EnumResolver | _byIndexResolver
Lazily constructed alternative in case there is need to parse using enum index method as the source. |
| protected final EnumResolver | |
| protected volatile EnumResolver | _byToStringResolver
Lazily constructed alternative in case there is need to use 'toString()' method as the source. |
| protected final Enum | |
| protected final AnnotatedMethod | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | EnumKD(EnumResolver er, AnnotatedMethod factory, EnumResolver byEnumNamingResolver, EnumResolver byToStringResolver, EnumResolver byIndexResolver)
|
| Modifier and Type | Method and Description |
|---|---|
| private EnumResolver | _getIndexResolver(DeserializationContext ctxt)
Deprecated
Since 2.16
Since 2.16, |
| private EnumResolver | _getToStringResolver(DeserializationContext ctxt)
Deprecated
Since 2.16
Since 2.16, |
| public Object | |
| protected EnumResolver |
| _byEnumNamingResolver | back to summary |
|---|---|
| protected final EnumResolver _byEnumNamingResolver Look up map with key as
| |
| _byIndexResolver | back to summary |
|---|---|
| protected volatile EnumResolver _byIndexResolver Lazily constructed alternative in case there is need to parse using enum index method as the source.
| |
| _byNameResolver | back to summary |
|---|---|
| protected final EnumResolver _byNameResolver | |
| _byToStringResolver | back to summary |
|---|---|
| protected volatile EnumResolver _byToStringResolver Lazily constructed alternative in case there is need to use 'toString()' method as the source. Note this will be final in Jackson 3.x, by removing deprecated
| |
| _enumDefaultValue | back to summary |
|---|---|
| protected final Enum<?> _enumDefaultValue | |
| _factory | back to summary |
|---|---|
| protected final AnnotatedMethod _factory | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| EnumKD | back to summary |
|---|---|
| protected EnumKD(EnumResolver er, AnnotatedMethod factory) | |
| EnumKD | back to summary |
|---|---|
protected EnumKD(EnumResolver er, AnnotatedMethod factory, EnumResolver byEnumNamingResolver, EnumResolver byToStringResolver, EnumResolver byIndexResolver)
| |
| _getIndexResolver | back to summary |
|---|---|
| private EnumResolver _getIndexResolver(DeserializationContext ctxt)
Deprecated Since 2.16 Since 2.16,
| |
| _getToStringResolver | back to summary |
|---|---|
| private EnumResolver _getToStringResolver(DeserializationContext ctxt)
Deprecated Since 2.16 Since 2.16,
| |
| _parse | back to summary |
|---|---|
| public Object _parse(String key, DeserializationContext ctxt) throws IOException Overrides com.
| |
| _resolveCurrentResolver | back to summary |
|---|---|
protected EnumResolver _resolveCurrentResolver(DeserializationContext ctxt)
| |
| Modifier and Type | Field and Description |
|---|---|
| protected final Constructor | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| _ctor | back to summary |
|---|---|
| protected final Constructor<?> _ctor | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| StringCtorKeyDeserializer | back to summary |
|---|---|
| public StringCtorKeyDeserializer(Constructor<?> ctor) | |
| _parse | back to summary |
|---|---|
| public Object _parse(String key, DeserializationContext ctxt) throws Exception Overrides com.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Method | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| _factoryMethod | back to summary |
|---|---|
| pack-priv final Method _factoryMethod | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| StringFactoryKeyDeserializer | back to summary |
|---|---|
| public StringFactoryKeyDeserializer(Method fm) | |
| _parse | back to summary |
|---|---|
| public Object _parse(String key, DeserializationContext ctxt) throws Exception Overrides com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private static final StdKeyDeserializer. | |
| private static final StdKeyDeserializer. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | deserializeKey(String key, DeserializationContext ctxt)
Overrides com. Method called to deserialize a |
| public static StdKeyDeserializer. | forType(Class<?> nominalType)
Hides com.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| sObject | back to summary |
|---|---|
| private static final StdKeyDeserializer. | |
| sString | back to summary |
|---|---|
| private static final StdKeyDeserializer. | |
| StringKD | back to summary |
|---|---|
| private StringKD(Class<?> nominalType) | |
| deserializeKey | back to summary |
|---|---|
| public Object deserializeKey(String key, DeserializationContext ctxt) throws IOException Overrides com. Doc from com. Method called to deserialize a
| |
| forType | back to summary |
|---|---|
| public static StdKeyDeserializer. Hides com. | |