Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
767790f6
Commit
767790f6
authored
Jan 20, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce MiraiDebugAPI
parent
db3a1fb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/Annotations.kt
...rc/commonMain/kotlin/net.mamoe.mirai/utils/Annotations.kt
+15
-3
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/Annotations.kt
View file @
767790f6
...
@@ -25,12 +25,24 @@ annotation class MiraiInternalAPI(
...
@@ -25,12 +25,24 @@ annotation class MiraiInternalAPI(
* 这些 API 不具有稳定性, 且可能会在任意时刻更改.
* 这些 API 不具有稳定性, 且可能会在任意时刻更改.
* 不建议在发行版本中使用这些 API.
* 不建议在发行版本中使用这些 API.
*/
*/
@Experimental
(
level
=
Experimental
.
Level
.
ERROR
)
@Experimental
(
level
=
Experimental
.
Level
.
WARNING
)
@Target
(
CLASS
,
TYPEALIAS
,
FUNCTION
,
PROPERTY
,
FIELD
,
CONSTRUCTOR
)
@Target
(
CLASS
,
TYPEALIAS
,
FUNCTION
,
PROPERTY
,
FIELD
,
CONSTRUCTOR
)
annotation
class
MiraiExperimentalAPI
(
annotation
class
MiraiExperimentalAPI
(
val
message
:
String
=
""
val
message
:
String
=
""
)
)
/**
* 标记这个类, 类型, 函数, 属性, 字段, 或构造器为仅供调试阶段使用的.
*
* 这些 API 不具有稳定性, 可能会在任意时刻更改, 并且效率非常低下.
* 非常不建议在发行版本中使用这些 API.
*/
@Experimental
(
level
=
Experimental
.
Level
.
WARNING
)
@Target
(
CLASS
,
TYPEALIAS
,
FUNCTION
,
PROPERTY
,
FIELD
,
CONSTRUCTOR
)
annotation
class
MiraiDebugAPI
(
val
message
:
String
=
""
)
/**
/**
* 标记这个 API 是自 Mirai 某个版本起才受支持.
* 标记这个 API 是自 Mirai 某个版本起才受支持.
*/
*/
...
@@ -43,13 +55,13 @@ annotation class SinceMirai(val version: String)
...
@@ -43,13 +55,13 @@ annotation class SinceMirai(val version: String)
* 包的最后一次修改时间, 和分析时使用的 TIM 版本
* 包的最后一次修改时间, 和分析时使用的 TIM 版本
*/
*/
@MustBeDocumented
@MustBeDocumented
@Target
(
AnnotationTarget
.
FUNCTION
,
AnnotationTarget
.
CLASS
,
AnnotationTarget
.
PROPERTY
)
@Target
(
FUNCTION
,
CLASS
,
PROPERTY
)
@Retention
(
AnnotationRetention
.
SOURCE
)
@Retention
(
AnnotationRetention
.
SOURCE
)
annotation
class
PacketVersion
(
val
date
:
String
,
val
timVersion
:
String
)
annotation
class
PacketVersion
(
val
date
:
String
,
val
timVersion
:
String
)
/**
/**
* 带有这个注解的 [Packet] 将不会被记录在 log 中.
* 带有这个注解的 [Packet] 将不会被记录在 log 中.
*/
*/
@Target
(
AnnotationTarget
.
CLASS
)
@Target
(
CLASS
)
@Retention
(
AnnotationRetention
.
RUNTIME
)
@Retention
(
AnnotationRetention
.
RUNTIME
)
annotation
class
NoLog
annotation
class
NoLog
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment