[stringtemplate-interest] Javadoc generation using ST ?

Zenaan Harkness zen at freedbms.net
Thu Apr 17 08:59:41 PDT 2008


I have some javadoc comments which span more than one line, in my model.
Is it possible to have the proper indentation (with asterisks) be
generated using st?


Eg, here is the javadoc:

javadoc="A brief intro to this class, followed by a blank line.

Then some more detailed info about this class, which also spans
more than one line; altogether, 4 lines of javadoc."


and eg is my template:

<javadoc(method)>
<method(method)>


which should produce this output:

/**
 * A brief intro to this class, followed by a blank line.
 *
 * Then some more detailed info about this class, which also spans
 * more than one line; altogether, 4 lines of javadoc.
 */
public void myMethod () {doSomething();}


but instead produces this output:

/**
 * A brief intro to this class, followed by a blank line.

Then some more detailed info about this class, which also spans
more than one line; altogether, 4 lines of javadoc.
 */
public void myMethod () {doSomething();}


As we can see, everything after the first line of text does not have the
proper javadoc indentation.

Is there a way to create proper javadoc output?

TIA
Zen

-- 
Homepage: www.SoulSound.net -- Free Australia: www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.


More information about the stringtemplate-interest mailing list