Record Class BeanSerdeShape
java.lang.Object
java.lang.Record
io.micronaut.serde.processor.sourcegen.beans.BeanSerdeShape
- Record Components:
defaultConstructor- The selected default constructor.serializationProperties- Bean properties written by the generated serializer, in write order.deserializationProperties- Bean properties read by the generated deserializer.ignoredDeserializationNames- Serialized names the generated deserializer skips silently: writable properties excluded from deserialization through configuration.ignoreUnknown- The type-level unknown property policy, ornullwhen the runtime configuration decides.
public record BeanSerdeShape(io.micronaut.inject.ast.MethodElement defaultConstructor, List<BeanSerdeShape.BeanProperty> serializationProperties, List<BeanSerdeShape.BeanProperty> deserializationProperties, List<String> ignoredDeserializationNames, @Nullable Boolean ignoreUnknown)
extends Record
Shape model for bean-based source generation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordBean property metadata used by source generation. -
Constructor Summary
ConstructorsConstructorDescriptionBeanSerdeShape(io.micronaut.inject.ast.MethodElement defaultConstructor, List<BeanSerdeShape.BeanProperty> serializationProperties, List<BeanSerdeShape.BeanProperty> deserializationProperties, List<String> ignoredDeserializationNames, @Nullable Boolean ignoreUnknown) Creates an instance of aBeanSerdeShaperecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.inject.ast.MethodElementReturns the value of thedefaultConstructorrecord component.Returns the value of thedeserializationPropertiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theignoredDeserializationNamesrecord component.@Nullable BooleanReturns the value of theignoreUnknownrecord component.Returns the value of theserializationPropertiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BeanSerdeShape
public BeanSerdeShape(io.micronaut.inject.ast.MethodElement defaultConstructor, List<BeanSerdeShape.BeanProperty> serializationProperties, List<BeanSerdeShape.BeanProperty> deserializationProperties, List<String> ignoredDeserializationNames, @Nullable Boolean ignoreUnknown) Creates an instance of aBeanSerdeShaperecord class.- Parameters:
defaultConstructor- the value for thedefaultConstructorrecord componentserializationProperties- the value for theserializationPropertiesrecord componentdeserializationProperties- the value for thedeserializationPropertiesrecord componentignoredDeserializationNames- the value for theignoredDeserializationNamesrecord componentignoreUnknown- the value for theignoreUnknownrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
defaultConstructor
public io.micronaut.inject.ast.MethodElement defaultConstructor()Returns the value of thedefaultConstructorrecord component.- Returns:
- the value of the
defaultConstructorrecord component
-
serializationProperties
Returns the value of theserializationPropertiesrecord component.- Returns:
- the value of the
serializationPropertiesrecord component
-
deserializationProperties
Returns the value of thedeserializationPropertiesrecord component.- Returns:
- the value of the
deserializationPropertiesrecord component
-
ignoredDeserializationNames
Returns the value of theignoredDeserializationNamesrecord component.- Returns:
- the value of the
ignoredDeserializationNamesrecord component
-
ignoreUnknown
Returns the value of theignoreUnknownrecord component.- Returns:
- the value of the
ignoreUnknownrecord component
-