0

I want to automatically create some sort of report of my code(java). Example: I have something like:

public classe qwerty{
//CODE
/*
* Converts ...
* @param s
*        -string...
*/
public static int mult(string s)
   {
   //CODE
   } 
}

And I want to create something that looks like this:

...............................
public static int mult(string s)
Converts ...

Paramters:
   s (String): string...
Returns (int)
.................................
ETC

Is there any tool for that??

Joao Silva
  • 118
  • 1
  • 1
  • 14

3 Answers3

2

Maybe you are searching for javadoc

Javadoc creates html-files of your code as a documentation. Just look at some tutorial

Link
  • 1,307
  • 1
  • 11
  • 23
0

If you have looked at javadoc, and it is not suitable for you, then look at this solution

How to read Javadoc comments by reflection?

look at answer "doclet"

Community
  • 1
  • 1
AlexWien
  • 28,470
  • 6
  • 53
  • 83
0

If you are using IntelliJ then before the method you want to comment you have to type /** and hit enter. It automatically creates a comment with params or without depending on your function.

Layon
  • 1
  • 1