久久久久久久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>
                        • 主站蜘蛛池模板: 永久免费视频 | 亚洲一区二区三区视频 | 中文字幕av一区二区三区 | 国产精品五区 | 伊人激情综合网 | 日韩视频国产 | 永久免费av | www狠狠干 | 亚洲自拍偷拍av | 国产精品99999999 | 中文字幕一区二区三区四区不卡 | 国产精品视频偷伦精品视频 | 国产精品久久国产精品 | 久久久精品 | 日韩欧美二区 | 日本亚洲一区二区 | 波多野吉衣久久 | 欧美一区二区视频 | 三a毛片| 伊人免费在线观看 | 国家一级黄色片 | 麻豆亚洲 | 国产精品久久久久久久一区探花 | 欧美综合一区 | 在线观看av中文字幕 | 96国产精品久久久久aⅴ四区 | 日韩欧美高清 | 亚洲精品一区二区三区蜜桃久 | 成人影音| 日韩中文在线视频 | 91久久精品日日躁夜夜躁欧美 | 国产精品美女视频 | 婷婷国产一区二区三区 | 国产成人精品午夜视频免费 | 干干干操操操 | 大吊一区二区 | 成人免费在线播放视频 | 一区天堂 | 亚洲午夜精品 | xx视频在线观看 | 欧美一区二区在线观看 |