com.caucho.java.gen
Class BaseClass

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

public class BaseClass
extends ClassComponent

Basic class generation.


Constructor Summary
BaseClass()
          Creates the base class
BaseClass(java.lang.String className)
          Creates the base class
BaseClass(java.lang.String className, java.lang.String superClassName)
          Creates the base class
 
Method Summary
 void addComponent(ClassComponent component)
          Adds a class component.
 DependencyComponent addDependencyComponent()
          Creates the dependency component.
 void addInterfaceName(java.lang.String name)
          Adds an interface.
 void addMethod(BaseMethod method)
          Adds a method
 BaseMethod createMethod(java.lang.reflect.Method method)
          Creates a method
 BaseMethod findMethod(java.lang.reflect.Method method)
          Finds a method
 void generate(JavaWriter out)
          Generates the code for the class.
protected  void generateClassContent(JavaWriter out)
          Generates the class content.
protected  void generateComponents(JavaWriter out)
          Generates the class components.
 java.lang.String getClassName()
          Gets the class name.
 void setClassName(java.lang.String className)
          Sets the class name.
 void setStatic(boolean isStatic)
          Sets the class static property.
 void setSuperClassName(java.lang.String superClassName)
          Sets the superclass name.
 void setVisibility(java.lang.String visibility)
          Sets the class visibility property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseClass

public BaseClass()
Creates the base class


BaseClass

public BaseClass(java.lang.String className)
Creates the base class


BaseClass

public BaseClass(java.lang.String className,
                 java.lang.String superClassName)
Creates the base class

Method Detail

setClassName

public void setClassName(java.lang.String className)
Sets the class name.


getClassName

public java.lang.String getClassName()
Gets the class name.


setSuperClassName

public void setSuperClassName(java.lang.String superClassName)
Sets the superclass name.


addInterfaceName

public void addInterfaceName(java.lang.String name)
Adds an interface.


setStatic

public void setStatic(boolean isStatic)
Sets the class static property.


setVisibility

public void setVisibility(java.lang.String visibility)
Sets the class visibility property.


addMethod

public void addMethod(BaseMethod method)
Adds a method


addDependencyComponent

public DependencyComponent addDependencyComponent()
Creates the dependency component.


findMethod

public BaseMethod findMethod(java.lang.reflect.Method method)
Finds a method


createMethod

public BaseMethod createMethod(java.lang.reflect.Method method)
Creates a method


addComponent

public void addComponent(ClassComponent component)
Adds a class component.


generate

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

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

generateClassContent

protected void generateClassContent(JavaWriter out)
                             throws java.io.IOException
Generates the class content.

Throws:
java.io.IOException

generateComponents

protected void generateComponents(JavaWriter out)
                           throws java.io.IOException
Generates the class components.

Throws:
java.io.IOException