Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- and(FieldErrorNode) - Method in class name.martingeisse.grumpyjson.FieldErrorNode
-
Groups two error sets together in a single new node.
- arguments() - Method in record class name.martingeisse.grumpyjson.util.ParameterizedTypeImpl
-
Returns the value of the
argumentsrecord component.
B
- BooleanConverter - Class in name.martingeisse.grumpyjson.builtin
-
A converter for the primitive type boolean and its boxed type,
Boolean. - BooleanConverter() - Constructor for class name.martingeisse.grumpyjson.builtin.BooleanConverter
-
Constructor
C
- clear() - Method in record class name.martingeisse.grumpyjson.JsonRegistries
-
Removes all registered converters from both registries.
- clear() - Method in class name.martingeisse.grumpyjson.registry.Registry
-
Removes all registered objects from this registry.
- ComponentInfo(RecordComponent) - Constructor for class name.martingeisse.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- create(Exception) - Static method in class name.martingeisse.grumpyjson.FieldErrorNode
-
Creates a node for a single error message without a field path.
- create(String) - Static method in class name.martingeisse.grumpyjson.FieldErrorNode
-
Creates a node for a single error message without a field path.
- createDefault() - Static method in record class name.martingeisse.grumpyjson.JsonRegistries
-
Creates a default serializer/deserializer registry pair with built-in auto-generation for record converters.
D
- deserialize(JsonElement, TypeToken<T>) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from a
JsonElement. - deserialize(JsonElement, Class<T>) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from a
JsonElement. - deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.BooleanConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.EnumConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.FieldMustBeNullConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableFieldConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalFieldConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.IntegerConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.JsonElementConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.ListConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.LocalDateConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.LocalDateTimeConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.LocalTimeConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.LongConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.MapConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.record.RecordConverter
- deserialize(JsonElement, Type) - Method in class name.martingeisse.grumpyjson.builtin.StringConverter
- deserialize(JsonElement, Type) - Method in interface name.martingeisse.grumpyjson.deserialize.JsonDeserializer
-
Converts a value from JSON.
- deserialize(JsonElement, Type) - Method in interface name.martingeisse.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 name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from a
JsonElement. - deserialize(InputStream, TypeToken<T>) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from an
InputStream. - deserialize(InputStream, Class<T>) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from an
InputStream. - deserialize(InputStream, Type) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from an
InputStream. - deserialize(Reader, TypeToken<T>) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from an
Reader. - deserialize(Reader, Class<T>) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from an
Reader. - deserialize(Reader, Type) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from an
Reader. - deserialize(String, TypeToken<T>) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from a
String. - deserialize(String, Class<T>) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from a
String. - deserialize(String, Type) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
deserializes JSON from a
String. - deserializeAbsent(Type) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- deserializeAbsent(Type) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalFieldConverter
- deserializeAbsent(Type) - Method in interface name.martingeisse.grumpyjson.deserialize.JsonDeserializer
-
Converts a value from an absent JSON fragment.
- deserializeAbsent(Type) - Method in interface name.martingeisse.grumpyjson.deserialize.JsonDeserializerProvider
-
Convenience method to find a deserializer for the specified
Type, then use it to generate a default value. - deserializerRegistry() - Method in record class name.martingeisse.grumpyjson.JsonRegistries
-
Returns the value of the
deserializerRegistryrecord component.
E
- ensureConfigurationPhase() - Method in class name.martingeisse.grumpyjson.registry.Sealable
-
Throws an
IllegalStateExceptionif this object has been sealed already. - ensureRunTimePhase() - Method in class name.martingeisse.grumpyjson.registry.Sealable
-
Throws an
IllegalStateExceptionif this object has not yet been sealed. - EnumConverter<T extends Enum<T>> - Class in name.martingeisse.grumpyjson.builtin
-
A converter for enum types.
- EnumConverter(Class<T>) - Constructor for class name.martingeisse.grumpyjson.builtin.EnumConverter
-
Constructor
- equals(Object) - Method in record class name.martingeisse.grumpyjson.builtin.helper_types.FieldMustBeNull
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class name.martingeisse.grumpyjson.builtin.helper_types.IgnoredField
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableField
- equals(Object) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalField
- equals(Object) - Method in record class name.martingeisse.grumpyjson.builtin.record.RecordConverter.Options
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class name.martingeisse.grumpyjson.FieldErrorNode.FlattenedError
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class name.martingeisse.grumpyjson.JsonRegistries
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class name.martingeisse.grumpyjson.util.ParameterizedTypeImpl
-
Indicates whether some other object is "equal to" this one.
- ExceptionMessages - Class in name.martingeisse.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 name.martingeisse.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 name.martingeisse.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
- FieldErrorNode - Class in name.martingeisse.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 name.martingeisse.grumpyjson
-
A node that specifies a single field nesting level for its subtree.
- FieldErrorNode.FlattenedError - Record Class in name.martingeisse.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 name.martingeisse.grumpyjson
-
A leaf node with an internal exception.
- FieldErrorNode.Message - Class in name.martingeisse.grumpyjson
-
A leaf node with an error message.
- FieldErrorNode.Siblings - Class in name.martingeisse.grumpyjson
-
A node that groups two subtrees together to allow the tree to store multiple errors.
- FieldMustBeNull - Record Class in name.martingeisse.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 name.martingeisse.grumpyjson.builtin.helper_types.FieldMustBeNull
-
Creates an instance of a
FieldMustBeNullrecord class. - FieldMustBeNullConverter - Class in name.martingeisse.grumpyjson.builtin.helper_types
-
The converter for
FieldMustBeNull. - FieldMustBeNullConverter() - Constructor for class name.martingeisse.grumpyjson.builtin.helper_types.FieldMustBeNullConverter
-
Constructor
- fieldPath() - Method in record class name.martingeisse.grumpyjson.FieldErrorNode.FlattenedError
-
Returns the value of the
fieldPathrecord component. - flatten() - Method in class name.martingeisse.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 name.martingeisse.grumpyjson.FieldErrorNode.Field
- flatten(List<FieldErrorNode.FlattenedError>, List<String>) - Method in class name.martingeisse.grumpyjson.FieldErrorNode
-
NOT PUBLIC API
- flatten(List<FieldErrorNode.FlattenedError>, List<String>) - Method in class name.martingeisse.grumpyjson.FieldErrorNode.InternalException
- flatten(List<FieldErrorNode.FlattenedError>, List<String>) - Method in class name.martingeisse.grumpyjson.FieldErrorNode.Message
- flatten(List<FieldErrorNode.FlattenedError>, List<String>) - Method in class name.martingeisse.grumpyjson.FieldErrorNode.Siblings
- FlattenedError(String, String...) - Constructor for record class name.martingeisse.grumpyjson.FieldErrorNode.FlattenedError
-
this constructor is very useful in unit tests
- FlattenedError(String, List<String>) - Constructor for record class name.martingeisse.grumpyjson.FieldErrorNode.FlattenedError
-
Constructor
G
- generateRegistrable(Class<?>) - Method in class name.martingeisse.grumpyjson.serialize.JsonSerializerRegistry
- generateRegistrable(Type) - Method in class name.martingeisse.grumpyjson.deserialize.JsonDeserializerRegistry
- generateRegistrable(K) - Method in class name.martingeisse.grumpyjson.registry.Registry
-
Auto-generates a registrable in a subclass-specific way.
- get(K) - Method in class name.martingeisse.grumpyjson.registry.Registry
-
Returns a registered object for the specified key, auto-generating it if necessary and possible.
- getActualTypeArguments() - Method in record class name.martingeisse.grumpyjson.util.ParameterizedTypeImpl
- getComponentInfos() - Method in class name.martingeisse.grumpyjson.builtin.record.RecordInfo
-
...
- getConcreteType(Type) - Method in class name.martingeisse.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- getConverter(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.record.RecordConverterFactory
-
NOT PUBLIC API
- getDeserializer(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.record.RecordConverterFactory
-
NOT PUBLIC API
- getDeserializer(Type) - Method in interface name.martingeisse.grumpyjson.deserialize.JsonDeserializerProvider
-
Returns a registered deserializer for the specified type, auto-generating it if necessary and possible.
- getDeserializer(Type) - Method in class name.martingeisse.grumpyjson.deserialize.JsonDeserializerRegistry
- getDeserializer(Type) - Method in record class name.martingeisse.grumpyjson.JsonRegistries
- getDeserializerRegistry() - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Getter method for the registry for deserializers.
- getErrorMessageForUnknownKey(Class<?>) - Method in class name.martingeisse.grumpyjson.serialize.JsonSerializerRegistry
- getErrorMessageForUnknownKey(Type) - Method in class name.martingeisse.grumpyjson.deserialize.JsonDeserializerRegistry
- getErrorMessageForUnknownKey(K) - Method in class name.martingeisse.grumpyjson.registry.Registry
-
Produces an error message that gets used in an exception for an unknown key.
- getException() - Method in class name.martingeisse.grumpyjson.FieldErrorNode.InternalException
-
Getter for the exception.
- getFieldErrorNode() - Method in exception class name.martingeisse.grumpyjson.deserialize.JsonDeserializationException
-
Getter for the
FieldErrorNodethat holds the actual error(s) - getFieldErrorNode() - Method in exception class name.martingeisse.grumpyjson.serialize.JsonSerializationException
-
Getter for the
FieldErrorNodethat holds the actual error(s) - getFirst() - Method in class name.martingeisse.grumpyjson.FieldErrorNode.Siblings
-
Getter for the first subtree.
- getGetter() - Method in class name.martingeisse.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- getMessage() - Method in exception class name.martingeisse.grumpyjson.deserialize.JsonDeserializationException
- getMessage() - Method in class name.martingeisse.grumpyjson.FieldErrorNode.Message
-
Getter for the error message
- getMessage() - Method in exception class name.martingeisse.grumpyjson.serialize.JsonSerializationException
- getName() - Method in class name.martingeisse.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- getName() - Method in class name.martingeisse.grumpyjson.FieldErrorNode.Field
-
Getter method for the field name under which the subtree is nested.
- getNode() - Method in class name.martingeisse.grumpyjson.FieldErrorNode.Field
-
Getter method for the local root node of the subtree which is nested under the field.
- getOwnerType() - Method in record class name.martingeisse.grumpyjson.util.ParameterizedTypeImpl
- getPathAsString() - Method in record class name.martingeisse.grumpyjson.FieldErrorNode.FlattenedError
-
Returns the field path as a dot-separated string
- getRawType() - Method in record class name.martingeisse.grumpyjson.util.ParameterizedTypeImpl
- getRecordClass() - Method in class name.martingeisse.grumpyjson.builtin.record.RecordInfo
-
...
- getRegistries() - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Getter method for the registries for converters.
- getSecond() - Method in class name.martingeisse.grumpyjson.FieldErrorNode.Siblings
-
Getter for the second subtree.
- getSerializer(Class<T>) - Method in class name.martingeisse.grumpyjson.builtin.record.RecordConverterFactory
-
NOT PUBLIC API
- getSerializer(Class<T>) - Method in record class name.martingeisse.grumpyjson.JsonRegistries
- getSerializer(Class<T>) - Method in interface name.martingeisse.grumpyjson.serialize.JsonSerializerProvider
-
Returns a registered serializer for the specified class, auto-generating it if necessary and possible.
- getSerializer(Class<T>) - Method in class name.martingeisse.grumpyjson.serialize.JsonSerializerRegistry
- getSerializerRegistry() - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Getter method for the registry for serializers.
- getType() - Method in class name.martingeisse.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- getValue() - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableField
-
Getter method for the value in this instance.
- getValue() - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalField
-
Getter method for the value in this instance.
- getValueOrNothingAsNull() - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalField
-
Getter method for the value in this instance.
- getValueOrNull() - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableField
-
Getter method for the value in this instance.
H
- hashCode() - Method in record class name.martingeisse.grumpyjson.builtin.helper_types.FieldMustBeNull
-
Returns a hash code value for this object.
- hashCode() - Method in record class name.martingeisse.grumpyjson.builtin.helper_types.IgnoredField
-
Returns a hash code value for this object.
- hashCode() - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableField
- hashCode() - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalField
- hashCode() - Method in record class name.martingeisse.grumpyjson.builtin.record.RecordConverter.Options
-
Returns a hash code value for this object.
- hashCode() - Method in record class name.martingeisse.grumpyjson.FieldErrorNode.FlattenedError
-
Returns a hash code value for this object.
- hashCode() - Method in record class name.martingeisse.grumpyjson.JsonRegistries
-
Returns a hash code value for this object.
- hashCode() - Method in record class name.martingeisse.grumpyjson.util.ParameterizedTypeImpl
-
Returns a hash code value for this object.
I
- IgnoredField - Record Class in name.martingeisse.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 name.martingeisse.grumpyjson.builtin.helper_types.IgnoredField
-
Creates an instance of a
IgnoredFieldrecord class. - IgnoredFieldConverter - Class in name.martingeisse.grumpyjson.builtin.helper_types
-
The converter for
IgnoredField. - IgnoredFieldConverter() - Constructor for class name.martingeisse.grumpyjson.builtin.helper_types.IgnoredFieldConverter
-
Constructor.
- ignoreUnknownProperties() - Method in record class name.martingeisse.grumpyjson.builtin.record.RecordConverter.Options
-
Returns the value of the
ignoreUnknownPropertiesrecord component. - in(String) - Method in class name.martingeisse.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 name.martingeisse.grumpyjson.builtin.helper_types.FieldMustBeNull
-
The shared instance of this class.
- INSTANCE - Static variable in record class name.martingeisse.grumpyjson.builtin.helper_types.IgnoredField
-
The shared instance of this class.
- IntegerConverter - Class in name.martingeisse.grumpyjson.builtin
-
A converter for the primitive type int and its boxed type,
Integer. - IntegerConverter() - Constructor for class name.martingeisse.grumpyjson.builtin.IntegerConverter
-
Constructor
- INTERNAL_ERROR - Static variable in class name.martingeisse.grumpyjson.ExceptionMessages
-
Generic error message for internal errors that we don't want to expose any details about.
- invokeConstructor(Object[]) - Method in class name.martingeisse.grumpyjson.builtin.record.RecordInfo
-
...
- invokeGetter(Object) - Method in class name.martingeisse.grumpyjson.builtin.record.RecordInfo.ComponentInfo
-
...
- isAbsent() - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalField
-
Checks if this instance is absent.
- isNonNull() - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableField
-
Checks if this instance is non-null.
- isNull() - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableField
-
Checks if this instance is null.
- isParameterizedType(Type, Class<?>, int) - Static method in class name.martingeisse.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 name.martingeisse.grumpyjson.builtin.helper_types.OptionalField
-
Checks if this instance is present.
- isSingleParameterizedType(Type, Class<?>) - Static method in class name.martingeisse.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 name.martingeisse.grumpyjson.util.StringUtil
-
...
- JsonDeserializationException - Exception Class in name.martingeisse.grumpyjson.deserialize
-
This exception type gets thrown when the incoming JSON does not match the expected structure.
- JsonDeserializationException(Exception) - Constructor for exception class name.martingeisse.grumpyjson.deserialize.JsonDeserializationException
-
Creates an exception for a single-field error caused by an exception from the deserializer.
- JsonDeserializationException(String) - Constructor for exception class name.martingeisse.grumpyjson.deserialize.JsonDeserializationException
-
Creates an exception for a single error message without a field path.
- JsonDeserializationException(FieldErrorNode) - Constructor for exception class name.martingeisse.grumpyjson.deserialize.JsonDeserializationException
-
Creates an exception for a
FieldErrorNodethat wraps one or more actual errors. - JsonDeserializer - Interface in name.martingeisse.grumpyjson.deserialize
-
Defines the conversion from JSON to a Java object / value for one or more types.
- JsonDeserializerProvider - Interface in name.martingeisse.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 name.martingeisse.grumpyjson.deserialize
-
This registry keeps the
JsonDeserializers used by aJsonEngine. - JsonDeserializerRegistry(RecordConverterFactory) - Constructor for class name.martingeisse.grumpyjson.deserialize.JsonDeserializerRegistry
-
NOT PUBLIC API
- JsonElementConverter - Class in name.martingeisse.grumpyjson.builtin
-
A converter for
JsonElement. - JsonElementConverter() - Constructor for class name.martingeisse.grumpyjson.builtin.JsonElementConverter
-
Constructor
- JsonEngine - Class in name.martingeisse.grumpyjson
-
This class is the main entry point into the JSON conversion system.
- JsonEngine() - Constructor for class name.martingeisse.grumpyjson.JsonEngine
-
Creates a new JSON engine with standard converters registered.
- JsonProviders - Interface in name.martingeisse.grumpyjson
-
Combines JsonSerializerProvider and JsonDeserializerProvider.
- JsonRegistries - Record Class in name.martingeisse.grumpyjson
-
Groups the
JsonSerializerRegistryandJsonDeserializerRegistrytogether. - JsonRegistries(JsonSerializerRegistry, JsonDeserializerRegistry) - Constructor for record class name.martingeisse.grumpyjson.JsonRegistries
-
Creates an instance of a
JsonRegistriesrecord class. - JsonSerializationException - Exception Class in name.martingeisse.grumpyjson.serialize
-
This exception type gets thrown when the state of the objects being serialized is not possible to map to JSON.
- JsonSerializationException(Exception) - Constructor for exception class name.martingeisse.grumpyjson.serialize.JsonSerializationException
-
Creates an exception for a single-field error caused by an exception from the serializer.
- JsonSerializationException(String) - Constructor for exception class name.martingeisse.grumpyjson.serialize.JsonSerializationException
-
Creates an exception for a single-field error message without a field path.
- JsonSerializationException(FieldErrorNode) - Constructor for exception class name.martingeisse.grumpyjson.serialize.JsonSerializationException
-
Creates an exception for a
FieldErrorNodethat wraps one or more actual errors. - JsonSerializer<T> - Interface in name.martingeisse.grumpyjson.serialize
-
Defines the conversion of Java objects to JSON for one or more classes.
- JsonSerializerProvider - Interface in name.martingeisse.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 name.martingeisse.grumpyjson.serialize
-
This registry keeps the
JsonSerializers used by aJsonEngine. - JsonSerializerRegistry(RecordConverterFactory) - Constructor for class name.martingeisse.grumpyjson.serialize.JsonSerializerRegistry
-
NOT PUBLIC API
L
- ListConverter - Class in name.martingeisse.grumpyjson.builtin
-
This converter handles type List<...> for deserialization, and the List interface and its implementing classes for serialization.
- ListConverter(JsonRegistries) - Constructor for class name.martingeisse.grumpyjson.builtin.ListConverter
-
Constructor.
- ListUtil - Class in name.martingeisse.grumpyjson.util
-
NOT PUBLIC API
- LocalDateConverter - Class in name.martingeisse.grumpyjson.builtin
-
A converter for
LocalDate. - LocalDateConverter() - Constructor for class name.martingeisse.grumpyjson.builtin.LocalDateConverter
-
Constructor
- LocalDateTimeConverter - Class in name.martingeisse.grumpyjson.builtin
-
A converter for
LocalDateTime. - LocalDateTimeConverter() - Constructor for class name.martingeisse.grumpyjson.builtin.LocalDateTimeConverter
-
Constructor
- LocalTimeConverter - Class in name.martingeisse.grumpyjson.builtin
-
A converter for
LocalTime. - LocalTimeConverter() - Constructor for class name.martingeisse.grumpyjson.builtin.LocalTimeConverter
-
Constructor
- LongConverter - Class in name.martingeisse.grumpyjson.builtin
-
A converter for the primitive type long and its boxed type,
Long. - LongConverter() - Constructor for class name.martingeisse.grumpyjson.builtin.LongConverter
-
Constructor
M
- MapConverter - Class in name.martingeisse.grumpyjson.builtin
-
This converter handles type Map<...> for deserialization, and the Map interface and its implementing classes for serialization.
- MapConverter(JsonRegistries) - Constructor for class name.martingeisse.grumpyjson.builtin.MapConverter
-
Constructor.
- message() - Method in record class name.martingeisse.grumpyjson.FieldErrorNode.FlattenedError
-
Returns the value of the
messagerecord component. - MISSING_PROPERTY - Static variable in class name.martingeisse.grumpyjson.ExceptionMessages
-
Error message for an missing property in a JSON object.
N
- name.martingeisse.grumpyjson - package name.martingeisse.grumpyjson
- name.martingeisse.grumpyjson.builtin - package name.martingeisse.grumpyjson.builtin
- name.martingeisse.grumpyjson.builtin.helper_types - package name.martingeisse.grumpyjson.builtin.helper_types
- name.martingeisse.grumpyjson.builtin.record - package name.martingeisse.grumpyjson.builtin.record
- name.martingeisse.grumpyjson.deserialize - package name.martingeisse.grumpyjson.deserialize
- name.martingeisse.grumpyjson.registry - package name.martingeisse.grumpyjson.registry
- name.martingeisse.grumpyjson.serialize - package name.martingeisse.grumpyjson.serialize
- name.martingeisse.grumpyjson.util - package name.martingeisse.grumpyjson.util
- NotRegisteredException - Exception Class in name.martingeisse.grumpyjson.registry
-
Thrown if the registrable for an unknown key is fetched from a
Registry. - NotRegisteredException() - Constructor for exception class name.martingeisse.grumpyjson.registry.NotRegisteredException
-
Constructor.
- NotRegisteredException(String) - Constructor for exception class name.martingeisse.grumpyjson.registry.NotRegisteredException
-
Constructor.
- NotRegisteredException(String, Throwable) - Constructor for exception class name.martingeisse.grumpyjson.registry.NotRegisteredException
-
Constructor.
- NotRegisteredException(Throwable) - Constructor for exception class name.martingeisse.grumpyjson.registry.NotRegisteredException
-
Constructor.
- NullableField<T> - Class in name.martingeisse.grumpyjson.builtin.helper_types
-
This can be used to wrap a property and allow JSON null instead of an actual value.
- NullableFieldConverter - Class in name.martingeisse.grumpyjson.builtin.helper_types
-
The converter for
NullableField. - NullableFieldConverter(JsonRegistries) - Constructor for class name.martingeisse.grumpyjson.builtin.helper_types.NullableFieldConverter
-
Constructor.
O
- ofNothing() - Static method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalField
-
Creates a new instance that is absent.
- ofNull() - Static method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableField
-
Creates a new instance that is null.
- ofValue(T) - Static method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableField
-
Creates a new instance that is non-null, i.e. has a value.
- ofValue(T) - Static method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalField
-
Creates a new instance that is present, i.e. has a value.
- ofValueOrNull(T) - Static method in class name.martingeisse.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 name.martingeisse.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 name.martingeisse.grumpyjson.registry.Registry
- onSeal() - Method in class name.martingeisse.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 name.martingeisse.grumpyjson.builtin.helper_types
-
This can be used to wrap a property and allow it to be absent in JSON.
- OptionalFieldConverter - Class in name.martingeisse.grumpyjson.builtin.helper_types
-
The converter for
OptionalField. - OptionalFieldConverter(JsonRegistries) - Constructor for class name.martingeisse.grumpyjson.builtin.helper_types.OptionalFieldConverter
-
Constructor.
- Options(boolean) - Constructor for record class name.martingeisse.grumpyjson.builtin.record.RecordConverter.Options
-
Creates an instance of a
Optionsrecord class. - orElse(T) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableField
-
Returns this field's value if
NullableField.isNonNull(), otherwise the argument. - orElse(T) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalField
-
Returns this field's value if
OptionalField.isPresent(), otherwise the argument. - orElseGet(Supplier<T>) - Method in class name.martingeisse.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 name.martingeisse.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 name.martingeisse.grumpyjson.util.ParameterizedTypeImpl
-
Returns the value of the
ownerrecord component.
P
- ParameterizedTypeImpl - Record Class in name.martingeisse.grumpyjson.util
-
NOT PUBLIC API
- ParameterizedTypeImpl(Type, Type, Type...) - Constructor for record class name.martingeisse.grumpyjson.util.ParameterizedTypeImpl
-
NOT PUBLIC API
R
- raw() - Method in record class name.martingeisse.grumpyjson.util.ParameterizedTypeImpl
-
Returns the value of the
rawrecord component. - RecordConverter<T> - Class in name.martingeisse.grumpyjson.builtin.record
-
Maps a record class to and from a JSON object.
- RecordConverter(Class<T>, JsonRegistries) - Constructor for class name.martingeisse.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>, JsonRegistries, RecordConverter.Options) - Constructor for class name.martingeisse.grumpyjson.builtin.record.RecordConverter
-
This constructor adds extra options.
- RecordConverter.Options - Record Class in name.martingeisse.grumpyjson.builtin.record
-
Controls the behavior of a
RecordConverter. - RecordConverterFactory - Class in name.martingeisse.grumpyjson.builtin.record
-
NOT PUBLIC API
- RecordConverterFactory() - Constructor for class name.martingeisse.grumpyjson.builtin.record.RecordConverterFactory
-
NOT PUBLIC API
- RecordInfo - Class in name.martingeisse.grumpyjson.builtin.record
-
NOT PUBLIC API
- RecordInfo(Class<?>) - Constructor for class name.martingeisse.grumpyjson.builtin.record.RecordInfo
-
NOT PUBLIC API
- RecordInfo.ComponentInfo - Class in name.martingeisse.grumpyjson.builtin.record
-
NOT PUBLIC API
- register(V) - Method in class name.martingeisse.grumpyjson.registry.Registry
-
Registers a registrable with this registry.
- registerDeserializer(JsonDeserializer) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Registers the specified deserializer.
- registerDeserializer(JsonDeserializer) - Method in record class name.martingeisse.grumpyjson.JsonRegistries
-
Registers the specified deserializer.
- registerDualConverter(T) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Registers the specified dual converter.
- registerDualConverter(T) - Method in record class name.martingeisse.grumpyjson.JsonRegistries
-
Registers the specified dual converter.
- registerSerializer(JsonSerializer<?>) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Registers the specified serializer.
- registerSerializer(JsonSerializer<?>) - Method in record class name.martingeisse.grumpyjson.JsonRegistries
-
Registers the specified serializer.
- registrableSupports(JsonDeserializer, Type) - Method in class name.martingeisse.grumpyjson.deserialize.JsonDeserializerRegistry
- registrableSupports(JsonSerializer<?>, Class<?>) - Method in class name.martingeisse.grumpyjson.serialize.JsonSerializerRegistry
- registrableSupports(V, K) - Method in class name.martingeisse.grumpyjson.registry.Registry
-
Checks whether the specified registrable supports the specified key.
- Registry<K,
V> - Class in name.martingeisse.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 name.martingeisse.grumpyjson.registry.Registry
-
Constructor.
- replaceTypeVariables(Type, Map<String, Type>) - Static method in class name.martingeisse.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 name.martingeisse.grumpyjson.util.ListUtil
-
NOT PUBLIC API
S
- seal() - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Seals this JSON engine, moving from the configuration phase to the run-time phase.
- seal() - Method in record class name.martingeisse.grumpyjson.JsonRegistries
-
Seals the registries, moving from the configuration phase to the run-time phase.
- seal() - Method in class name.martingeisse.grumpyjson.registry.Sealable
-
Seals this object, moving from the configuration phase to the run-time phase.
- Sealable - Class in name.martingeisse.grumpyjson.registry
-
Base class for everything whose lifecycle is divided into configuration phase and run-time phase.
- Sealable() - Constructor for class name.martingeisse.grumpyjson.registry.Sealable
-
Constructor
- serialize(JsonElement) - Method in class name.martingeisse.grumpyjson.builtin.JsonElementConverter
- serialize(Boolean) - Method in class name.martingeisse.grumpyjson.builtin.BooleanConverter
- serialize(Integer) - Method in class name.martingeisse.grumpyjson.builtin.IntegerConverter
- serialize(Long) - Method in class name.martingeisse.grumpyjson.builtin.LongConverter
- serialize(Object) - Method in interface name.martingeisse.grumpyjson.serialize.JsonSerializerProvider
-
Turns a value into a
JsonElement. - serialize(String) - Method in class name.martingeisse.grumpyjson.builtin.StringConverter
- serialize(LocalDate) - Method in class name.martingeisse.grumpyjson.builtin.LocalDateConverter
- serialize(LocalDateTime) - Method in class name.martingeisse.grumpyjson.builtin.LocalDateTimeConverter
- serialize(LocalTime) - Method in class name.martingeisse.grumpyjson.builtin.LocalTimeConverter
- serialize(List<?>) - Method in class name.martingeisse.grumpyjson.builtin.ListConverter
- serialize(Map<?, ?>) - Method in class name.martingeisse.grumpyjson.builtin.MapConverter
- serialize(FieldMustBeNull) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.FieldMustBeNullConverter
- serialize(IgnoredField) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- serialize(NullableField<?>) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableFieldConverter
- serialize(OptionalField<?>) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalFieldConverter
- serialize(T) - Method in class name.martingeisse.grumpyjson.builtin.EnumConverter
- serialize(T) - Method in class name.martingeisse.grumpyjson.builtin.record.RecordConverter
- serialize(T) - Method in interface name.martingeisse.grumpyjson.serialize.JsonSerializer
-
Converts a value to JSON.
- serializeOptional(Object) - Method in interface name.martingeisse.grumpyjson.serialize.JsonSerializerProvider
-
Turns a value into an optional
JsonElement. - serializeOptional(IgnoredField) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- serializeOptional(OptionalField<?>) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalFieldConverter
- serializeOptional(T) - Method in interface name.martingeisse.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 name.martingeisse.grumpyjson.JsonRegistries
-
Returns the value of the
serializerRegistryrecord component. - serializeToString(Object) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Turns a value into a JSON string.
- setRegistries(JsonRegistries) - Method in class name.martingeisse.grumpyjson.builtin.record.RecordConverterFactory
-
NOT PUBLIC API
- StringConverter - Class in name.martingeisse.grumpyjson.builtin
-
A converter for type
String. - StringConverter() - Constructor for class name.martingeisse.grumpyjson.builtin.StringConverter
-
Constructor
- StringUtil - Class in name.martingeisse.grumpyjson.util
-
NOT PUBLIC API
- supports(K) - Method in class name.martingeisse.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 name.martingeisse.grumpyjson.builtin.BooleanConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.EnumConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.FieldMustBeNullConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableFieldConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalFieldConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.IntegerConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.JsonElementConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.ListConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.LocalDateConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.LocalDateTimeConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.LocalTimeConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.LongConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.MapConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.record.RecordConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.builtin.StringConverter
- supportsClassForSerialization(Class<?>) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Checks whether the specified class is supported for serialization by this engine
- supportsClassForSerialization(Class<?>) - Method in record class name.martingeisse.grumpyjson.JsonRegistries
- supportsClassForSerialization(Class<?>) - Method in interface name.martingeisse.grumpyjson.serialize.JsonSerializer
-
Checks if this serializer supports the specified class.
- supportsClassForSerialization(Class<?>) - Method in interface name.martingeisse.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 name.martingeisse.grumpyjson.serialize.JsonSerializerRegistry
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.BooleanConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.EnumConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.FieldMustBeNullConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.IgnoredFieldConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableFieldConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalFieldConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.IntegerConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.JsonElementConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.ListConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.LocalDateConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.LocalDateTimeConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.LocalTimeConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.LongConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.MapConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.record.RecordConverter
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.builtin.StringConverter
- supportsTypeForDeserialization(Type) - Method in interface name.martingeisse.grumpyjson.deserialize.JsonDeserializer
-
Checks if this deserializer supports the specified type.
- supportsTypeForDeserialization(Type) - Method in interface name.martingeisse.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 name.martingeisse.grumpyjson.deserialize.JsonDeserializerRegistry
- supportsTypeForDeserialization(Type) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Checks whether the specified type is supported for deserialization by this engine
- supportsTypeForDeserialization(Type) - Method in record class name.martingeisse.grumpyjson.JsonRegistries
T
- toJsonElement(Object) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Turns a value into a
JsonElement. - toString() - Method in record class name.martingeisse.grumpyjson.builtin.helper_types.FieldMustBeNull
-
Returns a string representation of this record class.
- toString() - Method in record class name.martingeisse.grumpyjson.builtin.helper_types.IgnoredField
-
Returns a string representation of this record class.
- toString() - Method in class name.martingeisse.grumpyjson.builtin.helper_types.NullableField
- toString() - Method in class name.martingeisse.grumpyjson.builtin.helper_types.OptionalField
- toString() - Method in record class name.martingeisse.grumpyjson.builtin.record.RecordConverter.Options
-
Returns a string representation of this record class.
- toString() - Method in record class name.martingeisse.grumpyjson.FieldErrorNode.FlattenedError
-
Returns a string representation of this record class.
- toString() - Method in class name.martingeisse.grumpyjson.FieldErrorNode
-
This method turns the node to a string for simple output / debugging purposes.
- toString() - Method in record class name.martingeisse.grumpyjson.JsonRegistries
-
Returns a string representation of this record class.
- toString() - Method in record class name.martingeisse.grumpyjson.util.ParameterizedTypeImpl
-
Returns a string representation of this record class.
- TypeUtil - Class in name.martingeisse.grumpyjson.util
-
NOT PUBLIC API
U
- UNEXPECTED_PROPERTY - Static variable in class name.martingeisse.grumpyjson.ExceptionMessages
-
Error message for an unexpected property in a JSON object.
W
- writeTo(Object, OutputStream) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Turns a value into JSON that is written to an output stream.
- writeTo(Object, Writer) - Method in class name.martingeisse.grumpyjson.JsonEngine
-
Turns a value into JSON that is written to a writer.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form