[stringtemplate-interest] Javadoc generation using ST ?
Terence Parr
parrt at cs.usfca.edu
Thu Apr 17 11:03:28 PDT 2008
On Apr 17, 2008, at 8:59 AM, Zenaan Harkness wrote:
> 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?
Absolutely! The wrap=" * " option will do this for you. You can even
do Fortran style line continuations with. Give it a shot. I think
you'll enjoy.
Ter
>
>
>
> 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.
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list