tags:

views:

47

answers:

2

How to create custom javadoc tags such as @pre / @post... I found some links that explain it but i haven had luck with them, i dont know if that am already tired but i can figure where to put it. these are some of the links

http://www.developer.com/java/other/article.php/3085991/Javadoc-Programming.html

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html

I'm sorry to ask to be spoon fed but am at the stage where i only see black dots on the screen :\

Thanks a bunch

+2  A: 

Well what i did is not the best solution but is readable:

  /** <p><b>Pre:</b></p>  <Ul>True</Ul>
    * <p><b>Post:</b></p> <Ul>The x is pushed onto the top of the stack,
    *                       and the rest of the stack remains unchanged.</Ul>
    *
    * @param x              Indicates the current node
    */
   public void push(int x){
      ...
   }

Produces this

alt text

Till a proper answer is found, hope it helps!

Carlucho
+1  A: 

Hey. look at this http://java.sun.com/j2se/javadoc/faq/#customtags

ring bearer