public class ModelBuilder extends Object implements Builder
Constructor and Description |
---|
ModelBuilder() |
ModelBuilder(ClassLibrary classLibrary,
DocletTagFactory docletTagFactory) |
Modifier and Type | Method and Description |
---|---|
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) |
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() |
public ModelBuilder()
public ModelBuilder(ClassLibrary classLibrary, DocletTagFactory docletTagFactory)
public void addPackage(String packageName)
addPackage
in interface Builder
public void addJavaDoc(String text)
addJavaDoc
in interface Builder
public void addJavaDocTag(TagDef tagDef)
addJavaDocTag
in interface Builder
public void beginClass(ClassDef def)
beginClass
in interface Builder
public Type createType(String typeName, int dimensions)
createType
in interface Builder
public Type createType(TypeDef typeDef)
createType
in interface Builder
public Type createType(TypeDef typeDef, int dimensions)
typeDef
- dimensions
- public void addAnnotation(Annotation annotation)
addAnnotation
in interface Builder
public JavaSource getSource()
Copyright © 2002-2013. All Rights Reserved.