66 lines
2.1 KiB
Java
66 lines
2.1 KiB
Java
package c.g.a.c;
|
|
|
|
import c.d.b.a.a;
|
|
import c.g.a.a.i0;
|
|
import c.g.a.c.c0.a0;
|
|
import c.g.a.c.c0.b;
|
|
import c.g.a.c.h0.n;
|
|
import c.g.a.c.i0.d;
|
|
import c.g.a.c.i0.e;
|
|
import com.fasterxml.jackson.databind.JsonMappingException;
|
|
import java.lang.reflect.Type;
|
|
import java.util.Objects;
|
|
/* compiled from: DatabindContext */
|
|
public abstract class e {
|
|
public final String a(String str, Object... objArr) {
|
|
return objArr.length > 0 ? String.format(str, objArr) : str;
|
|
}
|
|
|
|
public j b(Type type) {
|
|
if (type == null) {
|
|
return null;
|
|
}
|
|
return d().b(null, type, n.k);
|
|
}
|
|
|
|
public c.g.a.c.i0.e<Object, Object> c(b bVar, Object obj) throws JsonMappingException {
|
|
if (obj == null) {
|
|
return null;
|
|
}
|
|
if (obj instanceof c.g.a.c.i0.e) {
|
|
return (c.g.a.c.i0.e) obj;
|
|
}
|
|
if (obj instanceof Class) {
|
|
Class cls = (Class) obj;
|
|
if (cls == e.a.class || d.p(cls)) {
|
|
return null;
|
|
}
|
|
if (c.g.a.c.i0.e.class.isAssignableFrom(cls)) {
|
|
v vVar = ((x) this)._config;
|
|
Objects.requireNonNull(vVar._base);
|
|
return (c.g.a.c.i0.e) d.g(cls, vVar.b());
|
|
}
|
|
throw new IllegalStateException(a.h(cls, a.K("AnnotationIntrospector returned Class "), "; expected Class<Converter>"));
|
|
}
|
|
StringBuilder K = a.K("AnnotationIntrospector returned Converter definition of type ");
|
|
K.append(obj.getClass().getName());
|
|
K.append("; expected type Converter or Class<Converter> instead");
|
|
throw new IllegalStateException(K.toString());
|
|
}
|
|
|
|
public abstract n d();
|
|
|
|
public i0<?> e(b bVar, a0 a0Var) throws JsonMappingException {
|
|
Class<? extends i0<?>> cls = a0Var.f533c;
|
|
v vVar = ((x) this)._config;
|
|
Objects.requireNonNull(vVar._base);
|
|
return ((i0) d.g(cls, vVar.b())).b(a0Var.e);
|
|
}
|
|
|
|
public abstract <T> T f(j jVar, String str) throws JsonMappingException;
|
|
|
|
public <T> T g(Class<?> cls, String str) throws JsonMappingException {
|
|
return (T) f(b(cls), str);
|
|
}
|
|
}
|