com.thoughtworks.qdox.model
Class ModelBuilder
java.lang.Object
com.thoughtworks.qdox.model.ModelBuilder
- All Implemented Interfaces:
- Builder
public class ModelBuilder
- extends Object
- implements Builder
- Author:
- Joe Walnes, Robert Scholte
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelBuilder
public ModelBuilder()
ModelBuilder
public ModelBuilder(JavaClassContext context,
DocletTagFactory docletTagFactory,
Map allPackages)
addPackage
public void addPackage(PackageDef packageDef)
- Specified by:
addPackage
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
beginClass
public void beginClass(ClassDef def)
- Specified by:
beginClass
in interface Builder
endClass
public void endClass()
- Specified by:
endClass
in interface Builder
createType
public Type createType(String typeName,
int dimensions)
- 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
addMethod
public void addMethod(MethodDef def)
beginMethod
public void beginMethod()
- Specified by:
beginMethod
in interface Builder
endMethod
public void endMethod(MethodDef def)
- Specified by:
endMethod
in interface Builder
createTypeVariable
public TypeVariable createTypeVariable(TypeVariableDef typeVariableDef)
createTypeVariable
public TypeVariable createTypeVariable(String name,
List typeParams)
addField
public void addField(FieldDef def)
- Specified by:
addField
in interface Builder
addParameter
public void addParameter(FieldDef fieldDef)
- Specified by:
addParameter
in interface Builder
addAnnotation
public void addAnnotation(Annotation annotation)
- Specified by:
addAnnotation
in interface Builder
getSource
public JavaSource getSource()
Copyright © 2002-2011. All Rights Reserved.