Class ModifyableModelBuilder

  • All Implemented Interfaces:
    com.thoughtworks.qdox.builder.Builder

    public class ModifyableModelBuilder
    extends Object
    implements com.thoughtworks.qdox.builder.Builder
    Custom implementation derived from ModelBuilder to fix some issues with annotation and javaDoc parsing.
    • Constructor Detail

      • ModifyableModelBuilder

        public ModifyableModelBuilder​(com.thoughtworks.qdox.library.ClassLibrary classLibrary,
                                      com.thoughtworks.qdox.model.DocletTagFactory docletTagFactory)
    • Method Detail

      • setModelWriterFactory

        public void setModelWriterFactory​(com.thoughtworks.qdox.writer.ModelWriterFactory modelWriterFactory)
        Specified by:
        setModelWriterFactory in interface com.thoughtworks.qdox.builder.Builder
      • addPackage

        public void addPackage​(com.thoughtworks.qdox.parser.structs.PackageDef packageDef)
        Specified by:
        addPackage in interface com.thoughtworks.qdox.builder.Builder
      • addImport

        public void addImport​(String importName)
        Specified by:
        addImport in interface com.thoughtworks.qdox.builder.Builder
      • addJavaDoc

        public void addJavaDoc​(String text)
        Specified by:
        addJavaDoc in interface com.thoughtworks.qdox.builder.Builder
      • addJavaDocTag

        public void addJavaDocTag​(com.thoughtworks.qdox.parser.structs.TagDef tagDef)
        Specified by:
        addJavaDocTag in interface com.thoughtworks.qdox.builder.Builder
      • beginClass

        public void beginClass​(com.thoughtworks.qdox.parser.structs.ClassDef def)
        Specified by:
        beginClass in interface com.thoughtworks.qdox.builder.Builder
      • endClass

        public void endClass()
        Specified by:
        endClass in interface com.thoughtworks.qdox.builder.Builder
      • addInitializer

        public void addInitializer​(com.thoughtworks.qdox.parser.structs.InitDef def)
        Specified by:
        addInitializer in interface com.thoughtworks.qdox.builder.Builder
      • beginConstructor

        public void beginConstructor()
        Specified by:
        beginConstructor in interface com.thoughtworks.qdox.builder.Builder
      • endConstructor

        public void endConstructor​(com.thoughtworks.qdox.parser.structs.MethodDef def)
        Specified by:
        endConstructor in interface com.thoughtworks.qdox.builder.Builder
      • beginMethod

        public void beginMethod()
        Specified by:
        beginMethod in interface com.thoughtworks.qdox.builder.Builder
      • endMethod

        public void endMethod​(com.thoughtworks.qdox.parser.structs.MethodDef def)
        Specified by:
        endMethod in interface com.thoughtworks.qdox.builder.Builder
      • beginField

        public void beginField​(com.thoughtworks.qdox.parser.structs.FieldDef def)
        Specified by:
        beginField in interface com.thoughtworks.qdox.builder.Builder
      • endField

        public void endField()
        Specified by:
        endField in interface com.thoughtworks.qdox.builder.Builder
      • addParameter

        public void addParameter​(com.thoughtworks.qdox.parser.structs.FieldDef fieldDef)
        Specified by:
        addParameter in interface com.thoughtworks.qdox.builder.Builder
      • addAnnotation

        public void addAnnotation​(com.thoughtworks.qdox.parser.structs.AnnoDef annotation)
        Specified by:
        addAnnotation in interface com.thoughtworks.qdox.builder.Builder
      • addArgument

        public void addArgument​(com.thoughtworks.qdox.parser.expression.ExpressionDef argument)
        Specified by:
        addArgument in interface com.thoughtworks.qdox.builder.Builder
      • getSource

        public com.thoughtworks.qdox.model.JavaSource getSource()
        Specified by:
        getSource in interface com.thoughtworks.qdox.builder.Builder
      • setUrl

        public void setUrl​(URL url)
        Specified by:
        setUrl in interface com.thoughtworks.qdox.builder.Builder
      • setModule

        public void setModule​(com.thoughtworks.qdox.parser.structs.ModuleDef moduleDef)
        Specified by:
        setModule in interface com.thoughtworks.qdox.builder.Builder
      • addExports

        public void addExports​(com.thoughtworks.qdox.parser.structs.ModuleDef.ExportsDef exportsDef)
        Specified by:
        addExports in interface com.thoughtworks.qdox.builder.Builder
      • addRequires

        public void addRequires​(com.thoughtworks.qdox.parser.structs.ModuleDef.RequiresDef requiresDef)
        Specified by:
        addRequires in interface com.thoughtworks.qdox.builder.Builder
      • addOpens

        public void addOpens​(com.thoughtworks.qdox.parser.structs.ModuleDef.OpensDef opensDef)
        Specified by:
        addOpens in interface com.thoughtworks.qdox.builder.Builder
      • addProvides

        public void addProvides​(com.thoughtworks.qdox.parser.structs.ModuleDef.ProvidesDef providesDef)
        Specified by:
        addProvides in interface com.thoughtworks.qdox.builder.Builder
      • addUses

        public void addUses​(com.thoughtworks.qdox.parser.structs.ModuleDef.UsesDef usesDef)
        Specified by:
        addUses in interface com.thoughtworks.qdox.builder.Builder
      • getModuleInfo

        public com.thoughtworks.qdox.model.JavaModule getModuleInfo()
        Specified by:
        getModuleInfo in interface com.thoughtworks.qdox.builder.Builder