I'm wondering if it's possible to tie the text of a doc comment of a method to a String value in code. For example:
String myHelloMethodDocComment = "This is a doc comment. \n @param arg1";
{Some sort of magic, maybe here maybe somewhere else}
public void printHello(String world){
System.out.print("Hello " + world);
}
public static void main(String args[]){
printHello("world");
}
In this example, should I generate a javadoc or mouse over the line printHello("world") in main using an editor that supports them, I would ideally want to see
"This is a doc comment.
param arg1"
In the mouse-over window.
Is this possible, maybe using something in the new Java 8 doctree api that I just haven't found?