| Package | Description |
|---|---|
| com.dslplatform.json | |
| com.dslplatform.json.processor | |
| com.dslplatform.json.runtime |
| Modifier and Type | Field and Description |
|---|---|
TContext |
DslJson.context
The context of this instance.
|
protected DslJson.Fallback<TContext> |
DslJson.fallback |
| Modifier and Type | Method and Description |
|---|---|
ResultSetConverter.Writer |
ResultSetConverter.createWriter(ResultSetMetaData metaData,
int index) |
<TResult> TResult |
DslJson.deserialize(Class<TResult> manifest,
byte[] body,
int size)
Convenient deserialize API for working with bytes.
|
<TResult> TResult |
DslJson.deserialize(Class<TResult> manifest,
InputStream stream)
Convenient deserialize API for working with streams.
|
<TResult> TResult |
DslJson.deserialize(Class<TResult> manifest,
InputStream stream,
byte[] buffer)
Convenient deserialize API for working with streams.
|
protected <TResult> TResult |
DslJson.deserialize(Class<TResult> manifest,
JsonReader json,
InputStream stream) |
<T> T |
DslJson.deserialize(JsonReader.ReadObject<T> converter,
JsonReader<TContext> input)
Reusable deserialize API.
|
T |
JsonReader.ReadJsonObject.deserialize(JsonReader reader) |
Object |
DslJson.Fallback.deserialize(TContext context,
Type manifest,
byte[] body,
int size) |
Object |
DslJson.Fallback.deserialize(TContext context,
Type manifest,
InputStream stream) |
Object |
DslJson.deserialize(Type manifest,
byte[] body,
int size)
Deserialize API for working with bytes.
|
Object |
DslJson.deserialize(Type manifest,
InputStream stream)
Deserialize API for working with streams.
|
Object |
DslJson.deserialize(Type manifest,
InputStream stream,
byte[] buffer)
Deserialize API for working with streams.
|
<TResult> List<TResult> |
DslJson.deserializeList(Class<TResult> manifest,
byte[] body,
int size)
Convenient deserialize list API for working with bytes.
|
<TResult> List<TResult> |
DslJson.deserializeList(Class<TResult> manifest,
InputStream stream)
Convenient deserialize list API for working with streams.
|
<TResult> List<TResult> |
DslJson.deserializeList(Class<TResult> manifest,
InputStream stream,
byte[] buffer)
This is deprecated to avoid using it.
|
protected <TResult> List<TResult> |
DslJson.deserializeList(Class<TResult> manifest,
JsonReader<TContext> json,
InputStream stream) |
static String |
StringConverter.deserializeNullable(JsonReader reader) |
static Object |
ObjectConverter.deserializeObject(JsonReader reader) |
static Object |
DslJson.deserializeObject(JsonReader reader)
Deprecated.
|
protected Object |
DslJson.deserializeWith(Type manifest,
JsonReader json) |
Object |
DslJson.getDefault(Type manifest) |
protected JsonReader.ReadJsonObject<JsonObject> |
DslJson.getObjectReader(Class<?> manifest) |
<TResult> Iterator<TResult> |
DslJson.iterateOver(Class<TResult> manifest,
InputStream stream)
Streaming API for collection deserialization.
|
<TResult> Iterator<TResult> |
DslJson.iterateOver(Class<TResult> manifest,
InputStream stream,
byte[] buffer)
Streaming API for collection deserialization.
|
protected <TResult> Iterator<TResult> |
DslJson.iterateOver(Class<TResult> manifest,
JsonReader json,
InputStream stream) |
<T> T |
JsonReader.next(Class<T> manifest)
Will advance to next token and read the JSON into specified type
|
<T> T |
JsonReader.next(Class<T> manifest,
T instance)
Will advance to next token and bind the JSON to provided instance
|
<T> T |
JsonReader.next(JsonReader.BindObject<T> binder,
T instance)
Will advance to next token and bind the JSON to provided instance
|
<T> T |
JsonReader.next(JsonReader.ReadObject<T> reader)
Will advance to next token and read the JSON into specified type
|
T |
JsonReader.ReadObject.read(JsonReader reader) |
<T> T[] |
JsonReader.readArray(JsonReader.ReadObject<T> readObject,
T[] emptyArray) |
<T> ArrayList<T> |
JsonReader.readCollection(JsonReader.ReadObject<T> readObject) |
<K,V> LinkedHashMap<K,V> |
JsonReader.readMap(JsonReader.ReadObject<K> readKey,
JsonReader.ReadObject<V> readValue) |
<T> LinkedHashSet<T> |
JsonReader.readSet(JsonReader.ReadObject<T> readObject) |
JsonReader.ReadObject |
DslJson.registerReader(Type manifest,
JsonReader.ReadObject<?> reader)
Register custom reader for specific type (JSON -> instance conversion).
|
JsonWriter.WriteObject |
DslJson.registerWriter(Type manifest,
JsonWriter.WriteObject<?> writer)
Register custom writer for specific type (instance -> JSON conversion).
|
T |
DslJson.ConverterFactory.tryCreate(Type manifest,
DslJson dslJson) |
<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.
|
<T> JsonReader.ReadObject<T> |
DslJson.tryFindReader(Class<T> manifest)
Try to find registered reader for provided type.
|
JsonReader.ReadObject<?> |
DslJson.tryFindReader(Type manifest)
Try to find registered reader for provided type.
|
<T> JsonWriter.WriteObject<T> |
DslJson.tryFindWriter(Class<T> manifest)
Try to find registered writer for provided type.
|
JsonWriter.WriteObject<?> |
DslJson.tryFindWriter(Type manifest)
Try to find registered writer for provided type.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
DslJson.Fallback.deserialize(TContext context,
Type manifest,
byte[] body,
int size) |
Object |
DslJson.Fallback.deserialize(TContext context,
Type manifest,
InputStream stream) |
DslJson.Settings<TContext> |
DslJson.Settings.fallbackTo(DslJson.Fallback<TContext> fallback)
Deprecated.
|
Object |
DslJson.getDefault(Type manifest) |
<T> void |
DslJson.iterateOver(Iterator<T> iterator,
Class<T> manifest,
OutputStream stream,
JsonWriter writer)
Streaming API for collection serialization.
|
<T> void |
DslJson.iterateOver(Iterator<T> iterator,
OutputStream stream,
JsonWriter writer)
Streaming API for collection serialization.
|
ParsingException |
JsonReader.newParseErrorWith(String shortDescription,
int positionOffset,
String longDescriptionPrefix,
String longDescriptionMessage,
Object argument,
String longDescriptionSuffix) |
ParsingException |
JsonReader.newParseErrorWith(String description,
Object argument) |
JsonReader<TContext> |
JsonReader.process(byte[] newBuffer,
int newLength)
Bind byte[] buffer for processing.
|
JsonReader<TContext> |
JsonReader.process(InputStream stream)
Bind input stream for processing.
|
<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).
|
<T,S extends T> |
DslJson.registerReader(Class<T> manifest,
JsonReader.ReadObject<S> reader)
Register custom reader for specific type (JSON -> instance conversion).
|
JsonReader.ReadObject |
DslJson.registerReader(Type manifest,
JsonReader.ReadObject<?> reader)
Register custom reader for specific type (JSON -> instance conversion).
|
<T> void |
DslJson.registerWriter(Class<T> manifest,
JsonWriter.WriteObject<T> writer)
Register custom writer for specific type (instance -> JSON conversion).
|
JsonWriter.WriteObject |
DslJson.registerWriter(Type manifest,
JsonWriter.WriteObject<?> writer)
Register custom writer for specific type (instance -> JSON conversion).
|
void |
JsonWriter.reset(OutputStream stream)
Resets the writer - specifies the target stream and sets the position in buffer to 0.
|
static void |
NumberConverter.serialize(BigInteger value,
JsonWriter sw) |
static void |
BoolConverter.serialize(boolean[] value,
JsonWriter sw) |
static void |
BinaryConverter.serialize(byte[] value,
JsonWriter sw) |
<T> void |
JsonWriter.serialize(Collection<T> collection,
JsonWriter.WriteObject<T> encoder)
Convenience method for serializing collection through instance serializer (WriteObject).
|
static void |
NumberConverter.serialize(double[] value,
JsonWriter sw) |
static void |
NumberConverter.serialize(float[] value,
JsonWriter sw) |
static void |
JavaGeomConverter.serialize(Image value,
JsonWriter sw) |
static void |
NumberConverter.serialize(int[] values,
JsonWriter sw) |
<T extends JsonObject> |
DslJson.serialize(JsonWriter writer,
Collection<T> collection)
Deprecated.
|
<T extends JsonObject> |
DslJson.serialize(JsonWriter writer,
List<T> list)
Deprecated.
|
void |
DslJson.serialize(JsonWriter writer,
Object value)
Main serialization API.
|
<T extends JsonObject> |
DslJson.serialize(JsonWriter writer,
T[] array)
Deprecated.
|
boolean |
DslJson.serialize(JsonWriter writer,
Type manifest,
Object value)
Generic serialize API.
|
<T> void |
JsonWriter.serialize(List<T> list,
JsonWriter.WriteObject<T> encoder)
Convenience method for serializing list through instance serializer (WriteObject).
|
static void |
NumberConverter.serialize(long[] values,
JsonWriter sw) |
<K,V> void |
JsonWriter.serialize(Map<K,V> map,
JsonWriter.WriteObject<K> keyEncoder,
JsonWriter.WriteObject<V> valueEncoder) |
void |
DslJson.serialize(Object value,
OutputStream stream)
Convenient serialize API.
|
void |
DslJson.Fallback.serialize(Object instance,
OutputStream stream) |
static void |
NumberConverter.serialize(short[] value,
JsonWriter sw) |
<T> void |
JsonWriter.serialize(T[] array,
JsonWriter.WriteObject<T> encoder)
Convenience method for serializing array through instance serializer (WriteObject).
|
static void |
JavaGeomConverter.serializeLocationNullable(Point2D value,
JsonWriter sw) |
static void |
NumberConverter.serializeNullable(BigDecimal value,
JsonWriter sw) |
static void |
BoolConverter.serializeNullable(Boolean value,
JsonWriter sw) |
static void |
NumberConverter.serializeNullable(Double value,
JsonWriter sw) |
static void |
XmlConverter.serializeNullable(Element value,
JsonWriter sw) |
static void |
NumberConverter.serializeNullable(Float value,
JsonWriter sw) |
static void |
NetConverter.serializeNullable(InetAddress value,
JsonWriter sw) |
static void |
NumberConverter.serializeNullable(Integer value,
JsonWriter sw) |
static void |
JavaTimeConverter.serializeNullable(LocalDate value,
JsonWriter sw) |
static void |
JavaTimeConverter.serializeNullable(LocalDateTime value,
JsonWriter sw) |
static void |
JavaTimeConverter.serializeNullable(LocalTime value,
JsonWriter sw) |
static void |
NumberConverter.serializeNullable(Long value,
JsonWriter sw) |
static void |
MapConverter.serializeNullable(Map<String,String> value,
JsonWriter sw) |
static void |
JavaTimeConverter.serializeNullable(OffsetDateTime value,
JsonWriter sw) |
static void |
JavaTimeConverter.serializeNullable(OffsetTime value,
JsonWriter sw) |
static void |
StringConverter.serializeNullable(String value,
JsonWriter sw) |
static void |
NetConverter.serializeNullable(URI value,
JsonWriter sw) |
static void |
UUIDConverter.serializeNullable(UUID value,
JsonWriter sw) |
static void |
ObjectConverter.serializeNullableMap(Map<String,Object> value,
JsonWriter sw) |
void |
JsonWriter.serializeObject(Object value)
Generic object serializer which is used for "unknown schema" objects.
|
static void |
ObjectConverter.serializeObject(Object value,
JsonWriter sw) |
static void |
JavaGeomConverter.serializePointNullable(Point value,
JsonWriter sw) |
void |
JsonWriter.serializeRaw(Collection collection,
JsonWriter.WriteObject encoder) |
void |
JsonWriter.serializeRaw(List list,
JsonWriter.WriteObject encoder) |
void |
JsonWriter.serializeRaw(Map map,
JsonWriter.WriteObject keyEncoder,
JsonWriter.WriteObject valueEncoder) |
static void |
JavaGeomConverter.serializeRectangleNullable(Rectangle2D value,
JsonWriter sw) |
static void |
StringConverter.serializeShortNullable(String value,
JsonWriter sw) |
DslJson.Settings<TContext> |
DslJson.Settings.useKeyCache(StringCache keyCache)
Use specific key cache implementation.
|
DslJson.Settings<TContext> |
DslJson.Settings.useStringValuesCache(StringCache valuesCache)
Use specific string values cache implementation.
|
DslJson.Settings<TContext> |
DslJson.Settings.withContext(TContext context)
Pass in context for DslJson.
|
void |
ResultSetConverter.write(JsonWriter writer,
ResultSet rs) |
void |
JsonWriter.WriteObject.write(JsonWriter writer,
T value) |
| Constructor and Description |
|---|
DslJson(TContext context,
boolean javaSpecifics,
DslJson.Fallback<TContext> fallback,
boolean omitDefaults,
StringCache keyCache,
Iterable<Configuration> serializers)
Deprecated.
|
DslJson(TContext context,
boolean javaSpecifics,
DslJson.Fallback<TContext> fallback,
boolean omitDefaults,
StringCache keyCache,
Iterable<Configuration> serializers)
Deprecated.
|
DslJson(TContext context,
boolean javaSpecifics,
DslJson.Fallback<TContext> fallback,
boolean omitDefaults,
StringCache keyCache,
Iterable<Configuration> serializers)
Deprecated.
|
SerializationException(String reason) |
SerializationException(String reason,
Throwable cause) |
SerializationException(String reason,
Throwable cause) |
SerializationException(Throwable cause) |
| Modifier and Type | Field and Description |
|---|---|
AnnotationMirror |
AttributeInfo.annotation |
VariableElement |
AttributeInfo.argument |
VariableElement |
AttributeInfo.field |
NamingStrategy |
StructInfo.namingStrategy |
ExecutableElement |
AttributeInfo.readMethod |
ExecutableElement |
AttributeInfo.writeMethod |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
AttributeInfo.collectionContent(TypeSupport typeSupport,
Map<String,StructInfo> structs) |
StructInfo |
StructInfo.getDeserializeTarget() |
StructInfo |
StructInfo.getParent() |
Map<String,String> |
NamingStrategy.prepareNames(Map<String,AttributeInfo> attributes) |
ExecutableElement |
StructInfo.selectedConstructor() |
| Modifier and Type | Method and Description |
|---|---|
void |
StructInfo.setDeserializeTarget(StructInfo value) |
void |
StructInfo.supertype(StructInfo parent) |
| Constructor and Description |
|---|
Analysis(ProcessingEnvironment processingEnv,
AnnotationUsage annotationUsage,
LogLevel logLevel,
TypeSupport typeSupport,
Set<String> alternativeIgnore,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeNonNullable,
Map<String,String> alternativeAlias,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeMandatory,
Set<String> alternativeCreators,
Map<String,String> alternativeIndex,
UnknownTypes unknownTypes,
boolean includeFields,
boolean includeBeanMethods,
boolean includeExactMethods) |
Analysis(ProcessingEnvironment processingEnv,
AnnotationUsage annotationUsage,
LogLevel logLevel,
TypeSupport typeSupport,
Set<String> alternativeIgnore,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeNonNullable,
Map<String,String> alternativeAlias,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeMandatory,
Set<String> alternativeCreators,
Map<String,String> alternativeIndex,
UnknownTypes unknownTypes,
boolean includeFields,
boolean includeBeanMethods,
boolean includeExactMethods) |
Analysis(ProcessingEnvironment processingEnv,
AnnotationUsage annotationUsage,
LogLevel logLevel,
TypeSupport typeSupport,
Set<String> alternativeIgnore,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeNonNullable,
Map<String,String> alternativeAlias,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeMandatory,
Set<String> alternativeCreators,
Map<String,String> alternativeIndex,
UnknownTypes unknownTypes,
boolean includeFields,
boolean includeBeanMethods,
boolean includeExactMethods) |
Analysis(ProcessingEnvironment processingEnv,
AnnotationUsage annotationUsage,
LogLevel logLevel,
TypeSupport typeSupport,
Set<String> alternativeIgnore,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeNonNullable,
Map<String,String> alternativeAlias,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeMandatory,
Set<String> alternativeCreators,
Map<String,String> alternativeIndex,
UnknownTypes unknownTypes,
boolean includeFields,
boolean includeBeanMethods,
boolean includeExactMethods) |
Analysis(ProcessingEnvironment processingEnv,
AnnotationUsage annotationUsage,
LogLevel logLevel,
TypeSupport typeSupport,
Set<String> alternativeIgnore,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeNonNullable,
Map<String,String> alternativeAlias,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeMandatory,
Set<String> alternativeCreators,
Map<String,String> alternativeIndex,
UnknownTypes unknownTypes,
boolean includeFields,
boolean includeBeanMethods,
boolean includeExactMethods) |
Analysis(ProcessingEnvironment processingEnv,
AnnotationUsage annotationUsage,
LogLevel logLevel,
TypeSupport typeSupport,
Set<String> alternativeIgnore,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeNonNullable,
Map<String,String> alternativeAlias,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeMandatory,
Set<String> alternativeCreators,
Map<String,String> alternativeIndex,
UnknownTypes unknownTypes,
boolean includeFields,
boolean includeBeanMethods,
boolean includeExactMethods) |
Analysis(ProcessingEnvironment processingEnv,
AnnotationUsage annotationUsage,
LogLevel logLevel,
TypeSupport typeSupport,
Set<String> alternativeIgnore,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeNonNullable,
Map<String,String> alternativeAlias,
Map<String,List<Analysis.AnnotationMapping<Boolean>>> alternativeMandatory,
Set<String> alternativeCreators,
Map<String,String> alternativeIndex,
UnknownTypes unknownTypes,
boolean includeFields,
boolean includeBeanMethods,
boolean includeExactMethods) |
AnnotationMapping(String name,
T value) |
AttributeInfo(String name,
ExecutableElement readMethod,
ExecutableElement writeMethod,
VariableElement field,
VariableElement argument,
TypeMirror type,
boolean isList,
boolean isSet,
boolean isMap,
AnnotationMirror annotation,
boolean notNull,
boolean mandatory,
int index,
String alias,
boolean fullMatch,
CompiledJson.TypeSignature typeSignature,
JsonAttribute.IncludePolicy includeToMinimal,
ConverterInfo converter,
boolean isJsonObject,
LinkedHashSet<TypeMirror> usedTypes,
String typeName,
Map<String,Integer> typeVariablesIndex,
Map<String,TypeMirror> genericSignatures,
boolean containsStructOwnerType) |
AttributeInfo(String name,
ExecutableElement readMethod,
ExecutableElement writeMethod,
VariableElement field,
VariableElement argument,
TypeMirror type,
boolean isList,
boolean isSet,
boolean isMap,
AnnotationMirror annotation,
boolean notNull,
boolean mandatory,
int index,
String alias,
boolean fullMatch,
CompiledJson.TypeSignature typeSignature,
JsonAttribute.IncludePolicy includeToMinimal,
ConverterInfo converter,
boolean isJsonObject,
LinkedHashSet<TypeMirror> usedTypes,
String typeName,
Map<String,Integer> typeVariablesIndex,
Map<String,TypeMirror> genericSignatures,
boolean containsStructOwnerType) |
AttributeInfo(String name,
ExecutableElement readMethod,
ExecutableElement writeMethod,
VariableElement field,
VariableElement argument,
TypeMirror type,
boolean isList,
boolean isSet,
boolean isMap,
AnnotationMirror annotation,
boolean notNull,
boolean mandatory,
int index,
String alias,
boolean fullMatch,
CompiledJson.TypeSignature typeSignature,
JsonAttribute.IncludePolicy includeToMinimal,
ConverterInfo converter,
boolean isJsonObject,
LinkedHashSet<TypeMirror> usedTypes,
String typeName,
Map<String,Integer> typeVariablesIndex,
Map<String,TypeMirror> genericSignatures,
boolean containsStructOwnerType) |
AttributeInfo(String name,
ExecutableElement readMethod,
ExecutableElement writeMethod,
VariableElement field,
VariableElement argument,
TypeMirror type,
boolean isList,
boolean isSet,
boolean isMap,
AnnotationMirror annotation,
boolean notNull,
boolean mandatory,
int index,
String alias,
boolean fullMatch,
CompiledJson.TypeSignature typeSignature,
JsonAttribute.IncludePolicy includeToMinimal,
ConverterInfo converter,
boolean isJsonObject,
LinkedHashSet<TypeMirror> usedTypes,
String typeName,
Map<String,Integer> typeVariablesIndex,
Map<String,TypeMirror> genericSignatures,
boolean containsStructOwnerType) |
AttributeInfo(String name,
ExecutableElement readMethod,
ExecutableElement writeMethod,
VariableElement field,
VariableElement argument,
TypeMirror type,
boolean isList,
boolean isSet,
boolean isMap,
AnnotationMirror annotation,
boolean notNull,
boolean mandatory,
int index,
String alias,
boolean fullMatch,
CompiledJson.TypeSignature typeSignature,
JsonAttribute.IncludePolicy includeToMinimal,
ConverterInfo converter,
boolean isJsonObject,
LinkedHashSet<TypeMirror> usedTypes,
String typeName,
Map<String,Integer> typeVariablesIndex,
Map<String,TypeMirror> genericSignatures,
boolean containsStructOwnerType) |
AttributeInfo(String name,
ExecutableElement readMethod,
ExecutableElement writeMethod,
VariableElement field,
VariableElement argument,
TypeMirror type,
boolean isList,
boolean isSet,
boolean isMap,
AnnotationMirror annotation,
boolean notNull,
boolean mandatory,
int index,
String alias,
boolean fullMatch,
CompiledJson.TypeSignature typeSignature,
JsonAttribute.IncludePolicy includeToMinimal,
ConverterInfo converter,
boolean isJsonObject,
LinkedHashSet<TypeMirror> usedTypes,
String typeName,
Map<String,Integer> typeVariablesIndex,
Map<String,TypeMirror> genericSignatures,
boolean containsStructOwnerType) |
AttributeInfo(String name,
ExecutableElement readMethod,
ExecutableElement writeMethod,
VariableElement field,
VariableElement argument,
TypeMirror type,
boolean isList,
boolean isSet,
boolean isMap,
AnnotationMirror annotation,
boolean notNull,
boolean mandatory,
int index,
String alias,
boolean fullMatch,
CompiledJson.TypeSignature typeSignature,
JsonAttribute.IncludePolicy includeToMinimal,
ConverterInfo converter,
boolean isJsonObject,
LinkedHashSet<TypeMirror> usedTypes,
String typeName,
Map<String,Integer> typeVariablesIndex,
Map<String,TypeMirror> genericSignatures,
boolean containsStructOwnerType) |
AttributeInfo(String name,
ExecutableElement readMethod,
ExecutableElement writeMethod,
VariableElement field,
VariableElement argument,
TypeMirror type,
boolean isList,
boolean isSet,
boolean isMap,
AnnotationMirror annotation,
boolean notNull,
boolean mandatory,
int index,
String alias,
boolean fullMatch,
CompiledJson.TypeSignature typeSignature,
JsonAttribute.IncludePolicy includeToMinimal,
ConverterInfo converter,
boolean isJsonObject,
LinkedHashSet<TypeMirror> usedTypes,
String typeName,
Map<String,Integer> typeVariablesIndex,
Map<String,TypeMirror> genericSignatures,
boolean containsStructOwnerType) |
BuilderInfo(ExecutableElement factory,
ExecutableElement ctor,
TypeElement type,
ExecutableElement build,
AnnotationMirror annotation) |
BuilderInfo(ExecutableElement factory,
ExecutableElement ctor,
TypeElement type,
ExecutableElement build,
AnnotationMirror annotation) |
BuilderInfo(ExecutableElement factory,
ExecutableElement ctor,
TypeElement type,
ExecutableElement build,
AnnotationMirror annotation) |
ConverterInfo(TypeElement converter,
boolean legacyDeclaration,
String reader,
String binder,
String writer,
String defaultValue,
String targetSignature,
Element targetType) |
ConverterInfo(TypeElement converter,
boolean legacyDeclaration,
String reader,
String binder,
String writer,
String defaultValue,
String targetSignature,
Element targetType) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
StructInfo(TypeElement element,
DeclaredType discoveredBy,
String name,
String binaryName,
ObjectType type,
String jsonObjectReaderPath,
List<ExecutableElement> matchingConstructors,
ExecutableElement annotatedConstructor,
ExecutableElement annotatedFactory,
BuilderInfo builder,
AnnotationMirror annotation,
CompiledJson.Behavior onUnknown,
CompiledJson.TypeSignature typeSignature,
CompiledJson.ObjectFormatPolicy objectFormatPolicy,
TypeElement deserializeAs,
String discriminator,
String deserializeName,
Element enumConstantNameSource,
NamingStrategy namingStrategy,
CompiledJson.Format[] formats,
Map<String,TypeMirror> genericSignatures) |
| Modifier and Type | Method and Description |
|---|---|
TOut |
Settings.Function.apply(TIn arguments) |
static String[] |
ImmutableAnalyzer.extractNames(Constructor<?> ctor) |
static String[] |
ImmutableAnalyzer.extractNames(Method factory) |
T |
ObjectFormatDescription.read(JsonReader reader) |
T |
MixinDescription.read(JsonReader reader) |
T |
MapDecoder.read(JsonReader reader) |
T |
ImmutableDescription.read(JsonReader reader) |
T |
FormatDescription.read(JsonReader reader) |
T |
EnumDescription.read(JsonReader reader) |
T |
CollectionDecoder.read(JsonReader reader) |
T |
ArrayFormatDescription.read(JsonReader reader) |
T[] |
ArrayDecoder.read(JsonReader reader) |
T |
FormatConverter.readContent(JsonReader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
Settings.BiConsumer.accept(T t,
U u) |
TOut |
Settings.Function.apply(TIn arguments) |
static <T,R> JsonReader.BindObject<T> |
Settings.createArrayDecoder(Settings.BiConsumer<T,R> write,
DslJson json,
Type type) |
static <T,R> JsonWriter.WriteObject<T> |
Settings.createArrayEncoder(Settings.Function<T,R> read,
DslJson json,
Type type) |
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> JsonWriter.WriteObject<T> |
Settings.createEncoder(Settings.Function<T,R> read,
String name,
DslJson json,
Type type) |
static <T,R> JsonWriter.WriteObject<T> |
Settings.createEncoder(Settings.Function<T,R> read,
String name,
DslJson json,
Type type,
JsonWriter.WriteObject<R> customEncoder) |
static <T,R> JsonWriter.WriteObject<T> |
Settings.createEncoder(Settings.Function<T,R> read,
String name,
DslJson json,
Type type,
JsonWriter.WriteObject<R> customEncoder) |
void |
OptionalEncoder.write(JsonWriter writer,
Optional<T> value) |
void |
MixinWriter.write(JsonWriter writer,
T instance) |
void |
MixinDescription.write(JsonWriter writer,
T instance) |
void |
MapEncoder.write(JsonWriter writer,
T value) |
void |
FormatDescription.write(JsonWriter writer,
T instance) |
void |
EnumDescription.write(JsonWriter writer,
T value) |
void |
CollectionEncoder.write(JsonWriter writer,
T value) |
void |
ArrayFormatDescription.write(JsonWriter writer,
T instance) |
void |
ArrayEncoder.write(JsonWriter writer,
T[] value) |
void |
FormatConverter.writeContentFull(JsonWriter writer,
T instance) |
void |
ArrayFormatDescription.writeContentFull(JsonWriter writer,
T instance) |
boolean |
FormatConverter.writeContentMinimal(JsonWriter writer,
T instance) |
boolean |
ArrayFormatDescription.writeContentMinimal(JsonWriter writer,
T instance) |
| Constructor and Description |
|---|
ArrayEncoder(DslJson json,
JsonWriter.WriteObject<T> encoder) |
CollectionEncoder(DslJson json,
JsonWriter.WriteObject<E> encoder) |
FormatDescription(Type manifest,
FormatConverter<T> objectFormat,
FormatConverter<T> arrayFormat,
boolean isObjectFormatFirst,
String typeName,
DslJson json) |
FormatDescription(Type manifest,
FormatConverter<T> objectFormat,
FormatConverter<T> arrayFormat,
boolean isObjectFormatFirst,
String typeName,
DslJson json) |
MapEncoder(DslJson json,
boolean checkForConversionToString,
JsonWriter.WriteObject<K> keyEncoder,
JsonWriter.WriteObject<V> valueEncoder) |
MapEncoder(DslJson json,
boolean checkForConversionToString,
JsonWriter.WriteObject<K> keyEncoder,
JsonWriter.WriteObject<V> valueEncoder) |
OptionalEncoder(DslJson json,
JsonWriter.WriteObject<T> encoder) |
Copyright © 2023. All rights reserved.