public class BaseClass extends ClassComponent
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
public BaseClass()
public BaseClass(java.lang.String className)
public BaseClass(java.lang.String className, java.lang.String superClassName)
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