Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- and(FieldErrorNode) - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode
-
Groups two error sets together in a single new node.
- arguments() - Method in record class io.github.grumpystuff.grumpyjson.util.ParameterizedTypeImpl
-
Returns the value of the
argumentsrecord component.
B
- BooleanConverter - Class in io.github.grumpystuff.grumpyjson.builtin
-
A converter for the primitive type boolean and its boxed type,
Boolean. - BooleanConverter() - Constructor for class io.github.grumpystuff.grumpyjson.builtin.BooleanConverter
-
Constructor
C
- clear() - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Removes all registered converters from both registries.
- clear() - Method in class io.github.grumpystuff.grumpyjson.registry.Registry
-
Removes all registered objects from this registry.
- ComponentInfo(RecordComponent) - Constructor for class io.github.grumpystuff.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- create(Exception) - Static method in class io.github.grumpystuff.grumpyjson.FieldErrorNode
-
Creates a node for a single error message without a field path.
- create(String) - Static method in class io.github.grumpystuff.grumpyjson.FieldErrorNode
-
Creates a node for a single error message without a field path.
- createDefault() - Static method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Creates a default serializer/deserializer registry pair with built-in auto-generation for record converters.
- CustomJsonDeserializer - Class in io.github.grumpystuff.grumpyjson.deserialize
-
Helper methods to build custom deserializers for common cases.
- CustomJsonDeserializer.DeserializerBody<T> - Interface in io.github.grumpystuff.grumpyjson.deserialize
-
The body of a custom deserializer
- CustomJsonSerializer - Class in io.github.grumpystuff.grumpyjson.serialize
-
Helper methods to build custom serializers for common cases.
- CustomJsonSerializer.SerializerBody<T> - Interface in io.github.grumpystuff.grumpyjson.serialize
-
The body of a custom serializer
D
- deserialize(JsonElement) - Method in interface io.github.grumpystuff.grumpyjson.deserialize.CustomJsonDeserializer.DeserializerBody
-
Deserializes a value.
- deserialize(JsonElement, TypeToken<T>) - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
deserializes JSON from a
JsonElement. - deserialize(JsonElement, Class<T>) - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
deserializes JSON from a
JsonElement. - deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.BooleanConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.EnumConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.FieldMustBeNullConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableFieldConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalFieldConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.IntegerConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.JsonElementConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.ListConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalDateConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalDateTimeConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalTimeConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.LongConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.MapConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverter
- deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.StringConverter
- deserialize(JsonElement, Type) - Method in interface io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializer
-
Converts a value from JSON.
- deserialize(JsonElement, Type) - Method in interface io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializerProvider
-
Convenience method to find a deserializer for the specified
Type, then use it to deserialize theJsonElement. - deserialize(JsonElement, Type) - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
deserializes JSON from a
JsonElement. - deserialize(InputStream, TypeToken<T>) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
deserializes JSON from an
InputStream. - deserialize(InputStream, Class<T>) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
deserializes JSON from an
InputStream. - deserialize(InputStream, Type) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
deserializes JSON from an
InputStream. - deserialize(Reader, TypeToken<T>) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
deserializes JSON from an
Reader. - deserialize(Reader, Class<T>) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
deserializes JSON from an
Reader. - deserialize(Reader, Type) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
deserializes JSON from an
Reader. - deserialize(String, TypeToken<T>) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
deserializes JSON from a
String. - deserialize(String, Class<T>) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
deserializes JSON from a
String. - deserialize(String, Type) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
deserializes JSON from a
String. - deserializeAbsent(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- deserializeAbsent(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalFieldConverter
- deserializeAbsent(Type) - Method in interface io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializer
-
Converts a value from an absent JSON fragment.
- deserializeAbsent(Type) - Method in interface io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializerProvider
-
Convenience method to find a deserializer for the specified
Type, then use it to generate a default value. - deserializerExpectsArray() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonArray
- deserializerExpectsArray() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonElement
-
If this JSON element is not a JSON array, this method throws a
JsonDeserializationException, otherwise it returns the array's elements as aList. - deserializerExpectsBoolean() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonBoolean
- deserializerExpectsBoolean() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonElement
-
If this JSON element is not a JSON boolean, this method throws a
JsonDeserializationException, otherwise it returns the boolean value. - deserializerExpectsNull() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonElement
-
If this JSON element is not JSON null, this method throws a
JsonDeserializationException, otherwise it does nothing. - deserializerExpectsNull() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonNull
- deserializerExpectsNumber() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonElement
-
If this JSON element is not a JSON number, this method throws a
JsonDeserializationException, otherwise it returns the numeric value. - deserializerExpectsNumber() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonNumber
- deserializerExpectsObject() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonElement
-
If this JSON element is not a JSON object, this method throws a
JsonDeserializationException, otherwise it returns the array's elements as aMap. - deserializerExpectsObject() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonObject
- deserializerExpectsString() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonElement
-
If this JSON element is not a JSON string, this method throws a
JsonDeserializationException, otherwise it returns the string value. - deserializerExpectsString() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonString
- deserializerRegistry() - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Returns the value of the
deserializerRegistryrecord component.
E
- ensureConfigurationPhase() - Method in class io.github.grumpystuff.grumpyjson.registry.Sealable
-
Throws an
IllegalStateExceptionif this object has been sealed already. - ensureRunTimePhase() - Method in class io.github.grumpystuff.grumpyjson.registry.Sealable
-
Throws an
IllegalStateExceptionif this object has not yet been sealed. - EnumConverter<T extends Enum<T>> - Class in io.github.grumpystuff.grumpyjson.builtin
-
A converter for enum types.
- EnumConverter(Class<T>) - Constructor for class io.github.grumpystuff.grumpyjson.builtin.EnumConverter
-
Constructor
- equals(Object) - Method in record class io.github.grumpystuff.grumpyjson.builtin.helper_types.FieldMustBeNull
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredField
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
- equals(Object) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
- equals(Object) - Method in record class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverter.Options
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.grumpystuff.grumpyjson.FieldErrorNode.FlattenedError
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonArray
- equals(Object) - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonBoolean
- equals(Object) - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonNull
- equals(Object) - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonNumber
- equals(Object) - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonObject
- equals(Object) - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonString
- equals(Object) - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.grumpystuff.grumpyjson.util.ParameterizedTypeImpl
-
Indicates whether some other object is "equal to" this one.
- ExceptionMessages - Class in io.github.grumpystuff.grumpyjson
-
This class is mostly useful for unit tests: If we hardcoded the error messages at the point these errors occur, then we would have to duplicate them in the tests.
- expectParameterizedType(Type, Class<?>, int) - Static method in class io.github.grumpystuff.grumpyjson.util.TypeUtil
-
Like isParameterizedType(), but will fail with a RuntimeException if the type is not as expected, indicating an internal bug in the deserializer because that deserializer should not have been selected for the wrong type in the first place.
- expectSingleParameterizedType(Type, Class<?>) - Static method in class io.github.grumpystuff.grumpyjson.util.TypeUtil
-
Like isSingleParameterizedType(), but will fail with a RuntimeException if the type is not as expected, indicating an internal bug in the deserializer because that deserializer should not have been selected for the wrong type in the first place.
F
- FALSE - Static variable in class io.github.grumpystuff.grumpyjson.json_model.JsonBoolean
-
The JSON false value
- FieldErrorNode - Class in io.github.grumpystuff.grumpyjson
-
This class typically gets constructed by grumpyjson and consumed by grumpyrest, without any need for the application code to deal with it.
- FieldErrorNode.Field - Class in io.github.grumpystuff.grumpyjson
-
A node that specifies a single field nesting level for its subtree.
- FieldErrorNode.FlattenedError - Record Class in io.github.grumpystuff.grumpyjson
-
This structure represents a single error, i.e. a leaf node, and contains the error message of the
FieldErrorNode.Messagenode as well as the field path as a list of the field names of allFieldErrorNode.Fieldnodes on the way from the root to the message leaf node. - FieldErrorNode.InternalException - Class in io.github.grumpystuff.grumpyjson
-
A leaf node with an internal exception.
- FieldErrorNode.Message - Class in io.github.grumpystuff.grumpyjson
-
A leaf node with an error message.
- FieldErrorNode.Siblings - Class in io.github.grumpystuff.grumpyjson
-
A node that groups two subtrees together to allow the tree to store multiple errors.
- FieldMustBeNull - Record Class in io.github.grumpystuff.grumpyjson.builtin.helper_types
-
This can be used to implement a property that must be JSON-null during deserialziation, and always serializes as JSON-null.
- FieldMustBeNull() - Constructor for record class io.github.grumpystuff.grumpyjson.builtin.helper_types.FieldMustBeNull
-
Creates an instance of a
FieldMustBeNullrecord class. - FieldMustBeNullConverter - Class in io.github.grumpystuff.grumpyjson.builtin.helper_types
-
The converter for
FieldMustBeNull. - FieldMustBeNullConverter() - Constructor for class io.github.grumpystuff.grumpyjson.builtin.helper_types.FieldMustBeNullConverter
-
Constructor
- fieldPath() - Method in record class io.github.grumpystuff.grumpyjson.FieldErrorNode.FlattenedError
-
Returns the value of the
fieldPathrecord component. - flatten() - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode
-
Flattens the errors contained in this node and its subnodes as a list of
FieldErrorNode.FlattenedErrorobjects. - flatten(List<FieldErrorNode.FlattenedError>, List<String>) - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode.Field
- flatten(List<FieldErrorNode.FlattenedError>, List<String>) - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode
-
NOT PUBLIC API
- flatten(List<FieldErrorNode.FlattenedError>, List<String>) - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode.InternalException
- flatten(List<FieldErrorNode.FlattenedError>, List<String>) - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode.Message
- flatten(List<FieldErrorNode.FlattenedError>, List<String>) - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode.Siblings
- FlattenedError(String, String...) - Constructor for record class io.github.grumpystuff.grumpyjson.FieldErrorNode.FlattenedError
-
this constructor is very useful in unit tests
- FlattenedError(String, List<String>) - Constructor for record class io.github.grumpystuff.grumpyjson.FieldErrorNode.FlattenedError
-
Constructor
- from(Class<T>, CustomJsonDeserializer.DeserializerBody<T>) - Static method in class io.github.grumpystuff.grumpyjson.deserialize.CustomJsonDeserializer
-
Builds a deserializer for a single class type from a code body.
- from(Class<T>, CustomJsonSerializer.SerializerBody<T>) - Static method in class io.github.grumpystuff.grumpyjson.serialize.CustomJsonSerializer
-
Builds a serializer for a single class type from a code body.
G
- generateRegistrable(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.serialize.JsonSerializerRegistry
- generateRegistrable(Type) - Method in class io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializerRegistry
- generateRegistrable(K) - Method in class io.github.grumpystuff.grumpyjson.registry.Registry
-
Auto-generates a registrable in a subclass-specific way.
- get(K) - Method in class io.github.grumpystuff.grumpyjson.registry.Registry
-
Returns a registered object for the specified key, auto-generating it if necessary and possible.
- getActualTypeArguments() - Method in record class io.github.grumpystuff.grumpyjson.util.ParameterizedTypeImpl
- getAsList() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonArray
-
Returns the elements of this JSON array as a
List. - getAsMap() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonObject
-
Returns the properties of this JSON object as a
Map. - getComponentInfos() - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordInfo
-
...
- getConcreteType(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- getConverter(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverterFactory
-
NOT PUBLIC API
- getDeserializer(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverterFactory
-
NOT PUBLIC API
- getDeserializer(Type) - Method in interface io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializerProvider
-
Returns a registered deserializer for the specified type, auto-generating it if necessary and possible.
- getDeserializer(Type) - Method in class io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializerRegistry
- getDeserializer(Type) - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
- getDeserializerRegistry() - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
Getter method for the registry for deserializers.
- getErrorMessageForUnknownKey(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.serialize.JsonSerializerRegistry
- getErrorMessageForUnknownKey(Type) - Method in class io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializerRegistry
- getErrorMessageForUnknownKey(K) - Method in class io.github.grumpystuff.grumpyjson.registry.Registry
-
Produces an error message that gets used in an exception for an unknown key.
- getException() - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode.InternalException
-
Getter for the exception.
- getFieldErrorNode() - Method in exception class io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializationException
-
Getter for the
FieldErrorNodethat holds the actual error(s) - getFieldErrorNode() - Method in exception class io.github.grumpystuff.grumpyjson.serialize.JsonSerializationException
-
Getter for the
FieldErrorNodethat holds the actual error(s) - getFirst() - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode.Siblings
-
Getter for the first subtree.
- getGetter() - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- getMessage() - Method in exception class io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializationException
- getMessage() - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode.Message
-
Getter for the error message
- getMessage() - Method in exception class io.github.grumpystuff.grumpyjson.serialize.JsonSerializationException
- getName() - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- getName() - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode.Field
-
Getter method for the field name under which the subtree is nested.
- getNode() - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode.Field
-
Getter method for the local root node of the subtree which is nested under the field.
- getOwnerType() - Method in record class io.github.grumpystuff.grumpyjson.util.ParameterizedTypeImpl
- getPathAsString() - Method in record class io.github.grumpystuff.grumpyjson.FieldErrorNode.FlattenedError
-
Returns the field path as a dot-separated string
- getRawType() - Method in record class io.github.grumpystuff.grumpyjson.util.ParameterizedTypeImpl
- getRecordClass() - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordInfo
-
...
- getRegistries() - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
Getter method for the registries for converters.
- getSecond() - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode.Siblings
-
Getter for the second subtree.
- getSerializer(Class<T>) - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverterFactory
-
NOT PUBLIC API
- getSerializer(Class<T>) - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
- getSerializer(Class<T>) - Method in interface io.github.grumpystuff.grumpyjson.serialize.JsonSerializerProvider
-
Returns a registered serializer for the specified class, auto-generating it if necessary and possible.
- getSerializer(Class<T>) - Method in class io.github.grumpystuff.grumpyjson.serialize.JsonSerializerRegistry
- getSerializerRegistry() - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
Getter method for the registry for serializers.
- getType() - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- getType() - Method in class io.github.grumpystuff.grumpyjson.TypeToken
-
Obtains the type represented by this type token.
- getValue() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
-
Getter method for the value in this instance.
- getValue() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
-
Getter method for the value in this instance.
- getValue() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonBoolean
-
Getter method.
- getValue() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonNumber
-
Getter method.
- getValue() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonString
-
Getter method.
- getValueOrNothingAsNull() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
-
Getter method for the value in this instance.
- getValueOrNull() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
-
Getter method for the value in this instance.
H
- hashCode() - Method in record class io.github.grumpystuff.grumpyjson.builtin.helper_types.FieldMustBeNull
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredField
-
Returns a hash code value for this object.
- hashCode() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
- hashCode() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
- hashCode() - Method in record class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverter.Options
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.grumpystuff.grumpyjson.FieldErrorNode.FlattenedError
-
Returns a hash code value for this object.
- hashCode() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonArray
- hashCode() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonBoolean
- hashCode() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonNull
- hashCode() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonNumber
- hashCode() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonObject
- hashCode() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonString
- hashCode() - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.grumpystuff.grumpyjson.util.ParameterizedTypeImpl
-
Returns a hash code value for this object.
I
- IgnoredField - Record Class in io.github.grumpystuff.grumpyjson.builtin.helper_types
-
This can be used to implement a property that gets ignored during deserialization, and is absent during serialization.
- IgnoredField() - Constructor for record class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredField
-
Creates an instance of a
IgnoredFieldrecord class. - IgnoredFieldConverter - Class in io.github.grumpystuff.grumpyjson.builtin.helper_types
-
The converter for
IgnoredField. - IgnoredFieldConverter() - Constructor for class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredFieldConverter
-
Constructor.
- ignoreUnknownProperties() - Method in record class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverter.Options
-
Returns the value of the
ignoreUnknownPropertiesrecord component. - in(String) - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode
-
Adds the nesting within a single field as a prefix to the field path of this node, returning the result as a new node.
- INSTANCE - Static variable in record class io.github.grumpystuff.grumpyjson.builtin.helper_types.FieldMustBeNull
-
The shared instance of this class.
- INSTANCE - Static variable in record class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredField
-
The shared instance of this class.
- INSTANCE - Static variable in class io.github.grumpystuff.grumpyjson.json_model.JsonNull
-
Shared instance of this class.
- IntegerConverter - Class in io.github.grumpystuff.grumpyjson.builtin
-
A converter for the primitive type int and its boxed type,
Integer. - IntegerConverter() - Constructor for class io.github.grumpystuff.grumpyjson.builtin.IntegerConverter
-
Constructor
- INTERNAL_ERROR - Static variable in class io.github.grumpystuff.grumpyjson.ExceptionMessages
-
Generic error message for internal errors that we don't want to expose any details about.
- invokeConstructor(Object[]) - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordInfo
-
...
- invokeGetter(Object) - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- io.github.grumpystuff.grumpyjson - package io.github.grumpystuff.grumpyjson
- io.github.grumpystuff.grumpyjson.builtin - package io.github.grumpystuff.grumpyjson.builtin
- io.github.grumpystuff.grumpyjson.builtin.helper_types - package io.github.grumpystuff.grumpyjson.builtin.helper_types
- io.github.grumpystuff.grumpyjson.builtin.record - package io.github.grumpystuff.grumpyjson.builtin.record
- io.github.grumpystuff.grumpyjson.deserialize - package io.github.grumpystuff.grumpyjson.deserialize
- io.github.grumpystuff.grumpyjson.json_model - package io.github.grumpystuff.grumpyjson.json_model
- io.github.grumpystuff.grumpyjson.registry - package io.github.grumpystuff.grumpyjson.registry
- io.github.grumpystuff.grumpyjson.serialize - package io.github.grumpystuff.grumpyjson.serialize
- io.github.grumpystuff.grumpyjson.util - package io.github.grumpystuff.grumpyjson.util
- isAbsent() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
-
Checks if this instance is absent.
- isNonNull() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
-
Checks if this instance is non-null.
- isNull() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
-
Checks if this instance is null.
- isParameterizedType(Type, Class<?>, int) - Static method in class io.github.grumpystuff.grumpyjson.util.TypeUtil
-
A common thing to check in deserializers is whether a requested type is a parameterized type with a specific raw type and a specific number of type parameters, but without further restricting the type arguments used for these parameters -- instead, obtaining the type arguments to do something with them.
- isPresent() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
-
Checks if this instance is present.
- isSingleParameterizedType(Type, Class<?>) - Static method in class io.github.grumpystuff.grumpyjson.util.TypeUtil
-
Like isParameterizedType(), but with expectedNumberOfTypeArguments=1 and returns the single type argument directly, not as an array.
J
- join(List<?>, String) - Static method in class io.github.grumpystuff.grumpyjson.util.StringUtil
-
...
- JsonArray - Class in io.github.grumpystuff.grumpyjson.json_model
-
This class represents JSON arrays.
- JsonBoolean - Class in io.github.grumpystuff.grumpyjson.json_model
-
This class represents the JSON values true and false.
- JsonDeserializationException - Exception Class in io.github.grumpystuff.grumpyjson.deserialize
-
This exception type gets thrown when the incoming JSON does not match the expected structure.
- JsonDeserializationException(FieldErrorNode) - Constructor for exception class io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializationException
-
Creates an exception for a
FieldErrorNodethat wraps one or more actual errors. - JsonDeserializationException(Exception) - Constructor for exception class io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializationException
-
Creates an exception for a single-field error caused by an exception from the deserializer.
- JsonDeserializationException(String) - Constructor for exception class io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializationException
-
Creates an exception for a single error message without a field path.
- JsonDeserializer - Interface in io.github.grumpystuff.grumpyjson.deserialize
-
Defines the conversion from JSON to a Java object / value for one or more types.
- JsonDeserializerProvider - Interface in io.github.grumpystuff.grumpyjson.deserialize
-
Abstracts the run-time methods from the
JsonDeserializerRegistryso that deserializers which have to look up dependencies don't depend on the full registry. - JsonDeserializerRegistry - Class in io.github.grumpystuff.grumpyjson.deserialize
-
This registry keeps the
JsonDeserializers used by aJsonEngine. - JsonDeserializerRegistry(RecordConverterFactory) - Constructor for class io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializerRegistry
-
NOT PUBLIC API
- JsonElement - Class in io.github.grumpystuff.grumpyjson.json_model
-
Base class for all JSON elements.
- JsonElementConverter - Class in io.github.grumpystuff.grumpyjson.builtin
-
A converter for
JsonElement. - JsonElementConverter() - Constructor for class io.github.grumpystuff.grumpyjson.builtin.JsonElementConverter
-
Constructor
- JsonEngine - Class in io.github.grumpystuff.grumpyjson
-
This class is the main entry point into the JSON conversion system.
- JsonEngine() - Constructor for class io.github.grumpystuff.grumpyjson.JsonEngine
-
Creates a new JSON engine with standard converters registered.
- JsonNull - Class in io.github.grumpystuff.grumpyjson.json_model
-
This class represents JSON null.
- JsonNumber - Class in io.github.grumpystuff.grumpyjson.json_model
-
This class represents JSON numbers.
- JsonObject - Class in io.github.grumpystuff.grumpyjson.json_model
-
This class represents JSON objects.
- JsonProviders - Interface in io.github.grumpystuff.grumpyjson
-
Combines JsonSerializerProvider and JsonDeserializerProvider.
- JsonRegistries - Record Class in io.github.grumpystuff.grumpyjson
-
Groups the
JsonSerializerRegistryandJsonDeserializerRegistrytogether. - JsonRegistries(JsonSerializerRegistry, JsonDeserializerRegistry) - Constructor for record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Creates an instance of a
JsonRegistriesrecord class. - JsonSerializationException - Exception Class in io.github.grumpystuff.grumpyjson.serialize
-
This exception type gets thrown when the state of the objects being serialized is not possible to map to JSON.
- JsonSerializationException(FieldErrorNode) - Constructor for exception class io.github.grumpystuff.grumpyjson.serialize.JsonSerializationException
-
Creates an exception for a
FieldErrorNodethat wraps one or more actual errors. - JsonSerializationException(Exception) - Constructor for exception class io.github.grumpystuff.grumpyjson.serialize.JsonSerializationException
-
Creates an exception for a single-field error caused by an exception from the serializer.
- JsonSerializationException(String) - Constructor for exception class io.github.grumpystuff.grumpyjson.serialize.JsonSerializationException
-
Creates an exception for a single-field error message without a field path.
- JsonSerializer<T> - Interface in io.github.grumpystuff.grumpyjson.serialize
-
Defines the conversion of Java objects to JSON for one or more classes.
- JsonSerializerProvider - Interface in io.github.grumpystuff.grumpyjson.serialize
-
Abstracts the run-time methods from the
JsonSerializerRegistryso that serializers which have to look up dependencies don't depend on the full registry. - JsonSerializerRegistry - Class in io.github.grumpystuff.grumpyjson.serialize
-
This registry keeps the
JsonSerializers used by aJsonEngine. - JsonSerializerRegistry(RecordConverterFactory) - Constructor for class io.github.grumpystuff.grumpyjson.serialize.JsonSerializerRegistry
-
NOT PUBLIC API
- JsonString - Class in io.github.grumpystuff.grumpyjson.json_model
-
This class represents JSON strings.
L
- ListConverter - Class in io.github.grumpystuff.grumpyjson.builtin
-
This converter handles type List<...> for deserialization, and the List interface and its implementing classes for serialization.
- ListConverter(JsonProviders) - Constructor for class io.github.grumpystuff.grumpyjson.builtin.ListConverter
-
Constructor.
- ListUtil - Class in io.github.grumpystuff.grumpyjson.util
-
NOT PUBLIC API
- LocalDateConverter - Class in io.github.grumpystuff.grumpyjson.builtin
-
A converter for
LocalDate. - LocalDateConverter() - Constructor for class io.github.grumpystuff.grumpyjson.builtin.LocalDateConverter
-
Constructor
- LocalDateTimeConverter - Class in io.github.grumpystuff.grumpyjson.builtin
-
A converter for
LocalDateTime. - LocalDateTimeConverter() - Constructor for class io.github.grumpystuff.grumpyjson.builtin.LocalDateTimeConverter
-
Constructor
- LocalTimeConverter - Class in io.github.grumpystuff.grumpyjson.builtin
-
A converter for
LocalTime. - LocalTimeConverter() - Constructor for class io.github.grumpystuff.grumpyjson.builtin.LocalTimeConverter
-
Constructor
- LongConverter - Class in io.github.grumpystuff.grumpyjson.builtin
-
A converter for the primitive type long and its boxed type,
Long. - LongConverter() - Constructor for class io.github.grumpystuff.grumpyjson.builtin.LongConverter
-
Constructor
M
- MapConverter - Class in io.github.grumpystuff.grumpyjson.builtin
-
This converter handles type Map<...> for deserialization, and the Map interface and its implementing classes for serialization.
- MapConverter(JsonProviders) - Constructor for class io.github.grumpystuff.grumpyjson.builtin.MapConverter
-
Constructor.
- message() - Method in record class io.github.grumpystuff.grumpyjson.FieldErrorNode.FlattenedError
-
Returns the value of the
messagerecord component. - MISSING_PROPERTY - Static variable in class io.github.grumpystuff.grumpyjson.ExceptionMessages
-
Error message for an missing property in a JSON object.
N
- notNull(T, String) - Static method in class io.github.grumpystuff.grumpyjson.util.Parameters
-
NOT PUBLIC API
- NotRegisteredException - Exception Class in io.github.grumpystuff.grumpyjson.registry
-
Thrown if the registrable for an unknown key is fetched from a
Registry. - NotRegisteredException() - Constructor for exception class io.github.grumpystuff.grumpyjson.registry.NotRegisteredException
-
Constructor.
- NotRegisteredException(String) - Constructor for exception class io.github.grumpystuff.grumpyjson.registry.NotRegisteredException
-
Constructor.
- NotRegisteredException(String, Throwable) - Constructor for exception class io.github.grumpystuff.grumpyjson.registry.NotRegisteredException
-
Constructor.
- NotRegisteredException(Throwable) - Constructor for exception class io.github.grumpystuff.grumpyjson.registry.NotRegisteredException
-
Constructor.
- NullableField<T> - Class in io.github.grumpystuff.grumpyjson.builtin.helper_types
-
This can be used to wrap a property and allow JSON null instead of an actual value.
- NullableFieldConverter - Class in io.github.grumpystuff.grumpyjson.builtin.helper_types
-
The converter for
NullableField. - NullableFieldConverter(JsonProviders) - Constructor for class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableFieldConverter
-
Constructor.
O
- of() - Static method in class io.github.grumpystuff.grumpyjson.json_model.JsonNull
-
This method just returns the shared instance
JsonNull.INSTANCEand is provided for uniformity with the other JSON classes. - of() - Static method in class io.github.grumpystuff.grumpyjson.json_model.JsonObject
-
Creates an empty instance of this class.
- of(boolean) - Static method in class io.github.grumpystuff.grumpyjson.json_model.JsonBoolean
-
Returns an instance of this class for a plain boolean value.
- of(JsonElement...) - Static method in class io.github.grumpystuff.grumpyjson.json_model.JsonArray
-
Creates an instance of this class from elements passed as varargs.
- of(Number) - Static method in class io.github.grumpystuff.grumpyjson.json_model.JsonNumber
-
Creates an instance of this class for the specified plain numeric value.
- of(String) - Static method in class io.github.grumpystuff.grumpyjson.json_model.JsonString
-
Creates an instance of this class for the specified plain string value.
- of(String, JsonElement) - Static method in class io.github.grumpystuff.grumpyjson.json_model.JsonObject
-
Creates an instance of this class from one directly specified key/value pair.
- of(String, JsonElement, String, JsonElement) - Static method in class io.github.grumpystuff.grumpyjson.json_model.JsonObject
-
Creates an instance of this class from two directly specified key/value pairs.
- of(String, JsonElement, String, JsonElement, String, JsonElement) - Static method in class io.github.grumpystuff.grumpyjson.json_model.JsonObject
-
Creates an instance of this class from three directly specified key/value pairs.
- of(List<JsonElement>) - Static method in class io.github.grumpystuff.grumpyjson.json_model.JsonArray
-
Creates an instance of this class from a
Listcontaining the elements of the JSON array. - of(Map<String, JsonElement>) - Static method in class io.github.grumpystuff.grumpyjson.json_model.JsonObject
-
Creates an instance of this class from a
Mapcontaining the properties of the JSON object. - ofNothing() - Static method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
-
Creates a new instance that is absent.
- ofNull() - Static method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
-
Creates a new instance that is null.
- ofValue(T) - Static method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
-
Creates a new instance that is non-null, i.e. has a value.
- ofValue(T) - Static method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
-
Creates a new instance that is present, i.e. has a value.
- ofValueOrNull(T) - Static method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
-
Creates a new instance that is non-null if the argument is non-null, and null if the argument is null.
- ofValueOrNullAsNothing(T) - Static method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
-
Creates a new instance that is present if the argument is non-null, and absent if the argument is null.
- onSeal() - Method in class io.github.grumpystuff.grumpyjson.registry.Registry
- onSeal() - Method in class io.github.grumpystuff.grumpyjson.registry.Sealable
-
Subclasses may perform seal-time operations here, e.g. optimize their internal data structures to prepare for run-time.
- OptionalField<T> - Class in io.github.grumpystuff.grumpyjson.builtin.helper_types
-
This can be used to wrap a property and allow it to be absent in JSON.
- OptionalFieldConverter - Class in io.github.grumpystuff.grumpyjson.builtin.helper_types
-
The converter for
OptionalField. - OptionalFieldConverter(JsonProviders) - Constructor for class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalFieldConverter
-
Constructor.
- Options(boolean) - Constructor for record class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverter.Options
-
Creates an instance of a
Optionsrecord class. - orElse(T) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
-
Returns this field's value if
NullableField.isNonNull(), otherwise the argument. - orElse(T) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
-
Returns this field's value if
OptionalField.isPresent(), otherwise the argument. - orElseGet(Supplier<T>) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
-
Returns this field's value if
NullableField.isNonNull(), otherwise a value obtained from the argument. - orElseGet(Supplier<T>) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
-
Returns this field's value if
OptionalField.isPresent(), otherwise a value obtained from the argument. - owner() - Method in record class io.github.grumpystuff.grumpyjson.util.ParameterizedTypeImpl
-
Returns the value of the
ownerrecord component.
P
- ParameterizedTypeImpl - Record Class in io.github.grumpystuff.grumpyjson.util
-
NOT PUBLIC API
- ParameterizedTypeImpl(Type, Type, Type...) - Constructor for record class io.github.grumpystuff.grumpyjson.util.ParameterizedTypeImpl
-
NOT PUBLIC API
- Parameters - Class in io.github.grumpystuff.grumpyjson.util
-
NOT PUBLIC API
R
- raw() - Method in record class io.github.grumpystuff.grumpyjson.util.ParameterizedTypeImpl
-
Returns the value of the
rawrecord component. - RecordConverter<T> - Class in io.github.grumpystuff.grumpyjson.builtin.record
-
Maps a record class to and from a JSON object.
- RecordConverter(Class<T>, JsonProviders) - Constructor for class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverter
-
Application code usually does not have to call this constructor because instances of this class will be auto-generated for unknown records, and this constructor does not add any features on top of that.
- RecordConverter(Class<T>, JsonProviders, RecordConverter.Options) - Constructor for class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverter
-
This constructor adds extra options.
- RecordConverter.Options - Record Class in io.github.grumpystuff.grumpyjson.builtin.record
-
Controls the behavior of a
RecordConverter. - RecordConverterFactory - Class in io.github.grumpystuff.grumpyjson.builtin.record
-
NOT PUBLIC API
- RecordConverterFactory() - Constructor for class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverterFactory
-
NOT PUBLIC API
- RecordInfo - Class in io.github.grumpystuff.grumpyjson.builtin.record
-
NOT PUBLIC API
- RecordInfo(Class<?>) - Constructor for class io.github.grumpystuff.grumpyjson.builtin.record.RecordInfo
-
NOT PUBLIC API
- RecordInfo.ComponentInfo - Class in io.github.grumpystuff.grumpyjson.builtin.record
-
NOT PUBLIC API
- register(V) - Method in class io.github.grumpystuff.grumpyjson.registry.Registry
-
Registers a registrable with this registry.
- registerDeserializer(JsonDeserializer) - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Registers the specified deserializer.
- registerDeserializer(JsonDeserializer) - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
Registers the specified deserializer.
- registerDualConverter(T) - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Registers the specified dual converter.
- registerDualConverter(T) - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
Registers the specified dual converter.
- registerSerializer(JsonSerializer<?>) - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Registers the specified serializer.
- registerSerializer(JsonSerializer<?>) - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
Registers the specified serializer.
- registrableSupports(JsonDeserializer, Type) - Method in class io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializerRegistry
- registrableSupports(JsonSerializer<?>, Class<?>) - Method in class io.github.grumpystuff.grumpyjson.serialize.JsonSerializerRegistry
- registrableSupports(V, K) - Method in class io.github.grumpystuff.grumpyjson.registry.Registry
-
Checks whether the specified registrable supports the specified key.
- Registry<K,
V> - Class in io.github.grumpystuff.grumpyjson.registry -
Base class for a registry which acts somewhat like a
Map, but with the following differences: For each registrable ("value" in Map terminology), the registry can determine the keys which that registrable supports, i.e. the keys that can be used to obtain that registrable from the registry. - Registry() - Constructor for class io.github.grumpystuff.grumpyjson.registry.Registry
-
Constructor.
- replaceTypeVariables(Type, Map<String, Type>) - Static method in class io.github.grumpystuff.grumpyjson.util.TypeUtil
-
Returns a type like the original, but with all its type variables replaced by the bound types.
- reverseInPlace(List<T>) - Static method in class io.github.grumpystuff.grumpyjson.util.ListUtil
-
NOT PUBLIC API
S
- seal() - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Seals the registries, moving from the configuration phase to the run-time phase.
- seal() - Method in class io.github.grumpystuff.grumpyjson.registry.Sealable
-
Seals this object, moving from the configuration phase to the run-time phase.
- seal() - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
Seals this JSON engine, moving from the configuration phase to the run-time phase.
- Sealable - Class in io.github.grumpystuff.grumpyjson.registry
-
Base class for everything whose lifecycle is divided into configuration phase and run-time phase.
- Sealable() - Constructor for class io.github.grumpystuff.grumpyjson.registry.Sealable
-
Constructor
- serialize(FieldMustBeNull) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.FieldMustBeNullConverter
- serialize(IgnoredField) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- serialize(NullableField<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableFieldConverter
- serialize(OptionalField<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalFieldConverter
- serialize(JsonElement) - Method in class io.github.grumpystuff.grumpyjson.builtin.JsonElementConverter
- serialize(Boolean) - Method in class io.github.grumpystuff.grumpyjson.builtin.BooleanConverter
- serialize(Integer) - Method in class io.github.grumpystuff.grumpyjson.builtin.IntegerConverter
- serialize(Long) - Method in class io.github.grumpystuff.grumpyjson.builtin.LongConverter
- serialize(Object) - Method in interface io.github.grumpystuff.grumpyjson.serialize.JsonSerializerProvider
-
Turns a value into a
JsonElement. - serialize(String) - Method in class io.github.grumpystuff.grumpyjson.builtin.StringConverter
- serialize(LocalDate) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalDateConverter
- serialize(LocalDateTime) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalDateTimeConverter
- serialize(LocalTime) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalTimeConverter
- serialize(List<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.ListConverter
- serialize(Map<?, ?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.MapConverter
- serialize(T) - Method in class io.github.grumpystuff.grumpyjson.builtin.EnumConverter
- serialize(T) - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverter
- serialize(T) - Method in interface io.github.grumpystuff.grumpyjson.serialize.CustomJsonSerializer.SerializerBody
-
Serializes a value.
- serialize(T) - Method in interface io.github.grumpystuff.grumpyjson.serialize.JsonSerializer
-
Converts a value to JSON.
- serializeOptional(IgnoredField) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- serializeOptional(OptionalField<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalFieldConverter
- serializeOptional(Object) - Method in interface io.github.grumpystuff.grumpyjson.serialize.JsonSerializerProvider
-
Turns a value into an optional
JsonElement. - serializeOptional(T) - Method in interface io.github.grumpystuff.grumpyjson.serialize.JsonSerializer
-
Converts a value to JSON in a context in which a non-existing JSON value can be handled, and therefore supports values that turn out to vanish during serialization, such as
OptionalField. - serializerRegistry() - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Returns the value of the
serializerRegistryrecord component. - serializeToString(Object) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
Turns a value into a JSON string.
- setProviders(JsonProviders) - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverterFactory
-
NOT PUBLIC API
- StringConverter - Class in io.github.grumpystuff.grumpyjson.builtin
-
A converter for type
String. - StringConverter() - Constructor for class io.github.grumpystuff.grumpyjson.builtin.StringConverter
-
Constructor
- StringUtil - Class in io.github.grumpystuff.grumpyjson.util
-
NOT PUBLIC API
- StructuralJsonEngine - Class in io.github.grumpystuff.grumpyjson
-
This base class of
JsonEngineimplements the "conversion" part of the JSON engine and can be used if actual (de-)serialization from and to JSON syntax is not needed. - StructuralJsonEngine() - Constructor for class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
Creates a new JSON engine with standard converters registered.
- supports(K) - Method in class io.github.grumpystuff.grumpyjson.registry.Registry
-
Checks whether the specified key is supported by any registrable that is registered with this registry or can be auto-generated on the fly.
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.BooleanConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.EnumConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.FieldMustBeNullConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableFieldConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalFieldConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.IntegerConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.JsonElementConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.ListConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalDateConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalDateTimeConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalTimeConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.LongConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.MapConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverter
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.builtin.StringConverter
- supportsClassForSerialization(Class<?>) - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
- supportsClassForSerialization(Class<?>) - Method in interface io.github.grumpystuff.grumpyjson.serialize.JsonSerializer
-
Checks if this serializer supports the specified class.
- supportsClassForSerialization(Class<?>) - Method in interface io.github.grumpystuff.grumpyjson.serialize.JsonSerializerProvider
-
Checks whether the specified class is supported for serialization by any serializer that is known to this provider.
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.serialize.JsonSerializerRegistry
- supportsClassForSerialization(Class<?>) - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
Checks whether the specified class is supported for serialization by this engine
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.BooleanConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.EnumConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.FieldMustBeNullConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableFieldConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalFieldConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.IntegerConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.JsonElementConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.ListConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalDateConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalDateTimeConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.LocalTimeConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.LongConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.MapConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverter
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.builtin.StringConverter
- supportsTypeForDeserialization(Type) - Method in interface io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializer
-
Checks if this deserializer supports the specified type.
- supportsTypeForDeserialization(Type) - Method in interface io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializerProvider
-
Checks whether the specified type is supported for deserialization by any deserializer that is known to this provider.
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.deserialize.JsonDeserializerRegistry
- supportsTypeForDeserialization(Type) - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
- supportsTypeForDeserialization(Type) - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
Checks whether the specified type is supported for deserialization by this engine
T
- toJsonElement(Object) - Method in class io.github.grumpystuff.grumpyjson.StructuralJsonEngine
-
Turns a value into a
JsonElement. - toString() - Method in record class io.github.grumpystuff.grumpyjson.builtin.helper_types.FieldMustBeNull
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.grumpystuff.grumpyjson.builtin.helper_types.IgnoredField
-
Returns a string representation of this record class.
- toString() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.NullableField
- toString() - Method in class io.github.grumpystuff.grumpyjson.builtin.helper_types.OptionalField
- toString() - Method in record class io.github.grumpystuff.grumpyjson.builtin.record.RecordConverter.Options
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.grumpystuff.grumpyjson.FieldErrorNode.FlattenedError
-
Returns a string representation of this record class.
- toString() - Method in class io.github.grumpystuff.grumpyjson.FieldErrorNode
-
This method turns the node to a string for simple output / debugging purposes.
- toString() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonArray
- toString() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonBoolean
- toString() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonNull
- toString() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonNumber
- toString() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonObject
- toString() - Method in class io.github.grumpystuff.grumpyjson.json_model.JsonString
- toString() - Method in record class io.github.grumpystuff.grumpyjson.JsonRegistries
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.grumpystuff.grumpyjson.util.ParameterizedTypeImpl
-
Returns a string representation of this record class.
- TRUE - Static variable in class io.github.grumpystuff.grumpyjson.json_model.JsonBoolean
-
The JSON true value
- TypeToken<T> - Class in io.github.grumpystuff.grumpyjson
-
This class is an easier way to represent a (parameterized) type than
Type. - TypeToken() - Constructor for class io.github.grumpystuff.grumpyjson.TypeToken
-
Constructor
- TypeUtil - Class in io.github.grumpystuff.grumpyjson.util
-
NOT PUBLIC API
U
- UNEXPECTED_PROPERTY - Static variable in class io.github.grumpystuff.grumpyjson.ExceptionMessages
-
Error message for an unexpected property in a JSON object.
W
- writeTo(Object, OutputStream) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
Turns a value into JSON that is written to an output stream.
- writeTo(Object, Writer) - Method in class io.github.grumpystuff.grumpyjson.JsonEngine
-
Turns a value into JSON that is written to a writer.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form