com.thoughtworks.qdox.model

Class ModelBuilder

public class ModelBuilder extends Object implements Builder

Author: Joe Walnes Robert Scholte

Constructor Summary
ModelBuilder()
ModelBuilder(JavaClassContext context, DocletTagFactory docletTagFactory, Map allPackages)
Method Summary
voidaddAnnotation(Annotation annotation)
voidaddField(FieldDef def)
voidaddImport(String importName)
voidaddJavaDoc(String text)
voidaddJavaDocTag(TagDef tagDef)
voidaddMethod(MethodDef def)
voidaddPackage(PackageDef packageDef)
voidbeginClass(ClassDef def)
TypecreateType(String typeName, int dimensions)
TypecreateType(TypeDef typeDef)
TypecreateType(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
TypeVariablecreateTypeVariable(TypeVariableDef typeVariableDef)
TypeVariablecreateTypeVariable(String name, List typeParams)
voidendClass()
JavaSourcegetSource()

Constructor Detail

ModelBuilder

public ModelBuilder()

ModelBuilder

public ModelBuilder(JavaClassContext context, DocletTagFactory docletTagFactory, Map allPackages)

Method Detail

addAnnotation

public void addAnnotation(Annotation annotation)

addField

public void addField(FieldDef def)

addImport

public void addImport(String importName)

addJavaDoc

public void addJavaDoc(String text)

addJavaDocTag

public void addJavaDocTag(TagDef tagDef)

addMethod

public void addMethod(MethodDef def)

addPackage

public void addPackage(PackageDef packageDef)

beginClass

public void beginClass(ClassDef def)

createType

public Type createType(String typeName, int dimensions)

createType

public Type createType(TypeDef typeDef)

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

createTypeVariable

public TypeVariable createTypeVariable(TypeVariableDef typeVariableDef)

createTypeVariable

public TypeVariable createTypeVariable(String name, List typeParams)

endClass

public void endClass()

getSource

public JavaSource getSource()