Automatic Javadoc Templates

JBuilder gives you a number of templates (such as class, function, or member) for documenting with Javadoc tags. The ingenious part is that you do not have to remember many different commands. You use the same command, and the result changes within the contextual location of the comment. The command is simple; just type /** and press Enter. JBuilder automatically creates the appropriate Javadoc comment for the given context. Table 8.2 presents a list of the behavior of the expansion based on its context.

Table 8.2. Demonstrate the Expansion of /** Based on the Given Context
Context Sample Result
Before a class or interface definition
 /** * * <p>Title: Demo Designer</p> * <p>Description: Jbuilder Developers Guide</p> ...

Get Borland® JBuilder™ Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.