久久久久久久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 注釋處理器?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

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

                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)有類.您可以在運行時進行反射,但嚴格來說您不稱為注釋處理.此外,您將無法訪問局部變量.

                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ù)的三元表達式的類型是什么?)
                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 | 久久精品91| 国产一区在线视频 | 亚洲精品日韩精品 | 亚洲成av人片在线观看无码 | 激情久久av一区av二区av三区 | 日本特黄a级高清免费大片 成年人黄色小视频 | 国产美女一区二区三区 | 亚洲一区二区三区 | 久久久久久久久综合 | 欧美黄页 | 91麻豆精品国产91久久久更新资源速度超快 | 日韩电影免费在线观看中文字幕 | 久久与欧美| 欧美日在线 | 久在线 | 天堂一区 | 综合激情网 | 91麻豆产精品久久久久久 | 欧美色视频免费 | 欧美一区在线视频 | 国产精品高清在线 | 欧美日韩综合一区 | 久久高清免费视频 | 国产激情免费视频 | 久视频在线| 国产精品国产a级 | 美女高潮网站 | 成人1区2区 | 国产精品明星裸体写真集 | 精品久久久久久久久久久久久久 | www中文字幕 | 色视频欧美| 激情五月综合网 | 成人在线视频免费观看 | 国产精品1区2区 | 中文字幕在线免费视频 | 精品日韩 | 亚洲免费福利视频 | 日韩中文在线 |