|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.java.gen.ClassComponent
com.caucho.java.gen.BaseClass
public class BaseClass
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 |
---|
public BaseClass()
public BaseClass(java.lang.String className)
public BaseClass(java.lang.String className, java.lang.String superClassName)
Method Detail |
---|
public void setClassName(java.lang.String className)
public java.lang.String getClassName()
public void setSuperClassName(java.lang.String superClassName)
public void addInterfaceName(java.lang.String name)
public void setStatic(boolean isStatic)
public void setVisibility(java.lang.String visibility)
public void addMethod(BaseMethod method)
public DependencyComponent addDependencyComponent()
public BaseMethod findMethod(java.lang.reflect.Method method)
public BaseMethod createMethod(java.lang.reflect.Method method)
public void addComponent(ClassComponent component)
public void generate(JavaWriter out) throws java.io.IOException
generate
in class ClassComponent
out
- the writer to the output stream.
java.io.IOException
protected void generateClassContent(JavaWriter out) throws java.io.IOException
java.io.IOException
protected void generateComponents(JavaWriter out) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |