Generating java code from JavaDoc HTML

Cut’n’paste the method summary to the created class.

Use this search and replace in VS.NET:

Search:
^{[^\)]*}\) \n:b*{[^\n]*}$
Replace:
\n/**\n * \2\n */\npublic \1) { }

For interfaces use this replace:
\n/**\n * \2\n */\n\1);

Strip blank comment blocks with:

Search:
^:b*/\*\*:b*\n:b*\*:b*\n:b*\*/:b*\n
Replace:
\n

Dette indlæg blev udgivet i Knowledge Base, Old Base, Programmering. Bogmærk permalinket.

Skriv et svar