| Package | Description |
|---|---|
| com.dslplatform.json | |
| com.dslplatform.json.runtime |
| Modifier and Type | Field and Description |
|---|---|
protected List<DslJson.ConverterFactory<JsonReader.BindObject>> |
DslJson.binderFactories |
| Modifier and Type | Method and Description |
|---|---|
<T> JsonReader.BindObject<T> |
DslJson.tryFindBinder(Class<T> manifest)
Try to find registered binder for provided type.
|
JsonReader.BindObject<?> |
DslJson.tryFindBinder(Type manifest)
Try to find registered binder for provided type.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
JsonReader.next(JsonReader.BindObject<T> binder,
T instance)
Will advance to next token and bind the JSON to provided instance
|
<T,S extends T> |
DslJson.registerBinder(Class<T> manifest,
JsonReader.BindObject<S> binder)
Register custom binder for specific type (JSON -> instance conversion).
|
void |
DslJson.registerBinder(Type manifest,
JsonReader.BindObject<?> binder)
Register custom binder for specific type (JSON -> instance conversion).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DslJson.registerBinderFactory(DslJson.ConverterFactory<? extends JsonReader.BindObject> factory) |
DslJson.Settings<TContext> |
DslJson.Settings.resolveBinder(DslJson.ConverterFactory<? extends JsonReader.BindObject> binder)
DslJson will iterate over converter factories when requested type is unknown.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayFormatDescription<B,T> |
class |
FormatDescription<T> |
class |
ObjectFormatDescription<B,T> |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> JsonReader.BindObject<T> |
Settings.createArrayDecoder(Settings.BiConsumer<T,R> write,
DslJson json,
Type type) |
static <T,R> JsonReader.BindObject<T> |
Settings.createArrayDecoder(Settings.BiConsumer<T,R> write,
JsonReader.ReadObject<R> decoder) |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> DecodePropertyInfo<JsonReader.BindObject<T>> |
Settings.createDecoder(Settings.BiConsumer<T,R> write,
String name,
DslJson json,
boolean exactNameMatch,
boolean isMandatory,
int index,
boolean nonNull,
JsonReader.ReadObject<R> decoder) |
static <T,R> DecodePropertyInfo<JsonReader.BindObject<T>> |
Settings.createDecoder(Settings.BiConsumer<T,R> write,
String name,
DslJson json,
boolean exactNameMatch,
boolean isMandatory,
int index,
boolean nonNull,
Type type) |
static <T,R> DecodePropertyInfo<JsonReader.BindObject<T>> |
Settings.createDecoder(Settings.BiConsumer<T,R> write,
String name,
DslJson json,
Class<R> manifest) |
| Modifier and Type | Method and Description |
|---|---|
static <D> ArrayFormatDescription<D,D> |
ArrayFormatDescription.create(Class<D> manifest,
InstanceFactory<D> newInstance,
JsonWriter.WriteObject[] encoders,
JsonReader.BindObject[] decoders) |
| Constructor and Description |
|---|
ArrayFormatDescription(Type manifest,
InstanceFactory<B> newInstance,
Settings.Function<B,T> finalize,
JsonWriter.WriteObject[] encoders,
JsonReader.BindObject[] decoders) |
Copyright © 2023. All rights reserved.