From febe4d9d5230e4df1844bd491530c7f664c41f9b Mon Sep 17 00:00:00 2001 From: Him188 Date: Sat, 20 Jun 2020 22:55:18 +0800 Subject: [PATCH] PrimitiveValues codegen --- .../net/mamoe/mirai/console/setting/Value.kt | 45 +++++++++++++++++-- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/setting/Value.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/setting/Value.kt index 09b860e0c..14d29c8e8 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/setting/Value.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/setting/Value.kt @@ -48,16 +48,55 @@ typealias ValueSerializer = KSerializer> interface PrimitiveValue : Value -//// region PrimitiveValue CODEGEN START //// +//// region PrimitiveValues CODEGEN START //// -// TODO: 2020/6/19 CODEGEN +/** + * Represents a non-null [Byte] value. + */ +interface ByteValue : PrimitiveValue + +/** + * Represents a non-null [Short] value. + */ +interface ShortValue : PrimitiveValue /** * Represents a non-null [Int] value. */ interface IntValue : PrimitiveValue -//// endregion PrimitiveValue CODEGEN END //// +/** + * Represents a non-null [Long] value. + */ +interface LongValue : PrimitiveValue + +/** + * Represents a non-null [Float] value. + */ +interface FloatValue : PrimitiveValue + +/** + * Represents a non-null [Double] value. + */ +interface DoubleValue : PrimitiveValue + +/** + * Represents a non-null [Char] value. + */ +interface CharValue : PrimitiveValue + +/** + * Represents a non-null [Boolean] value. + */ +interface BooleanValue : PrimitiveValue + +/** + * Represents a non-null [String] value. + */ +interface StringValue : PrimitiveValue + + +//// endregion PrimitiveValues CODEGEN END //// @MiraiExperimentalAPI