Package com.dslplatform.json.runtime
Class Settings
java.lang.Object
com.dslplatform.json.runtime.Settings
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DslJson.ConverterFactory<JsonReader.ReadObject> static final DslJson.ConverterFactory<JsonWriter.WriteObject> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DslJson.Settings<T> static <T,R> JsonReader.BindObject <T> createArrayDecoder(Settings.BiConsumer<T, R> write, DslJson json, Type type) static <T,R> JsonReader.BindObject <T> createArrayDecoder(Settings.BiConsumer<T, R> write, JsonReader.ReadObject<R> decoder) static <T,R> JsonWriter.WriteObject <T> createArrayEncoder(Settings.Function<T, R> read, DslJson json, Type type) static <T,R> JsonWriter.WriteObject <T> createArrayEncoder(Settings.Function<T, R> read, JsonWriter.WriteObject<R> encoder) static <T,R> DecodePropertyInfo <JsonReader.BindObject<T>> 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>> 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>> createDecoder(Settings.BiConsumer<T, R> write, String name, DslJson json, Class<R> manifest) static <T,R> JsonWriter.WriteObject <T> createEncoder(Settings.Function<T, R> read, String name, DslJson json, Type type) static <T,R> JsonWriter.WriteObject <T> createEncoder(Settings.Function<T, R> read, String name, DslJson json, Type type, JsonWriter.WriteObject<R> customEncoder) (package private) static booleanisKnownType(Type type) static <T> DslJson.Settings<T> static <T> DslJson.Settings<T> withAnalyzers(boolean unknownReader, boolean unknownWriter) static <T> DslJson.Settings<T>
-
Field Details
-
UNKNOWN_READER
-
UNKNOWN_WRITER
-
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details
-
isKnownType
-
createEncoder
public static <T,R> JsonWriter.WriteObject<T> createEncoder(Settings.Function<T, R> read, String name, DslJson json, @Nullable Type type) -
createEncoder
public static <T,R> JsonWriter.WriteObject<T> createEncoder(Settings.Function<T, R> read, String name, DslJson json, @Nullable Type type, @Nullable JsonWriter.WriteObject<R> customEncoder) -
createArrayEncoder
public static <T,R> JsonWriter.WriteObject<T> createArrayEncoder(Settings.Function<T, R> read, DslJson json, @Nullable Type type) -
createArrayEncoder
public static <T,R> JsonWriter.WriteObject<T> createArrayEncoder(Settings.Function<T, R> read, JsonWriter.WriteObject<R> encoder) -
createDecoder
public static <T,R> DecodePropertyInfo<JsonReader.BindObject<T>> createDecoder(Settings.BiConsumer<T, R> write, String name, DslJson json, Class<R> manifest) -
createDecoder
public static <T,R> DecodePropertyInfo<JsonReader.BindObject<T>> createDecoder(Settings.BiConsumer<T, R> write, String name, DslJson json, boolean exactNameMatch, boolean isMandatory, int index, boolean nonNull, @Nullable Type type) -
createDecoder
public static <T,R> DecodePropertyInfo<JsonReader.BindObject<T>> createDecoder(Settings.BiConsumer<T, R> write, String name, DslJson json, boolean exactNameMatch, boolean isMandatory, int index, boolean nonNull, JsonReader.ReadObject<R> decoder) -
createArrayDecoder
public static <T,R> JsonReader.BindObject<T> createArrayDecoder(Settings.BiConsumer<T, R> write, DslJson json, @Nullable Type type) -
createArrayDecoder
public static <T,R> JsonReader.BindObject<T> createArrayDecoder(Settings.BiConsumer<T, R> write, JsonReader.ReadObject<R> decoder) -
withRuntime
-
basicSetup
-
withAnalyzers
-
withAnalyzers
-