com.caucho.java.gen
Class GenClass

java.lang.Object
  extended by com.caucho.java.gen.ClassComponent
      extended by com.caucho.java.gen.BaseClass
          extended by com.caucho.java.gen.GenClass
Direct Known Subclasses:
BeanGenerator

public class GenClass
extends BaseClass

Basic class generation.


Constructor Summary
GenClass(java.lang.String fullClassName)
          Creates the base class
 
Method Summary
 void addImport(java.lang.String importName)
          Adds an import package.
 void generate(JavaWriter out)
          Generates the class.
protected  void generateTopComment(JavaWriter out)
          Generates the top comment.
 java.lang.String getFullClassName()
          Returns the full class name.
 java.lang.String getPackageName()
          Returns the package name
 
Methods inherited from class com.caucho.java.gen.BaseClass
addComponent, addDependencyComponent, addInterfaceName, addMethod, createMethod, findMethod, generateClassContent, generateComponents, getClassName, setClassName, setStatic, setSuperClassName, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenClass

public GenClass(java.lang.String fullClassName)
Creates the base class

Method Detail

getFullClassName

public java.lang.String getFullClassName()
Returns the full class name.


getPackageName

public java.lang.String getPackageName()
Returns the package name


addImport

public void addImport(java.lang.String importName)
Adds an import package.


generate

public void generate(JavaWriter out)
              throws java.io.IOException
Generates the class.

Overrides:
generate in class BaseClass
Parameters:
out - the writer to the output stream.
Throws:
java.io.IOException

generateTopComment

protected void generateTopComment(JavaWriter out)
                           throws java.io.IOException
Generates the top comment.

Throws:
java.io.IOException