com.thoughtworks.qdox.model

Class ModelBuilder

Implemented Interfaces:
Builder

public class ModelBuilder
extends java.lang.Object
implements Builder

Constructor Summary

ModelBuilder()
ModelBuilder(ClassLibrary classLibrary, DocletTagFactory docletTagFactory)

Method Summary

void
addAnnotation(Annotation annotation)
void
addField(FieldDef def)
void
addImport(String importName)
void
addJavaDoc(String text)
void
addJavaDocTag(TagDef tagDef)
void
addMethod(MethodDef def)
void
addPackage(String packageName)
void
beginClass(ClassDef def)
Type
createType(String typeName, int dimensions)
Deprecated.
Type
createType(TypeDef typeDef)
Type
createType(TypeDef typeDef, int dimensions)
this one is specific for those cases where dimensions can be part of both the type and identifier i.e.
void
endClass()
JavaSource
getSource()

Constructor Details

ModelBuilder

public ModelBuilder()

ModelBuilder

public ModelBuilder(ClassLibrary classLibrary,
                    DocletTagFactory docletTagFactory)

Method Details

addAnnotation

public void addAnnotation(Annotation annotation)
Specified by:
addAnnotation in interface Builder

addField

public void addField(FieldDef def)
Specified by:
addField in interface Builder

addImport

public void addImport(String importName)
Specified by:
addImport in interface Builder

addJavaDoc

public void addJavaDoc(String text)
Specified by:
addJavaDoc in interface Builder

addJavaDocTag

public void addJavaDocTag(TagDef tagDef)
Specified by:
addJavaDocTag in interface Builder

addMethod

public void addMethod(MethodDef def)
Specified by:
addMethod in interface Builder

addPackage

public void addPackage(String packageName)
Specified by:
addPackage in interface Builder

beginClass

public void beginClass(ClassDef def)
Specified by:
beginClass in interface Builder

createType

public Type createType(String typeName,
                       int dimensions)

Deprecated.

Specified by:
createType in interface Builder

createType

public Type createType(TypeDef typeDef)
Specified by:
createType in interface Builder

createType

public Type createType(TypeDef typeDef,
                       int dimensions)
this one is specific for those cases where dimensions can be part of both the type and identifier i.e. private String[] matrix[]; //field public abstract String[] getMatrix[](); //method
Parameters:
typeDef -
dimensions -
Returns:
the Type

endClass

public void endClass()
Specified by:
endClass in interface Builder

getSource

public JavaSource getSource()