Kotlin 入門到進(jìn)階(28) -- 注解

Kotlin 注解

  • 注解的定義
  • Kotlin 元注解
    • @Target
    • @Retention
    • @Repeatable
    • @MustBeDocumented
  • use-site target
    • @file the class containing top-level functions and properties declared in the file
    • @property: annotations with this target are not visible to Java
    • @field: the field generated for the property
    • @get: property getter
    • @set: property setter
    • @receiver: receiver parameter of an extension function or property
    • @param: constructor parameter
    • @setparam: property setter parameter
    • @delegate: the field storing the delegate instance for a delegated property
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 前言 人生苦多,快來 Kotlin ,快速學(xué)習(xí)Kotlin! 什么是Kotlin? Kotlin 是種靜態(tài)類型編程...
    任半生囂狂閱讀 26,681評(píng)論 9 118
  • 不重要的廢話 前段時(shí)間看了一遍《Programming Kotlin》,主要目的是想提高自己的英文閱讀能力,能力提...
    珞澤珈群閱讀 3,575評(píng)論 1 7
  • 本文收錄于 kotlin入門潛修專題系列,歡迎學(xué)習(xí)交流。 創(chuàng)作不易,如有轉(zhuǎn)載,還請(qǐng)備注。 注解 注解在編程語言中是...
    寒瀟2018閱讀 1,911評(píng)論 0 4
  • 注解 Kotlin 的注解與 Java 的注解完全相同,也是代碼里的特殊標(biāo)記,這些標(biāo)記可以在編譯、類加載、運(yùn)行時(shí)被...
    0246eafe46bd閱讀 4,914評(píng)論 0 2
  • 從JDK1.5開始,Java引入了一種新的注釋機(jī)制-Annotation,中文名稱一般叫注解,它一般作為說明信息,...
    黑心石閱讀 14,976評(píng)論 1 4

友情鏈接更多精彩內(nèi)容