久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='lY40v'></tfoot>

    <small id='lY40v'></small><noframes id='lY40v'>

  1. <i id='lY40v'><tr id='lY40v'><dt id='lY40v'><q id='lY40v'><span id='lY40v'><b id='lY40v'><form id='lY40v'><ins id='lY40v'></ins><ul id='lY40v'></ul><sub id='lY40v'></sub></form><legend id='lY40v'></legend><bdo id='lY40v'><pre id='lY40v'><center id='lY40v'></center></pre></bdo></b><th id='lY40v'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='lY40v'><tfoot id='lY40v'></tfoot><dl id='lY40v'><fieldset id='lY40v'></fieldset></dl></div>
      <bdo id='lY40v'></bdo><ul id='lY40v'></ul>

      <legend id='lY40v'><style id='lY40v'><dir id='lY40v'><q id='lY40v'></q></dir></style></legend>
    1. 如何編寫 Java 注釋處理器?

      How to write a Java annotation processor?(如何編寫 Java 注釋處理器?)
      • <bdo id='LPvMA'></bdo><ul id='LPvMA'></ul>
        <legend id='LPvMA'><style id='LPvMA'><dir id='LPvMA'><q id='LPvMA'></q></dir></style></legend>

        <small id='LPvMA'></small><noframes id='LPvMA'>

            <tfoot id='LPvMA'></tfoot>
          1. <i id='LPvMA'><tr id='LPvMA'><dt id='LPvMA'><q id='LPvMA'><span id='LPvMA'><b id='LPvMA'><form id='LPvMA'><ins id='LPvMA'></ins><ul id='LPvMA'></ul><sub id='LPvMA'></sub></form><legend id='LPvMA'></legend><bdo id='LPvMA'><pre id='LPvMA'><center id='LPvMA'></center></pre></bdo></b><th id='LPvMA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LPvMA'><tfoot id='LPvMA'></tfoot><dl id='LPvMA'><fieldset id='LPvMA'></fieldset></dl></div>
              <tbody id='LPvMA'></tbody>
                本文介紹了如何編寫 Java 注釋處理器?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我可能只是在尋找錯誤的方向,但我發(fā)現(xiàn)關(guān)于注釋處理的 JSE 文檔非常……稀疏.我想編寫一個注釋處理器來處理帶注釋的字符串字段和局部變量,以用計算的字符串表達(dá)式替換它們.這不應(yīng)該太復(fù)雜,但我在 javax.annotation.processing 的 Javadoc 中迷失了.

                I may be just looking in the wrong direction but I find the JSE documentation on annotation processing very ... sparse. I want to write an annotation processor which processes annotated String fields and local variables to substitute them with a computed String expression. This should not be too complicated but I'm pretty lost in the Javadoc for javax.annotation.processing.

                我需要在編譯時處理注釋,因為我想修改生成的代碼.它應(yīng)該用計算的字符串表達(dá)式替換帶注釋的常量字符串表達(dá)式.

                I need to process annotations at compile time because I want to modify the generated code. It should replace annotated constant String expressions with a computed String expression.

                推薦答案

                編譯時注釋處理器無法做到這一點.編譯時注釋處理器只能生成新文件(和類),它們不能修改現(xiàn)有類.您可以在運行時進行反射,但嚴(yán)格來說您不稱為注釋處理.此外,您將無法訪問局部變量.

                This can not be done with a compile time annotation processor. Compile time time annotation processors can only generate new files (and classes) they can not modify existing classes. You can do reflection at runtime but strictly speaking you that is not called annotation processing. Also you won't have access to local variables.

                如果您正在研究如何編寫編譯時注釋處理器,請查看 https://github.com/pellaton/spring-configuration-validation-processor

                If you're looking on how to write a compile time annotation processor check out https://github.com/pellaton/spring-configuration-validation-processor

                這篇關(guān)于如何編寫 Java 注釋處理器?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                quot;Char cannot be dereferencedquot; error(“Char 不能被取消引用錯誤)
                Java Switch Statement - Is quot;orquot;/quot;andquot; possible?(Java Switch 語句 - 是“或/“和可能的?)
                Java Replace Character At Specific Position Of String?(Java替換字符串特定位置的字符?)
                What is the type of a ternary expression with int and char operands?(具有 int 和 char 操作數(shù)的三元表達(dá)式的類型是什么?)
                Read a text file and store every single character occurrence(讀取文本文件并存儲出現(xiàn)的每個字符)
                Why do I need to explicitly cast char primitives on byte and short?(為什么我需要在 byte 和 short 上顯式轉(zhuǎn)換 char 原語?)
                  <i id='MrIQB'><tr id='MrIQB'><dt id='MrIQB'><q id='MrIQB'><span id='MrIQB'><b id='MrIQB'><form id='MrIQB'><ins id='MrIQB'></ins><ul id='MrIQB'></ul><sub id='MrIQB'></sub></form><legend id='MrIQB'></legend><bdo id='MrIQB'><pre id='MrIQB'><center id='MrIQB'></center></pre></bdo></b><th id='MrIQB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MrIQB'><tfoot id='MrIQB'></tfoot><dl id='MrIQB'><fieldset id='MrIQB'></fieldset></dl></div>
                    <tbody id='MrIQB'></tbody>

                  <small id='MrIQB'></small><noframes id='MrIQB'>

                  <tfoot id='MrIQB'></tfoot>

                  <legend id='MrIQB'><style id='MrIQB'><dir id='MrIQB'><q id='MrIQB'></q></dir></style></legend>

                        • <bdo id='MrIQB'></bdo><ul id='MrIQB'></ul>
                        • 主站蜘蛛池模板: 国产成人精品久久二区二区91 | 欧美一区视频在线 | 香蕉一区 | 免费黄网站在线观看 | 国产一区高清 | 伊人精品一区二区三区 | 亚洲国产精品99久久久久久久久 | 国产sm主人调教女m视频 | 国产综合视频 | 国产精品1区2区 | 午夜精品久久久久久久久久久久久 | 天天操一操 | 美女天天操 | 欧美日韩精品在线一区 | 久久伦理中文字幕 | 国产激情视频网址 | 一区精品视频 | 欧美一卡二卡在线 | 一级aaaaaa毛片免费同男同女 | 久草在线青青草 | 久久日韩精品 | 一区二区免费 | 午夜影院操 | 欧美炮房 | 国产精品视频网 | 久久精品视频99 | 日韩免费网站 | 97国产在线观看 | 久久aⅴ乱码一区二区三区 亚洲国产成人精品久久久国产成人一区 | 成人h动漫精品一区二区器材 | 日韩在线观看视频一区 | 国产在线观看免费 | 色视频在线免费观看 | 日韩中文字幕在线观看 | 99久久婷婷国产综合精品电影 | av网站免费观看 | 久久久久久亚洲欧洲 | 99久久久久国产精品免费 | 日本午夜免费福利视频 | 黄色成人在线观看 | 在线小视频 |