public class ModelBuilder extends Object implements Builder
Constructor and Description |
---|
ModelBuilder() |
ModelBuilder(JavaClassContext context,
DocletTagFactory docletTagFactory,
Map allPackages) |
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(PackageDef packageDef) |
void |
addParameter(FieldDef fieldDef) |
void |
beginClass(ClassDef def) |
void |
beginMethod() |
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.
|
TypeVariable |
createTypeVariable(String name,
List typeParams) |
TypeVariable |
createTypeVariable(TypeVariableDef typeVariableDef) |
void |
endClass() |
void |
endMethod(MethodDef def) |
JavaSource |
getSource() |
public ModelBuilder()
public ModelBuilder(JavaClassContext context, DocletTagFactory docletTagFactory, Map allPackages)
public void addPackage(PackageDef packageDef)
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 addMethod(MethodDef def)
public void beginMethod()
beginMethod
in interface Builder
public TypeVariable createTypeVariable(TypeVariableDef typeVariableDef)
public TypeVariable createTypeVariable(String name, List typeParams)
public void addParameter(FieldDef fieldDef)
addParameter
in interface Builder
public void addAnnotation(Annotation annotation)
addAnnotation
in interface Builder
public JavaSource getSource()
Copyright © 2002–2017. All rights reserved.