From 161f3d3c446fb32e19de05967df83003fc2fe173 Mon Sep 17 00:00:00 2001 From: Marc Knaup Date: Sat, 19 Oct 2019 17:38:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=201.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/gradle.xml | 1 - README.md | 305 ++++++++-------- annotation-processor/build.gradle.kts | 24 +- .../sources/AnnotationProcessor.kt | 2 +- .../sources/collection/CollectionPhase.kt | 88 ++--- .../sources/collection/CollectionResult.kt | 22 +- .../sources/generation/CodecGenerator.kt | 42 +-- .../generation/CodecProviderGenerator.kt | 10 +- .../sources/generation/GenerationPhase.kt | 2 +- .../sources/processing/ProcessingPhase.kt | 86 ++--- .../sources/processing/ProcessingResult.kt | 4 +- .../sources/utility/AnnotatedConstruct.kt | 4 +- .../sources/utility/AnnotationMirror.kt | 2 +- annotation-processor/sources/utility/Any.kt | 2 +- .../sources/utility/Element.kt | 2 +- .../sources/utility/ErrorLogger.kt | 2 +- .../sources/utility/ExecutableElement.kt | 2 +- .../sources/utility/KotlinpoetTypeNames.kt | 2 +- .../sources/utility/MQualifiedTypeName.kt | 4 +- .../sources/utility/MTypeReference.kt | 4 +- .../sources/utility/TypeMirror.kt | 2 +- .../sources/utility/TypeNames.kt | 12 +- .../sources/utility/TypeResolver.kt | 2 +- .../CustomContextCodecProvider.kt | 16 +- .../1/input/customProperties/CustomContext.kt | 12 +- .../customProperties/DifferentPackage.kt | 12 +- .../DifferentPackageExtensions.kt | 6 +- .../1/input/customProperties/SamePackage.kt | 12 +- .../tests/cases/1/input/json/classes/Class.kt | 4 +- .../cases/1/input/json/classes/DataClass.kt | 4 +- .../1/input/json/classes/GenericClass.kt | 4 +- .../cases/1/input/json/classes/InlineClass.kt | 4 +- .../cases/1/input/json/classes/Object.kt | 4 +- .../cases/1/input/json/codecName/Automatic.kt | 6 +- .../cases/1/input/json/codecName/Custom.kt | 6 +- .../cases/1/input/json/codecName/Default.kt | 4 +- .../input/json/codecPackageName/Automatic.kt | 6 +- .../json/codecPackageName/AutomaticRoot.kt | 6 +- .../1/input/json/codecPackageName/Custom.kt | 4 +- .../input/json/codecPackageName/CustomRoot.kt | 4 +- .../1/input/json/codecPackageName/Default.kt | 4 +- .../json/codecPackageName/DefaultRoot.kt | 4 +- .../json/codecVisibility/AutomaticInternal.kt | 6 +- .../AutomaticInternalForContainedClass.kt | 6 +- .../json/codecVisibility/AutomaticPublic.kt | 6 +- .../json/codecVisibility/DefaultInternal.kt | 4 +- .../1/input/json/codecVisibility/Internal.kt | 6 +- .../1/input/json/codecVisibility/Public.kt | 6 +- .../json/decoding/AnnotatedConstructor.kt | 8 +- .../decoding/AutomaticAnnotatedConstructor.kt | 8 +- .../1/input/json/decoding/AutomaticObject.kt | 6 +- .../decoding/AutomaticPrimaryConstructor.kt | 6 +- ...aticSecondaryConstructorPrimaryExcluded.kt | 8 +- ...SecondaryConstructorPrimaryInaccessible.kt | 6 +- ...icSecondaryConstructorPrimaryNotPresent.kt | 6 +- .../decoding/ConstructorParameterOrder.kt | 6 +- .../decoding/DefaultAnnotatedConstructor.kt | 6 +- .../1/input/json/decoding/DefaultObject.kt | 4 +- .../decoding/DefaultPrimaryConstructor.kt | 4 +- ...aultSecondaryConstructorPrimaryExcluded.kt | 6 +- ...SecondaryConstructorPrimaryInaccessible.kt | 4 +- ...ltSecondaryConstructorPrimaryNotPresent.kt | 4 +- .../tests/cases/1/input/json/decoding/None.kt | 6 +- .../input/json/decoding/PrimaryConstructor.kt | 6 +- .../1/input/json/encoding/AllProperties.kt | 12 +- .../json/encoding/AnnotatedProperties.kt | 12 +- .../cases/1/input/json/encoding/Automatic.kt | 12 +- .../cases/1/input/json/encoding/Default.kt | 10 +- .../tests/cases/1/input/json/encoding/None.kt | 6 +- .../representation/AutomaticSingleValue.kt | 6 +- .../representation/AutomaticStructured.kt | 6 +- .../json/representation/DefaultSingleValue.kt | 4 +- .../json/representation/DefaultStructured.kt | 4 +- .../input/json/representation/SingleValue.kt | 6 +- .../json/representation/SingleValueGeneric.kt | 6 +- .../representation/SingleValueNullable.kt | 6 +- .../1/input/json/representation/Structured.kt | 6 +- .../representation/StructuredValueGeneric.kt | 6 +- .../input/property/defaultValue/Automatic.kt | 4 +- .../property/defaultValue/AutomaticGeneric.kt | 4 +- .../property/serializedName/Automatic.kt | 8 +- .../1/input/property/serializedName/Custom.kt | 8 +- .../input/property/serializedName/Default.kt | 8 +- .../output-expected/AutomaticRootJSONCodec.kt | 55 --- .../output-expected/AutomaticRootJsonCodec.kt | 55 +++ .../1/output-expected/CustomRootJSONCodec.kt | 56 --- .../1/output-expected/CustomRootJsonCodec.kt | 56 +++ .../1/output-expected/DefaultRootJSONCodec.kt | 55 --- .../1/output-expected/DefaultRootJsonCodec.kt | 55 +++ .../GeneratedCustomContextCodecProvider.kt | 82 ++--- .../CustomContextJSONCodec.kt | 60 ---- .../CustomContextJsonCodec.kt | 60 ++++ .../DifferentPackageJSONCodec.kt | 63 ---- .../DifferentPackageJsonCodec.kt | 63 ++++ .../customProperties/SamePackageJSONCodec.kt | 60 ---- .../customProperties/SamePackageJsonCodec.kt | 60 ++++ .../externalType/ExternalPairCodec.kt | 64 ++-- .../externalType/KT30280JSONCodec.kt | 28 -- .../externalType/KT30280JsonCodec.kt | 28 ++ .../externalType/KT30280PrimitiveJSONCodec.kt | 29 -- .../externalType/KT30280PrimitiveJsonCodec.kt | 29 ++ .../json/classes/ClassJSONCodec.kt | 56 --- .../json/classes/ClassJsonCodec.kt | 56 +++ .../json/classes/DataClassJSONCodec.kt | 57 --- .../json/classes/DataClassJsonCodec.kt | 57 +++ .../json/classes/GenericClassJSONCodec.kt | 66 ---- .../json/classes/GenericClassJsonCodec.kt | 66 ++++ .../json/classes/InlineClassJSONCodec.kt | 27 -- .../json/classes/InlineClassJsonCodec.kt | 27 ++ .../json/classes/ObjectJSONCodec.kt | 25 -- .../json/classes/ObjectJsonCodec.kt | 25 ++ .../json/codecName/AutomaticJSONCodec.kt | 57 --- .../json/codecName/AutomaticJsonCodec.kt | 57 +++ .../json/codecName/CustomizedJSONCodec.kt | 56 --- .../json/codecName/CustomizedJsonCodec.kt | 56 +++ .../json/codecName/DefaultJSONCodec.kt | 56 --- .../json/codecName/DefaultJsonCodec.kt | 56 +++ .../codecPackageName/AutomaticJSONCodec.kt | 57 --- .../codecPackageName/AutomaticJsonCodec.kt | 57 +++ .../json/codecPackageName/DefaultJSONCodec.kt | 56 --- .../json/codecPackageName/DefaultJsonCodec.kt | 56 +++ .../customized/CustomJSONCodec.kt | 57 --- .../customized/CustomJsonCodec.kt | 57 +++ ...rContainedClass_ContainedClassJSONCodec.kt | 60 ---- ...rContainedClass_ContainedClassJsonCodec.kt | 60 ++++ .../AutomaticInternalJSONCodec.kt | 58 --- .../AutomaticInternalJsonCodec.kt | 58 +++ .../AutomaticPublicJSONCodec.kt | 57 --- .../AutomaticPublicJsonCodec.kt | 57 +++ .../DefaultInternalJSONCodec.kt | 58 --- .../DefaultInternalJsonCodec.kt | 58 +++ .../json/codecVisibility/InternalJSONCodec.kt | 57 --- .../json/codecVisibility/InternalJsonCodec.kt | 57 +++ .../json/codecVisibility/PublicJSONCodec.kt | 56 --- .../json/codecVisibility/PublicJsonCodec.kt | 56 +++ .../decoding/AnnotatedConstructorJSONCodec.kt | 64 ---- .../decoding/AnnotatedConstructorJsonCodec.kt | 64 ++++ .../AutomaticAnnotatedConstructorJSONCodec.kt | 64 ---- .../AutomaticAnnotatedConstructorJsonCodec.kt | 64 ++++ .../json/decoding/AutomaticObjectJSONCodec.kt | 25 -- .../json/decoding/AutomaticObjectJsonCodec.kt | 25 ++ .../AutomaticPrimaryConstructorJSONCodec.kt | 59 --- .../AutomaticPrimaryConstructorJsonCodec.kt | 59 +++ ...daryConstructorPrimaryExcludedJSONCodec.kt | 65 ---- ...daryConstructorPrimaryExcludedJsonCodec.kt | 65 ++++ ...ConstructorPrimaryInaccessibleJSONCodec.kt | 65 ---- ...ConstructorPrimaryInaccessibleJsonCodec.kt | 65 ++++ ...ryConstructorPrimaryNotPresentJSONCodec.kt | 65 ---- ...ryConstructorPrimaryNotPresentJsonCodec.kt | 65 ++++ ... => ConstructorParameterOrderJsonCodec.kt} | 40 +-- .../DefaultAnnotatedConstructorJSONCodec.kt | 64 ---- .../DefaultAnnotatedConstructorJsonCodec.kt | 64 ++++ .../json/decoding/DefaultObjectJSONCodec.kt | 25 -- .../json/decoding/DefaultObjectJsonCodec.kt | 25 ++ .../DefaultPrimaryConstructorJSONCodec.kt | 59 --- .../DefaultPrimaryConstructorJsonCodec.kt | 59 +++ ...daryConstructorPrimaryExcludedJSONCodec.kt | 65 ---- ...daryConstructorPrimaryExcludedJsonCodec.kt | 65 ++++ ...ConstructorPrimaryInaccessibleJSONCodec.kt | 65 ---- ...ConstructorPrimaryInaccessibleJsonCodec.kt | 65 ++++ ...ryConstructorPrimaryNotPresentJSONCodec.kt | 65 ---- ...ryConstructorPrimaryNotPresentJsonCodec.kt | 65 ++++ .../json/decoding/NoneJSONCodec.kt | 25 -- .../json/decoding/NoneJsonCodec.kt | 25 ++ .../decoding/PrimaryConstructorJSONCodec.kt | 59 --- .../decoding/PrimaryConstructorJsonCodec.kt | 59 +++ .../json/encoding/AllPropertiesJSONCodec.kt | 62 ---- .../json/encoding/AllPropertiesJsonCodec.kt | 62 ++++ .../encoding/AnnotatedPropertiesJSONCodec.kt | 62 ---- .../encoding/AnnotatedPropertiesJsonCodec.kt | 62 ++++ .../json/encoding/AutomaticJSONCodec.kt | 61 ---- .../json/encoding/AutomaticJsonCodec.kt | 61 ++++ .../json/encoding/DefaultJSONCodec.kt | 60 ---- .../json/encoding/DefaultJsonCodec.kt | 60 ++++ .../json/encoding/NoneJSONCodec.kt | 37 -- .../json/encoding/NoneJsonCodec.kt | 37 ++ .../AutomaticSingleValueJSONCodec.kt | 29 -- .../AutomaticSingleValueJsonCodec.kt | 29 ++ .../AutomaticStructuredJSONCodec.kt | 59 --- .../AutomaticStructuredJsonCodec.kt | 59 +++ .../DefaultSingleValueJSONCodec.kt | 59 --- .../DefaultSingleValueJsonCodec.kt | 59 +++ .../DefaultStructuredJSONCodec.kt | 58 --- .../DefaultStructuredJsonCodec.kt | 58 +++ .../SingleValueGenericJSONCodec.kt | 30 -- .../SingleValueGenericJsonCodec.kt | 30 ++ .../representation/SingleValueJSONCodec.kt | 27 -- .../representation/SingleValueJsonCodec.kt | 27 ++ .../SingleValueNullableJSONCodec.kt | 29 -- .../SingleValueNullableJsonCodec.kt | 29 ++ .../representation/StructuredJSONCodec.kt | 57 --- .../representation/StructuredJsonCodec.kt | 57 +++ .../StructuredValueGenericJSONCodec.kt | 59 --- .../StructuredValueGenericJsonCodec.kt | 59 +++ ...NCodec.kt => AutomaticGenericJsonCodec.kt} | 66 ++-- ...aticJSONCodec.kt => AutomaticJsonCodec.kt} | 66 ++-- .../serializedName/AutomaticJSONCodec.kt | 58 --- .../serializedName/AutomaticJsonCodec.kt | 58 +++ .../serializedName/CustomJSONCodec.kt | 57 --- .../serializedName/CustomJsonCodec.kt | 57 +++ .../serializedName/DefaultJSONCodec.kt | 57 --- .../serializedName/DefaultJsonCodec.kt | 57 +++ .../StandardContextCodecProvider.kt | 6 +- .../GeneratedStandardContextCodecProvider.kt | 8 +- .../tests/sources/CaseTests.kt | 4 +- annotations/build.gradle.kts | 4 +- annotations/sources/{JSON.kt => Json.kt} | 100 +++--- basic/build.gradle.kts | 4 +- basic/sources/JSONDepth.kt | 8 - basic/sources/JSONParser.kt | 70 ---- basic/sources/JSONSerializer.kt | 23 -- basic/sources/JsonDepth.kt | 8 + .../{JSONException.kt => JsonException.kt} | 24 +- basic/sources/JsonParser.kt | 70 ++++ basic/sources/{JSONPath.kt => JsonPath.kt} | 8 +- .../sources/{JSONReader.kt => JsonReader.kt} | 126 +++---- basic/sources/JsonSerializer.kt | 23 ++ basic/sources/{JSONToken.kt => JsonToken.kt} | 6 +- .../sources/{JSONWriter.kt => JsonWriter.kt} | 278 +++++++------- .../sources/implementations/StandardParser.kt | 40 +-- .../sources/implementations/StandardReader.kt | 340 +++++++++--------- .../implementations/StandardSerializer.kt | 10 +- .../sources/implementations/StandardWriter.kt | 84 ++--- .../{JSONCharacter.kt => JsonCharacter.kt} | 132 +++---- basic/sources/utility/TextInput.kt | 8 +- basic/tests/sources/CompanionTest.kt | 12 +- ...NCharacterTest.kt => JsonCharacterTest.kt} | 28 +- .../{JSONReaderTest.kt => JsonReaderTest.kt} | 4 +- .../{JSONTestSuite.kt => JsonTestSuite.kt} | 12 +- .../{JSONWriterTest.kt => JsonWriterTest.kt} | 10 +- .../tests/sources/StandardReaderAcceptTest.kt | 103 +++--- .../tests/sources/StandardReaderRejectTest.kt | 10 +- .../tests/sources/StandardWriterAcceptTest.kt | 6 +- .../tests/sources/StandardWriterRejectTest.kt | 8 +- ...{DummyJSONReader.kt => DummyJsonReader.kt} | 14 +- ...{DummyJSONWriter.kt => DummyJsonWriter.kt} | 12 +- build.gradle.kts | 30 +- buildSrc/sources/configure-kotlinx.kt | 14 - coding-jdk8/build.gradle.kts | 5 +- .../sources/CodingImplementationsJava8.kt | 36 +- ...WeekJSONCodec.kt => DayOfWeekJsonCodec.kt} | 8 +- ...ationJSONCodec.kt => DurationJsonCodec.kt} | 8 +- ...nstantJSONCodec.kt => InstantJsonCodec.kt} | 8 +- ...DateJSONCodec.kt => LocalDateJsonCodec.kt} | 8 +- .../codecs/extended/LocalDateTimeJSONCodec.kt | 21 -- .../codecs/extended/LocalDateTimeJsonCodec.kt | 21 ++ ...TimeJSONCodec.kt => LocalTimeJsonCodec.kt} | 8 +- ...thDayJSONCodec.kt => MonthDayJsonCodec.kt} | 8 +- .../{MonthJSONCodec.kt => MonthJsonCodec.kt} | 8 +- .../extended/OffsetDateTimeJSONCodec.kt | 21 -- .../extended/OffsetDateTimeJsonCodec.kt | 21 ++ ...imeJSONCodec.kt => OffsetTimeJsonCodec.kt} | 8 +- .../codecs/extended/PeriodJSONCodec.kt | 21 -- .../codecs/extended/PeriodJsonCodec.kt | 21 ++ .../sources/codecs/extended/YearJSONCodec.kt | 21 -- .../sources/codecs/extended/YearJsonCodec.kt | 21 ++ ...onthJSONCodec.kt => YearMonthJsonCodec.kt} | 8 +- .../codecs/extended/ZoneIdJSONCodec.kt | 21 -- .../codecs/extended/ZoneIdJsonCodec.kt | 21 ++ ...setJSONCodec.kt => ZoneOffsetJsonCodec.kt} | 8 +- .../codecs/extended/ZonedDateTimeJSONCodec.kt | 21 -- .../codecs/extended/ZonedDateTimeJsonCodec.kt | 21 ++ .../sources/codecs/ExtendedCodecsTest.kt | 48 +-- coding-jdk8/tests/sources/data/TestData.kt | 4 +- coding-jdk8/tests/sources/utility/Coding.kt | 10 +- coding/build.gradle.kts | 4 +- coding/sources/CodingImplementationsJava.kt | 8 +- coding/sources/CodingImplementationsJava7.kt | 16 +- coding/sources/JSONCodec.kt | 25 -- coding/sources/JSONCodecProvider.kt | 56 --- coding/sources/JSONCodingContext.kt | 10 - coding/sources/JSONCodingParser.kt | 171 --------- coding/sources/JSONCodingSerializer.kt | 84 ----- coding/sources/JSONDecoder.kt | 151 -------- coding/sources/JSONEncoder.kt | 103 ------ coding/sources/JSONEncoderCodec.kt | 27 -- coding/sources/JsonCodec.kt | 25 ++ coding/sources/JsonCodecProvider.kt | 56 +++ coding/sources/JsonCodingContext.kt | 10 + coding/sources/JsonCodingParser.kt | 171 +++++++++ coding/sources/JsonCodingSerializer.kt | 84 +++++ .../{JSONCodingType.kt => JsonCodingType.kt} | 62 ++-- coding/sources/JsonDecoder.kt | 151 ++++++++ ...SONDecoderCodec.kt => JsonDecoderCodec.kt} | 16 +- coding/sources/JsonEncoder.kt | 103 ++++++ coding/sources/JsonEncoderCodec.kt | 27 ++ coding/sources/codecs/DefaultJSONCodecs.kt | 52 --- coding/sources/codecs/DefaultJsonCodecs.kt | 52 +++ .../codecs/basic/AnyJSONDecoderCodec.kt | 16 - .../codecs/basic/AnyJsonDecoderCodec.kt | 16 + coding/sources/codecs/basic/ArrayJSONCodec.kt | 11 - coding/sources/codecs/basic/ArrayJsonCodec.kt | 11 + .../codecs/basic/BooleanArrayJSONCodec.kt | 8 - .../codecs/basic/BooleanArrayJsonCodec.kt | 8 + .../sources/codecs/basic/BooleanJSONCodec.kt | 12 - .../sources/codecs/basic/BooleanJsonCodec.kt | 12 + .../codecs/basic/ByteArrayJSONCodec.kt | 8 - .../codecs/basic/ByteArrayJsonCodec.kt | 8 + coding/sources/codecs/basic/ByteJSONCodec.kt | 12 - coding/sources/codecs/basic/ByteJsonCodec.kt | 12 + .../codecs/basic/CharArrayJSONCodec.kt | 8 - .../codecs/basic/CharArrayJsonCodec.kt | 8 + coding/sources/codecs/basic/CharJSONCodec.kt | 12 - coding/sources/codecs/basic/CharJsonCodec.kt | 12 + .../basic/CollectionJSONEncoderCodec.kt | 16 - .../codecs/basic/CollectionJsonCodec.kt | 16 + .../codecs/basic/DoubleArrayJSONCodec.kt | 8 - .../codecs/basic/DoubleArrayJsonCodec.kt | 8 + .../sources/codecs/basic/DoubleJSONCodec.kt | 12 - .../sources/codecs/basic/DoubleJsonCodec.kt | 12 + .../codecs/basic/FloatArrayJSONCodec.kt | 8 - .../codecs/basic/FloatArrayJsonCodec.kt | 8 + coding/sources/codecs/basic/FloatJSONCodec.kt | 12 - coding/sources/codecs/basic/FloatJsonCodec.kt | 12 + .../sources/codecs/basic/IntArrayJSONCodec.kt | 8 - .../sources/codecs/basic/IntArrayJsonCodec.kt | 8 + coding/sources/codecs/basic/IntJSONCodec.kt | 12 - coding/sources/codecs/basic/IntJsonCodec.kt | 12 + .../codecs/basic/IterableJSONEncoderCodec.kt | 11 - .../codecs/basic/IterableJsonEncoderCodec.kt | 11 + .../codecs/basic/ListJSONDecoderCodec.kt | 16 - .../codecs/basic/ListJsonDecoderCodec.kt | 16 + .../codecs/basic/LongArrayJSONCodec.kt | 8 - .../codecs/basic/LongArrayJsonCodec.kt | 8 + coding/sources/codecs/basic/LongJSONCodec.kt | 12 - coding/sources/codecs/basic/LongJsonCodec.kt | 12 + coding/sources/codecs/basic/MapJSONCodec.kt | 20 -- coding/sources/codecs/basic/MapJsonCodec.kt | 20 ++ .../codecs/basic/NonRecursiveJSONCodec.kt | 33 -- .../basic/NonRecursiveJSONEncoderCodec.kt | 20 -- .../codecs/basic/NonRecursiveJsonCodec.kt | 33 ++ ...dec.kt => NonRecursiveJsonDecoderCodec.kt} | 18 +- .../basic/NonRecursiveJsonEncoderCodec.kt | 20 ++ .../sources/codecs/basic/NumberJSONCodec.kt | 12 - .../sources/codecs/basic/NumberJsonCodec.kt | 12 + .../sources/codecs/basic/SequenceJSONCodec.kt | 20 -- .../sources/codecs/basic/SequenceJsonCodec.kt | 20 ++ .../codecs/basic/SetJSONDecoderCodec.kt | 18 - .../codecs/basic/SetJsonDecoderCodec.kt | 18 + .../codecs/basic/ShortArrayJSONCodec.kt | 8 - .../codecs/basic/ShortArrayJsonCodec.kt | 8 + coding/sources/codecs/basic/ShortJSONCodec.kt | 12 - coding/sources/codecs/basic/ShortJsonCodec.kt | 12 + .../sources/codecs/basic/StringJSONCodec.kt | 12 - .../sources/codecs/basic/StringJsonCodec.kt | 12 + ...angeJSONCodec.kt => CharRangeJsonCodec.kt} | 8 +- ...geJSONCodec.kt => ClosedRangeJsonCodec.kt} | 30 +- .../codecs/extended/EnumJSONCodecProvider.kt | 12 - .../{EnumJSONCodec.kt => EnumJsonCodec.kt} | 40 +-- .../codecs/extended/EnumJsonCodecProvider.kt | 12 + ...formation.kt => EnumJsonTransformation.kt} | 12 +- ...RangeJSONCodec.kt => IntRangeJsonCodec.kt} | 8 +- ...angeJSONCodec.kt => LongRangeJsonCodec.kt} | 8 +- ...tractJSONCodec.kt => AbstractJsonCodec.kt} | 16 +- ...erCodec.kt => AbstractJsonDecoderCodec.kt} | 16 +- ...erCodec.kt => AbstractJsonEncoderCodec.kt} | 14 +- .../implementations/FactoryCodecProvider.kt | 190 +++++----- .../implementations/FixedCodecProvider.kt | 32 +- .../implementations/StandardCodingParser.kt | 10 +- .../StandardCodingSerializer.kt | 10 +- .../implementations/StandardDecoder.kt | 20 +- .../implementations/StandardEncoder.kt | 18 +- coding/sources/utility/KClass.kt | 5 +- coding/sources/utility/KType.kt | 2 +- .../sources/AbstractJSONDecoderCodecTest.kt | 30 -- .../sources/AbstractJSONEncoderCodecTest.kt | 30 -- .../sources/AbstractJsonDecoderCodecTest.kt | 30 ++ .../sources/AbstractJsonEncoderCodecTest.kt | 30 ++ coding/tests/sources/CompanionTest.kt | 22 +- .../tests/sources/FixedCodecProviderTest.kt | 46 +-- ...gParserTest.kt => JsonCodingParserTest.kt} | 36 +- ...zerTest.kt => JsonCodingSerializerTest.kt} | 22 +- ...odingTypeTest.kt => JsonCodingTypeTest.kt} | 4 +- ...{JSONDecoderTest.kt => JsonDecoderTest.kt} | 36 +- ...{JSONEncoderTest.kt => JsonEncoderTest.kt} | 22 +- .../{JSONTestSuite.kt => JsonTestSuite.kt} | 14 +- coding/tests/sources/KClassTest.kt | 2 +- .../sources/StandardCodingParserRejectTest.kt | 14 +- .../StandardCodingSerializerRejectTest.kt | 10 +- coding/tests/sources/StandardDecoderTest.kt | 18 +- coding/tests/sources/StandardEncoderTest.kt | 18 +- .../tests/sources/codecs/BasicCodecsTest.kt | 84 ++--- ...CodecTest.kt => CharRangeJsonCodecTest.kt} | 14 +- ...decTest.kt => ClosedRangeJsonCodecTest.kt} | 28 +- ...erTest.kt => EnumJsonCodecProviderTest.kt} | 8 +- ...mJSONCodecTest.kt => EnumJsonCodecTest.kt} | 62 ++-- ...NCodecTest.kt => IntRangeJsonCodecTest.kt} | 14 +- ...CodecTest.kt => LongRangeJsonCodecTest.kt} | 14 +- coding/tests/sources/data/TestData.kt | 4 +- ...{DummyJSONReader.kt => DummyJsonReader.kt} | 14 +- coding/tests/sources/utility/Coding.kt | 10 +- .../utility/codecs/AnyJSONTestDecoderCodec.kt | 12 - .../utility/codecs/AnyJsonTestDecoderCodec.kt | 12 + .../codecs/ArrayJSONTestEncoderCodec.kt | 21 -- .../codecs/ArrayJsonTestEncoderCodec.kt | 21 ++ .../utility/codecs/CollectionJSONTestCodec.kt | 29 -- .../utility/codecs/CollectionJsonTestCodec.kt | 29 ++ .../codecs/ContextCheckingTestCodec.kt | 14 +- .../codecs/ContextCheckingTestDecoderCodec.kt | 10 +- .../codecs/ContextCheckingTestEncoderCodec.kt | 10 +- .../codecs/IterableJSONEncoderTestCodec.kt | 21 -- .../codecs/IterableJsonEncoderTestCodec.kt | 21 ++ .../sources/utility/codecs/JaegerCodec.kt | 14 +- .../sources/utility/codecs/KaijuCodec.kt | 14 +- .../codecs/ListJSONTestDecoderCodec.kt | 21 -- .../codecs/ListJsonTestDecoderCodec.kt | 21 ++ .../utility/codecs/MapJSONTestCodec.kt | 29 -- .../utility/codecs/MapJsonTestCodec.kt | 29 ++ .../utility/codecs/SequenceJSONTestCodec.kt | 29 -- .../utility/codecs/SequenceJsonTestCodec.kt | 29 ++ .../utility/codecs/SetJSONTestDecoderCodec.kt | 21 -- .../utility/codecs/SetJsonTestDecoderCodec.kt | 21 ++ .../utility/codecs/TestCoderContext.kt | 4 +- .../sources/utility/codecs/UniverseCodec.kt | 8 +- .../utility/codecs/YearMonthDayCodec.kt | 8 +- examples/build.gradle.kts | 9 +- examples/sources/0000-Basics.kt | 16 +- examples/sources/0001-CodecProvider.kt | 10 +- examples/sources/0002-CustomProperties.kt | 22 +- examples/sources/0010-Parsing.kt | 6 +- examples/sources/0011-ParsingFromReader.kt | 4 +- examples/sources/0012-ParsingLists.kt | 4 +- examples/sources/0013-ParsingMaps.kt | 4 +- examples/sources/0014-ParsingAsStream.kt | 4 +- .../sources/0015-ParsingAsStreamLowLevel.kt | 6 +- examples/sources/0020-Serializing.kt | 4 +- examples/sources/0021-SerializingToWriter.kt | 4 +- examples/sources/0022-SerializingAsStream.kt | 4 +- .../0023-SerializingAsStreamLowLevel.kt | 4 +- examples/sources/0030-TypeEncoderCodecs.kt | 8 +- examples/sources/0031-TypeDecoderCodecs.kt | 8 +- examples/sources/0032-TypeCodecs.kt | 12 +- examples/sources/0033-CodingAsStream.kt | 18 +- gradle/wrapper/gradle-wrapper.properties | 2 +- ktor-client/build.gradle.kts | 6 +- ktor-client/sources/FluidJsonSerializer.kt | 10 +- settings.gradle.kts | 2 +- 437 files changed, 6643 insertions(+), 6727 deletions(-) delete mode 100644 annotation-processor/tests/cases/1/output-expected/AutomaticRootJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/AutomaticRootJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/CustomRootJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/CustomRootJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/DefaultRootJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/DefaultRootJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/customProperties/CustomContextJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/customProperties/CustomContextJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/customProperties/DifferentPackageJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/customProperties/DifferentPackageJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/customProperties/SamePackageJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/customProperties/SamePackageJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/externalType/KT30280JSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/externalType/KT30280JsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/externalType/KT30280PrimitiveJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/externalType/KT30280PrimitiveJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/classes/ClassJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/classes/ClassJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/classes/DataClassJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/classes/DataClassJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/classes/GenericClassJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/classes/GenericClassJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/classes/InlineClassJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/classes/InlineClassJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/classes/ObjectJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/classes/ObjectJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecName/AutomaticJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecName/AutomaticJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecName/CustomizedJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecName/CustomizedJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecName/DefaultJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecName/DefaultJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecPackageName/AutomaticJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecPackageName/AutomaticJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecPackageName/DefaultJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecPackageName/DefaultJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecPackageName/customized/CustomJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecPackageName/customized/CustomJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/AutomaticInternalForContainedClass_ContainedClassJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/AutomaticInternalForContainedClass_ContainedClassJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/AutomaticInternalJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/AutomaticInternalJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/AutomaticPublicJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/AutomaticPublicJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/DefaultInternalJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/DefaultInternalJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/InternalJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/InternalJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/PublicJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/codecVisibility/PublicJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AnnotatedConstructorJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AnnotatedConstructorJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticAnnotatedConstructorJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticAnnotatedConstructorJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticObjectJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticObjectJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticPrimaryConstructorJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticPrimaryConstructorJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticSecondaryConstructorPrimaryExcludedJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticSecondaryConstructorPrimaryExcludedJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticSecondaryConstructorPrimaryInaccessibleJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticSecondaryConstructorPrimaryInaccessibleJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticSecondaryConstructorPrimaryNotPresentJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/AutomaticSecondaryConstructorPrimaryNotPresentJsonCodec.kt rename annotation-processor/tests/cases/1/output-expected/json/decoding/{ConstructorParameterOrderJSONCodec.kt => ConstructorParameterOrderJsonCodec.kt} (57%) delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultAnnotatedConstructorJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultAnnotatedConstructorJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultObjectJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultObjectJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultPrimaryConstructorJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultPrimaryConstructorJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultSecondaryConstructorPrimaryExcludedJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultSecondaryConstructorPrimaryExcludedJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultSecondaryConstructorPrimaryInaccessibleJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultSecondaryConstructorPrimaryInaccessibleJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultSecondaryConstructorPrimaryNotPresentJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/DefaultSecondaryConstructorPrimaryNotPresentJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/NoneJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/NoneJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/PrimaryConstructorJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/decoding/PrimaryConstructorJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/encoding/AllPropertiesJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/encoding/AllPropertiesJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/encoding/AnnotatedPropertiesJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/encoding/AnnotatedPropertiesJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/encoding/AutomaticJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/encoding/AutomaticJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/encoding/DefaultJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/encoding/DefaultJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/encoding/NoneJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/encoding/NoneJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/AutomaticSingleValueJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/AutomaticSingleValueJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/AutomaticStructuredJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/AutomaticStructuredJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/DefaultSingleValueJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/DefaultSingleValueJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/DefaultStructuredJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/DefaultStructuredJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/SingleValueGenericJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/SingleValueGenericJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/SingleValueJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/SingleValueJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/SingleValueNullableJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/SingleValueNullableJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/StructuredJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/StructuredJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/StructuredValueGenericJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/json/representation/StructuredValueGenericJsonCodec.kt rename annotation-processor/tests/cases/1/output-expected/property/defaultValue/{AutomaticGenericJSONCodec.kt => AutomaticGenericJsonCodec.kt} (58%) rename annotation-processor/tests/cases/1/output-expected/property/defaultValue/{AutomaticJSONCodec.kt => AutomaticJsonCodec.kt} (70%) delete mode 100644 annotation-processor/tests/cases/1/output-expected/property/serializedName/AutomaticJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/property/serializedName/AutomaticJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/property/serializedName/CustomJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/property/serializedName/CustomJsonCodec.kt delete mode 100644 annotation-processor/tests/cases/1/output-expected/property/serializedName/DefaultJSONCodec.kt create mode 100644 annotation-processor/tests/cases/1/output-expected/property/serializedName/DefaultJsonCodec.kt rename annotations/sources/{JSON.kt => Json.kt} (73%) delete mode 100644 basic/sources/JSONDepth.kt delete mode 100644 basic/sources/JSONParser.kt delete mode 100644 basic/sources/JSONSerializer.kt create mode 100644 basic/sources/JsonDepth.kt rename basic/sources/{JSONException.kt => JsonException.kt} (67%) create mode 100644 basic/sources/JsonParser.kt rename basic/sources/{JSONPath.kt => JsonPath.kt} (83%) rename basic/sources/{JSONReader.kt => JsonReader.kt} (66%) create mode 100644 basic/sources/JsonSerializer.kt rename basic/sources/{JSONToken.kt => JsonToken.kt} (82%) rename basic/sources/{JSONWriter.kt => JsonWriter.kt} (68%) rename basic/sources/utility/{JSONCharacter.kt => JsonCharacter.kt} (53%) rename basic/tests/sources/{JSONCharacterTest.kt => JsonCharacterTest.kt} (68%) rename basic/tests/sources/{JSONReaderTest.kt => JsonReaderTest.kt} (77%) rename basic/tests/sources/{JSONTestSuite.kt => JsonTestSuite.kt} (87%) rename basic/tests/sources/{JSONWriterTest.kt => JsonWriterTest.kt} (87%) rename basic/tests/sources/dummys/{DummyJSONReader.kt => DummyJsonReader.kt} (66%) rename basic/tests/sources/dummys/{DummyJSONWriter.kt => DummyJsonWriter.kt} (72%) delete mode 100644 buildSrc/sources/configure-kotlinx.kt rename coding-jdk8/sources/codecs/extended/{DayOfWeekJSONCodec.kt => DayOfWeekJsonCodec.kt} (74%) rename coding-jdk8/sources/codecs/extended/{DurationJSONCodec.kt => DurationJsonCodec.kt} (50%) rename coding-jdk8/sources/codecs/extended/{InstantJSONCodec.kt => InstantJsonCodec.kt} (51%) rename coding-jdk8/sources/codecs/extended/{LocalDateJSONCodec.kt => LocalDateJsonCodec.kt} (50%) delete mode 100644 coding-jdk8/sources/codecs/extended/LocalDateTimeJSONCodec.kt create mode 100644 coding-jdk8/sources/codecs/extended/LocalDateTimeJsonCodec.kt rename coding-jdk8/sources/codecs/extended/{LocalTimeJSONCodec.kt => LocalTimeJsonCodec.kt} (50%) rename coding-jdk8/sources/codecs/extended/{MonthDayJSONCodec.kt => MonthDayJsonCodec.kt} (51%) rename coding-jdk8/sources/codecs/extended/{MonthJSONCodec.kt => MonthJsonCodec.kt} (78%) delete mode 100644 coding-jdk8/sources/codecs/extended/OffsetDateTimeJSONCodec.kt create mode 100644 coding-jdk8/sources/codecs/extended/OffsetDateTimeJsonCodec.kt rename coding-jdk8/sources/codecs/extended/{OffsetTimeJSONCodec.kt => OffsetTimeJsonCodec.kt} (51%) delete mode 100644 coding-jdk8/sources/codecs/extended/PeriodJSONCodec.kt create mode 100644 coding-jdk8/sources/codecs/extended/PeriodJsonCodec.kt delete mode 100644 coding-jdk8/sources/codecs/extended/YearJSONCodec.kt create mode 100644 coding-jdk8/sources/codecs/extended/YearJsonCodec.kt rename coding-jdk8/sources/codecs/extended/{YearMonthJSONCodec.kt => YearMonthJsonCodec.kt} (51%) delete mode 100644 coding-jdk8/sources/codecs/extended/ZoneIdJSONCodec.kt create mode 100644 coding-jdk8/sources/codecs/extended/ZoneIdJsonCodec.kt rename coding-jdk8/sources/codecs/extended/{ZoneOffsetJSONCodec.kt => ZoneOffsetJsonCodec.kt} (50%) delete mode 100644 coding-jdk8/sources/codecs/extended/ZonedDateTimeJSONCodec.kt create mode 100644 coding-jdk8/sources/codecs/extended/ZonedDateTimeJsonCodec.kt delete mode 100644 coding/sources/JSONCodec.kt delete mode 100644 coding/sources/JSONCodecProvider.kt delete mode 100644 coding/sources/JSONCodingContext.kt delete mode 100644 coding/sources/JSONCodingParser.kt delete mode 100644 coding/sources/JSONCodingSerializer.kt delete mode 100644 coding/sources/JSONDecoder.kt delete mode 100644 coding/sources/JSONEncoder.kt delete mode 100644 coding/sources/JSONEncoderCodec.kt create mode 100644 coding/sources/JsonCodec.kt create mode 100644 coding/sources/JsonCodecProvider.kt create mode 100644 coding/sources/JsonCodingContext.kt create mode 100644 coding/sources/JsonCodingParser.kt create mode 100644 coding/sources/JsonCodingSerializer.kt rename coding/sources/{JSONCodingType.kt => JsonCodingType.kt} (78%) create mode 100644 coding/sources/JsonDecoder.kt rename coding/sources/{JSONDecoderCodec.kt => JsonDecoderCodec.kt} (61%) create mode 100644 coding/sources/JsonEncoder.kt create mode 100644 coding/sources/JsonEncoderCodec.kt delete mode 100644 coding/sources/codecs/DefaultJSONCodecs.kt create mode 100644 coding/sources/codecs/DefaultJsonCodecs.kt delete mode 100644 coding/sources/codecs/basic/AnyJSONDecoderCodec.kt create mode 100644 coding/sources/codecs/basic/AnyJsonDecoderCodec.kt delete mode 100644 coding/sources/codecs/basic/ArrayJSONCodec.kt create mode 100644 coding/sources/codecs/basic/ArrayJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/BooleanArrayJSONCodec.kt create mode 100644 coding/sources/codecs/basic/BooleanArrayJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/BooleanJSONCodec.kt create mode 100644 coding/sources/codecs/basic/BooleanJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/ByteArrayJSONCodec.kt create mode 100644 coding/sources/codecs/basic/ByteArrayJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/ByteJSONCodec.kt create mode 100644 coding/sources/codecs/basic/ByteJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/CharArrayJSONCodec.kt create mode 100644 coding/sources/codecs/basic/CharArrayJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/CharJSONCodec.kt create mode 100644 coding/sources/codecs/basic/CharJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/CollectionJSONEncoderCodec.kt create mode 100644 coding/sources/codecs/basic/CollectionJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/DoubleArrayJSONCodec.kt create mode 100644 coding/sources/codecs/basic/DoubleArrayJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/DoubleJSONCodec.kt create mode 100644 coding/sources/codecs/basic/DoubleJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/FloatArrayJSONCodec.kt create mode 100644 coding/sources/codecs/basic/FloatArrayJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/FloatJSONCodec.kt create mode 100644 coding/sources/codecs/basic/FloatJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/IntArrayJSONCodec.kt create mode 100644 coding/sources/codecs/basic/IntArrayJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/IntJSONCodec.kt create mode 100644 coding/sources/codecs/basic/IntJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/IterableJSONEncoderCodec.kt create mode 100644 coding/sources/codecs/basic/IterableJsonEncoderCodec.kt delete mode 100644 coding/sources/codecs/basic/ListJSONDecoderCodec.kt create mode 100644 coding/sources/codecs/basic/ListJsonDecoderCodec.kt delete mode 100644 coding/sources/codecs/basic/LongArrayJSONCodec.kt create mode 100644 coding/sources/codecs/basic/LongArrayJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/LongJSONCodec.kt create mode 100644 coding/sources/codecs/basic/LongJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/MapJSONCodec.kt create mode 100644 coding/sources/codecs/basic/MapJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/NonRecursiveJSONCodec.kt delete mode 100644 coding/sources/codecs/basic/NonRecursiveJSONEncoderCodec.kt create mode 100644 coding/sources/codecs/basic/NonRecursiveJsonCodec.kt rename coding/sources/codecs/basic/{NonRecursiveJSONDecoderCodec.kt => NonRecursiveJsonDecoderCodec.kt} (56%) create mode 100644 coding/sources/codecs/basic/NonRecursiveJsonEncoderCodec.kt delete mode 100644 coding/sources/codecs/basic/NumberJSONCodec.kt create mode 100644 coding/sources/codecs/basic/NumberJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/SequenceJSONCodec.kt create mode 100644 coding/sources/codecs/basic/SequenceJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/SetJSONDecoderCodec.kt create mode 100644 coding/sources/codecs/basic/SetJsonDecoderCodec.kt delete mode 100644 coding/sources/codecs/basic/ShortArrayJSONCodec.kt create mode 100644 coding/sources/codecs/basic/ShortArrayJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/ShortJSONCodec.kt create mode 100644 coding/sources/codecs/basic/ShortJsonCodec.kt delete mode 100644 coding/sources/codecs/basic/StringJSONCodec.kt create mode 100644 coding/sources/codecs/basic/StringJsonCodec.kt rename coding/sources/codecs/extended/{CharRangeJSONCodec.kt => CharRangeJsonCodec.kt} (75%) rename coding/sources/codecs/extended/{ClosedRangeJSONCodec.kt => ClosedRangeJsonCodec.kt} (73%) delete mode 100644 coding/sources/codecs/extended/EnumJSONCodecProvider.kt rename coding/sources/codecs/extended/{EnumJSONCodec.kt => EnumJsonCodec.kt} (59%) create mode 100644 coding/sources/codecs/extended/EnumJsonCodecProvider.kt rename coding/sources/codecs/extended/{EnumJSONTransformation.kt => EnumJsonTransformation.kt} (91%) rename coding/sources/codecs/extended/{IntRangeJSONCodec.kt => IntRangeJsonCodec.kt} (74%) rename coding/sources/codecs/extended/{LongRangeJSONCodec.kt => LongRangeJsonCodec.kt} (74%) rename coding/sources/implementations/{AbstractJSONCodec.kt => AbstractJsonCodec.kt} (64%) rename coding/sources/implementations/{AbstractJSONDecoderCodec.kt => AbstractJsonDecoderCodec.kt} (58%) rename coding/sources/implementations/{AbstractJSONEncoderCodec.kt => AbstractJsonEncoderCodec.kt} (66%) delete mode 100644 coding/tests/sources/AbstractJSONDecoderCodecTest.kt delete mode 100644 coding/tests/sources/AbstractJSONEncoderCodecTest.kt create mode 100644 coding/tests/sources/AbstractJsonDecoderCodecTest.kt create mode 100644 coding/tests/sources/AbstractJsonEncoderCodecTest.kt rename coding/tests/sources/{JSONCodingParserTest.kt => JsonCodingParserTest.kt} (85%) rename coding/tests/sources/{JSONCodingSerializerTest.kt => JsonCodingSerializerTest.kt} (62%) rename coding/tests/sources/{JSONCodingTypeTest.kt => JsonCodingTypeTest.kt} (92%) rename coding/tests/sources/{JSONDecoderTest.kt => JsonDecoderTest.kt} (80%) rename coding/tests/sources/{JSONEncoderTest.kt => JsonEncoderTest.kt} (69%) rename coding/tests/sources/{JSONTestSuite.kt => JsonTestSuite.kt} (84%) rename coding/tests/sources/codecs/{CharRangeJSONCodecTest.kt => CharRangeJsonCodecTest.kt} (70%) rename coding/tests/sources/codecs/{ClosedRangeJSONCodecTest.kt => ClosedRangeJsonCodecTest.kt} (86%) rename coding/tests/sources/codecs/{EnumJSONCodecProviderTest.kt => EnumJsonCodecProviderTest.kt} (68%) rename coding/tests/sources/codecs/{EnumJSONCodecTest.kt => EnumJsonCodecTest.kt} (91%) rename coding/tests/sources/codecs/{IntRangeJSONCodecTest.kt => IntRangeJsonCodecTest.kt} (69%) rename coding/tests/sources/codecs/{LongRangeJSONCodecTest.kt => LongRangeJsonCodecTest.kt} (69%) rename coding/tests/sources/dummys/{DummyJSONReader.kt => DummyJsonReader.kt} (66%) delete mode 100644 coding/tests/sources/utility/codecs/AnyJSONTestDecoderCodec.kt create mode 100644 coding/tests/sources/utility/codecs/AnyJsonTestDecoderCodec.kt delete mode 100644 coding/tests/sources/utility/codecs/ArrayJSONTestEncoderCodec.kt create mode 100644 coding/tests/sources/utility/codecs/ArrayJsonTestEncoderCodec.kt delete mode 100644 coding/tests/sources/utility/codecs/CollectionJSONTestCodec.kt create mode 100644 coding/tests/sources/utility/codecs/CollectionJsonTestCodec.kt delete mode 100644 coding/tests/sources/utility/codecs/IterableJSONEncoderTestCodec.kt create mode 100644 coding/tests/sources/utility/codecs/IterableJsonEncoderTestCodec.kt delete mode 100644 coding/tests/sources/utility/codecs/ListJSONTestDecoderCodec.kt create mode 100644 coding/tests/sources/utility/codecs/ListJsonTestDecoderCodec.kt delete mode 100644 coding/tests/sources/utility/codecs/MapJSONTestCodec.kt create mode 100644 coding/tests/sources/utility/codecs/MapJsonTestCodec.kt delete mode 100644 coding/tests/sources/utility/codecs/SequenceJSONTestCodec.kt create mode 100644 coding/tests/sources/utility/codecs/SequenceJsonTestCodec.kt delete mode 100644 coding/tests/sources/utility/codecs/SetJSONTestDecoderCodec.kt create mode 100644 coding/tests/sources/utility/codecs/SetJsonTestDecoderCodec.kt diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 965d31c..b221a97 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -15,7 +15,6 @@