对于多行文本Java注释工具

编程入门 行业动态 更新时间:2024-10-28 22:27:46
本文介绍了对于多行文本Java注释工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

多行Java的String 任何未来计划。

难的是如何写一个实用工具,将执行以下操作?

How difficult is it to write a utility that does the following?

@AllYouCanEatText(return="query") private String getQuery(String empid, String[] columns) { String query; /* SELECT ${columns} FROM Employees WHERE empid = ${empid} ; */ return query; };

当然,在此之前我在枪管前跳,我应该问 - 就是这样一个工具已经可用?如果是这样,在哪里?

Of course, before I jump in front of the barrel, I should have asked - Is such a utility already available? If so, where?

目前的问题实际上是 - 我怎么在编译时读取反射的评论部分。作为与反思和注释处理熟悉的我(惨淡)水平的指标 - 我用反思过去的时间运行时间阅读方法。是编译时反射可能吗?

The issue at hand is actually - how do I read the comments section in reflection during compile time. As an indication of my (dismal) level of familiarity with Reflection and annotation processing - the last time I used reflection was run-time to read methods. Is compile-time reflection possible?

是任何人都有意与我分享一个谷歌code项目做到这一点?可能已经有一个Apache项目在进行中?

Is anyone interested in sharing a google code project with me to do this? May be there is already an apache project afoot?

推荐答案

我碰到这个来了,而以前,从来没有使用过自己,但我认为它的您正在寻找的 www.adrianwalker/2011/12/java-multiline-string.html

I came across this a while ago, never used it myself, but I think its what you are looking for www.adrianwalker/2011/12/java-multiline-string.html

更多推荐

对于多行文本Java注释工具

本文发布于:2023-11-27 18:32:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639129.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:注释   工具   Java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!