mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 02:17:18 +01:00
117 lines
4.2 KiB
Java
117 lines
4.2 KiB
Java
package com.fasterxml.jackson.databind;
|
|
|
|
import com.fasterxml.jackson.core.JacksonException;
|
|
import com.fasterxml.jackson.core.JsonParser;
|
|
import com.fasterxml.jackson.databind.deser.NullValueProvider;
|
|
import com.fasterxml.jackson.databind.deser.SettableBeanProperty;
|
|
import com.fasterxml.jackson.databind.deser.impl.ObjectIdReader;
|
|
import com.fasterxml.jackson.databind.jsontype.TypeDeserializer;
|
|
import com.fasterxml.jackson.databind.type.LogicalType;
|
|
import com.fasterxml.jackson.databind.util.AccessPattern;
|
|
import com.fasterxml.jackson.databind.util.NameTransformer;
|
|
import defpackage.a$$ExternalSyntheticOutline0;
|
|
import java.io.IOException;
|
|
import java.util.Collection;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
public abstract class JsonDeserializer<T> implements NullValueProvider {
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public static abstract class None extends JsonDeserializer<Object> {
|
|
private None() {
|
|
}
|
|
}
|
|
|
|
public abstract T deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JacksonException;
|
|
|
|
public T deserialize(JsonParser jsonParser, DeserializationContext deserializationContext, T t) throws IOException, JacksonException {
|
|
deserializationContext.handleBadMerge(this);
|
|
return deserialize(jsonParser, deserializationContext);
|
|
}
|
|
|
|
public Object deserializeWithType(JsonParser jsonParser, DeserializationContext deserializationContext, TypeDeserializer typeDeserializer, T t) throws IOException, JacksonException {
|
|
deserializationContext.handleBadMerge(this);
|
|
return deserializeWithType(jsonParser, deserializationContext, typeDeserializer);
|
|
}
|
|
|
|
public SettableBeanProperty findBackReference(String str) {
|
|
StringBuilder m2m = a$$ExternalSyntheticOutline0.m2m("Cannot handle managed/back reference '", str, "': type: value deserializer of type ");
|
|
m2m.append(getClass().getName());
|
|
m2m.append(" does not support them");
|
|
throw new IllegalArgumentException(m2m.toString());
|
|
}
|
|
|
|
@Override // com.fasterxml.jackson.databind.deser.NullValueProvider
|
|
public Object getAbsentValue(DeserializationContext deserializationContext) throws JsonMappingException {
|
|
return getNullValue(deserializationContext);
|
|
}
|
|
|
|
public JsonDeserializer<?> getDelegatee() {
|
|
return null;
|
|
}
|
|
|
|
public AccessPattern getEmptyAccessPattern() {
|
|
return AccessPattern.DYNAMIC;
|
|
}
|
|
|
|
public Object getEmptyValue(DeserializationContext deserializationContext) throws JsonMappingException {
|
|
return getNullValue(deserializationContext);
|
|
}
|
|
|
|
public Collection<Object> getKnownPropertyNames() {
|
|
return null;
|
|
}
|
|
|
|
@Override // com.fasterxml.jackson.databind.deser.NullValueProvider
|
|
public AccessPattern getNullAccessPattern() {
|
|
return AccessPattern.CONSTANT;
|
|
}
|
|
|
|
@Override // com.fasterxml.jackson.databind.deser.NullValueProvider
|
|
public T getNullValue(DeserializationContext deserializationContext) throws JsonMappingException {
|
|
return getNullValue();
|
|
}
|
|
|
|
public ObjectIdReader getObjectIdReader() {
|
|
return null;
|
|
}
|
|
|
|
public Class<?> handledType() {
|
|
return null;
|
|
}
|
|
|
|
public boolean isCachable() {
|
|
return false;
|
|
}
|
|
|
|
public LogicalType logicalType() {
|
|
return null;
|
|
}
|
|
|
|
public JsonDeserializer<?> replaceDelegatee(JsonDeserializer<?> jsonDeserializer) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
public Boolean supportsUpdate(DeserializationConfig deserializationConfig) {
|
|
return null;
|
|
}
|
|
|
|
@Deprecated
|
|
public Object getEmptyValue() {
|
|
return getNullValue();
|
|
}
|
|
|
|
@Deprecated
|
|
public T getNullValue() {
|
|
return null;
|
|
}
|
|
|
|
public Object deserializeWithType(JsonParser jsonParser, DeserializationContext deserializationContext, TypeDeserializer typeDeserializer) throws IOException, JacksonException {
|
|
return typeDeserializer.deserializeTypedFromAny(jsonParser, deserializationContext);
|
|
}
|
|
|
|
public JsonDeserializer<T> unwrappingDeserializer(NameTransformer nameTransformer) {
|
|
return this;
|
|
}
|
|
}
|