Class ModifyableModelBuilder

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

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

      Constructors 
      Constructor Description
      ModifyableModelBuilder​(com.thoughtworks.qdox.library.ClassLibrary classLibrary, com.thoughtworks.qdox.model.DocletTagFactory docletTagFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAnnotation​(com.thoughtworks.qdox.parser.structs.AnnoDef annotation)  
      void addArgument​(com.thoughtworks.qdox.parser.expression.ExpressionDef argument)  
      void addExports​(com.thoughtworks.qdox.parser.structs.ModuleDef.ExportsDef exportsDef)  
      void addImport​(java.lang.String importName)  
      void addInitializer​(com.thoughtworks.qdox.parser.structs.InitDef def)  
      void addJavaDoc​(java.lang.String text)  
      void addJavaDocTag​(com.thoughtworks.qdox.parser.structs.TagDef tagDef)  
      void addOpens​(com.thoughtworks.qdox.parser.structs.ModuleDef.OpensDef opensDef)  
      void addPackage​(com.thoughtworks.qdox.parser.structs.PackageDef packageDef)  
      void addParameter​(com.thoughtworks.qdox.parser.structs.FieldDef fieldDef)  
      void addProvides​(com.thoughtworks.qdox.parser.structs.ModuleDef.ProvidesDef providesDef)  
      void addRequires​(com.thoughtworks.qdox.parser.structs.ModuleDef.RequiresDef requiresDef)  
      void addUses​(com.thoughtworks.qdox.parser.structs.ModuleDef.UsesDef usesDef)  
      void beginClass​(com.thoughtworks.qdox.parser.structs.ClassDef def)  
      void beginConstructor()  
      void beginField​(com.thoughtworks.qdox.parser.structs.FieldDef def)  
      void beginMethod()  
      protected ModifyableJavaClass bindClass​(ModifyableJavaClass newClass)  
      void endClass()  
      void endConstructor​(com.thoughtworks.qdox.parser.structs.MethodDef def)  
      void endField()  
      void endMethod​(com.thoughtworks.qdox.parser.structs.MethodDef def)  
      com.thoughtworks.qdox.model.JavaModule getModuleInfo()  
      com.thoughtworks.qdox.model.JavaSource getSource()  
      void setModelWriterFactory​(com.thoughtworks.qdox.writer.ModelWriterFactory modelWriterFactory)  
      void setModule​(com.thoughtworks.qdox.parser.structs.ModuleDef moduleDef)  
      void setUrl​(java.net.URL url)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.String importName)
        Specified by:
        addImport in interface com.thoughtworks.qdox.builder.Builder
      • addJavaDoc

        public void addJavaDoc​(java.lang.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​(java.net.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