Class ModelBuilder

  • All Implemented Interfaces:
    Builder

    public class ModelBuilder
    extends java.lang.Object
    implements Builder
    Author:
    Joe Walnes, Robert Scholte
    • Constructor Detail

      • ModelBuilder

        public ModelBuilder()
    • Method Detail

      • addImport

        public void addImport​(java.lang.String importName)
        Specified by:
        addImport in interface Builder
      • addJavaDoc

        public void addJavaDoc​(java.lang.String text)
        Specified by:
        addJavaDoc in interface Builder
      • endClass

        public void endClass()
        Specified by:
        endClass in interface Builder
      • createType

        public Type createType​(java.lang.String typeName,
                               int dimensions)
        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
      • createTypeVariable

        public TypeVariable createTypeVariable​(java.lang.String name,
                                               java.util.List typeParams)