KeyDeserializer implementation used for most java.util.Map
key 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 | JDKKeyDeserializer.
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 | JDKKeyDeserializer.
Key deserializer that calls a single-string-arg constructor to instantiate desired key type. |
| pack-priv static class | JDKKeyDeserializer.
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 JDKFromStringDeserializer | _deser
Some types that are deserialized using a helper deserializer. |
| protected final Class | |
| protected 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 | |
| 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 tools. Method called to deserialize a |
| public static JDKKeyDeserializer | |
| public Class |
| _deser | back to summary |
|---|---|
| protected final JDKFromStringDeserializer _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 | |
| 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 | |
| JDKKeyDeserializer | back to summary |
|---|---|
| protected JDKKeyDeserializer(int kind, Class<?> cls) | |
| JDKKeyDeserializer | back to summary |
|---|---|
| protected JDKKeyDeserializer(int kind, Class<?> cls, JDKFromStringDeserializer 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 JacksonException | |
| deserializeKey | back to summary |
|---|---|
| public Object deserializeKey(String key, DeserializationContext ctxt) throws JacksonException Implements abstract tools. Doc from tools. Method called to deserialize a
| |
| forType | back to summary |
|---|---|
| public static JDKKeyDeserializer forType(Class<?> raw) | |
| getKeyClass | back to summary |
|---|---|
| public Class | |
| Modifier and Type | Field and Description |
|---|---|
| protected final ValueDeserializer | |
| protected final Class |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final Object | deserializeKey(String key, DeserializationContext ctxt)
Implements abstract tools. Method called to deserialize a |
| public Class |
| _delegate | back to summary |
|---|---|
| protected final ValueDeserializer<?> _delegate | |
| _keyClass | back to summary |
|---|---|
| protected final Class<?> _keyClass | |
| DelegatingKD | back to summary |
|---|---|
| protected DelegatingKD(Class<?> cls, ValueDeserializer<?> deser) | |
| deserializeKey | back to summary |
|---|---|
| public final Object deserializeKey(String key, DeserializationContext ctxt) throws JacksonException Implements abstract tools. Doc from tools. 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 final EnumResolver | _byIndexResolver
Alternative resolver to parse enums with |
| protected final EnumResolver | |
| protected final EnumResolver | _byToStringResolver
Alternative resolver to parse enums with |
| protected final Enum | |
| protected final AnnotatedMethod |
| Access | Constructor and Description |
|---|---|
| protected | EnumKD(EnumResolver er, AnnotatedMethod factory, EnumResolver byEnumNamingResolver, EnumResolver byToStringResolver, EnumResolver byIndexResolver)
|
| Modifier and Type | Method and Description |
|---|---|
| public Object | _parse(String key, DeserializationContext ctxt)
Overrides tools.
|
| protected EnumResolver |
| _byEnumNamingResolver | back to summary |
|---|---|
| protected final EnumResolver _byEnumNamingResolver Look up map with key as | |
| _byIndexResolver | back to summary |
|---|---|
| protected final EnumResolver _byIndexResolver Alternative resolver to parse enums with | |
| _byNameResolver | back to summary |
|---|---|
| protected final EnumResolver _byNameResolver | |
| _byToStringResolver | back to summary |
|---|---|
| protected final EnumResolver _byToStringResolver Alternative resolver to parse enums with | |
| _enumDefaultValue | back to summary |
|---|---|
| protected final Enum<?> _enumDefaultValue | |
| _factory | back to summary |
|---|---|
| protected final AnnotatedMethod _factory | |
| EnumKD | back to summary |
|---|---|
| protected EnumKD(EnumResolver er, AnnotatedMethod factory, EnumResolver byEnumNamingResolver, EnumResolver byToStringResolver, EnumResolver byIndexResolver) | |
| _parse | back to summary |
|---|---|
| public Object _parse(String key, DeserializationContext ctxt) throws JacksonException Overrides tools.
| |
| _resolveCurrentResolver | back to summary |
|---|---|
| protected EnumResolver _resolveCurrentResolver(DeserializationContext ctxt) | |
| Modifier and Type | Field and Description |
|---|---|
| protected final Constructor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | _parse(String key, DeserializationContext ctxt)
Overrides tools.
|
| _ctor | back to summary |
|---|---|
| protected final Constructor<?> _ctor | |
| StringCtorKeyDeserializer | back to summary |
|---|---|
| public StringCtorKeyDeserializer(Constructor<?> ctor) | |
| _parse | back to summary |
|---|---|
| public Object _parse(String key, DeserializationContext ctxt) throws Exception Overrides tools.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Method |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | _parse(String key, DeserializationContext ctxt)
Overrides tools.
|
| _factoryMethod | back to summary |
|---|---|
| pack-priv final Method _factoryMethod | |
| StringFactoryKeyDeserializer | back to summary |
|---|---|
| public StringFactoryKeyDeserializer(Method fm) | |
| _parse | back to summary |
|---|---|
| public Object _parse(String key, DeserializationContext ctxt) throws Exception Overrides tools.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final JDKKeyDeserializer. | |
| private static final JDKKeyDeserializer. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | deserializeKey(String key, DeserializationContext ctxt)
Overrides tools. Method called to deserialize a |
| public static JDKKeyDeserializer. |
| sObject | back to summary |
|---|---|
| private static final JDKKeyDeserializer. | |
| sString | back to summary |
|---|---|
| private static final JDKKeyDeserializer. | |
| StringKD | back to summary |
|---|---|
| private StringKD(Class<?> nominalType) | |
| deserializeKey | back to summary |
|---|---|
| public Object deserializeKey(String key, DeserializationContext ctxt) throws JacksonException Overrides tools. Doc from tools. Method called to deserialize a
| |
| forType | back to summary |
|---|---|
| public static JDKKeyDeserializer. Hides tools. | |