Developer's Daily Class Builder for Java
  main | java | perl | unix | DevDirectory
   
Main
Java
Class Builder
   

Class Builder for Java

Facts and Features

The next generation of this software is now in alpha testing! This package is evolving into an application-modeling program, fully capable of modeling an entire object-oriented software program. Once your model is complete, you can generate all the source code you've defined. In the meantime, this current package lets you easily build one class at a time.

  • Class Builder for Java is a source code generator for Java.
  • A great way to generate non-visual classes, such as those used in servlets and business applications.
  • Just fill in simple forms to define classes.
  • Generates Get/Set methods (when desired).
  • Generates Javadoc comments (when desired).
 
Benefits

  • Generates approximately 10 characters of code for each character you type (a 10:1 code-generation ratio)!
  • Error-free/bug-free code: eliminates typo's, saves compilation time.
  • Minimizes the time you spend creating documentation because the Javadoc is automatically generated.
  • Used to generate 2,000+ lines of source code and comments in a four-hour span on a NASA-related project.
 
Instructions

     

  • Creating Java classes is a very simple five-step procedure. Just fill in the forms shown below.

  • When you're finished designing your new Java class, press the "Submit" button at the bottom of the form.

  • After your code is generated, it will appear in the next window. From there you can easily cut-and-paste the code into your applications, or save it to a file on your local hard disk.

One final note: the Java code and classes you create is entirely yours. We create a few temporary files as needed during the code generation process, but those files are removed when the code is displayed on your screen. Once generated, you own the Java class you defined.

 

Word of Caution

Class Builder for Java creates code according to your specifications. If the information provided does not follow the proper naming rules for Java parameters, the code generated here will be useless - it's as easy as that.

If you do follow proper naming conventions, Class Builder should have no problems creating 100% error-free Java code.

 

Start Here:

STEP 1: Define the class "skeleton"
Class Name:

 

Package Name:  
Class Visibility:   public private <default>
Class Keywords:   static final abstract
Extends:  
Implements:  


 

STEP 2: Define the class variables (12 variable maximum)

NOTE: Select a "Standard Data Type" or "Custom Data Type" for each variable, but not both. If both are selected, the "Custom Data Type" will override the Standard.


Variable Number Variable Visibility Keywords Standard Data Type or ... ... Custom Data Type Variable Name
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.

 

STEP 3: Define the class methods (10 methods maximum)

NOTE: Select a "Standard Return Type" or "Custom Return Type" for each method, but not both. If both are selected, the "Custom Return Type" will override the Standard.


Method Number Method Visibility Method Keywords Standard
Return Type or ...

... Custom Return Type
Method Name
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

 

STEP 4: Specify other class options

Automatically generate "get" methods: yes no
Automatically generate "set" methods: yes no
Automatically generate "javadoc" comments: yes no

 

 

STEP 5: Generate the Java code for this class