com.thoughtworks.qdox.model
public class ModelBuilder extends Object implements Builder
| Constructor Summary | |
|---|---|
| ModelBuilder() | |
| ModelBuilder(JavaClassContext context, DocletTagFactory docletTagFactory, Map allPackages) | |
| 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(PackageDef packageDef) |
| void | beginClass(ClassDef def) |
| Type | createType(String typeName, int dimensions) |
| 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. private String[] matrix[]; //field
public abstract String[] getMatrix[](); //method
|
| TypeVariable | createTypeVariable(TypeVariableDef typeVariableDef) |
| TypeVariable | createTypeVariable(String name, List typeParams) |
| void | endClass() |
| JavaSource | getSource() |
Parameters: typeDef dimensions
Returns: the Type