类 DefaultModelWriter

java.lang.Object
com.thoughtworks.qdox.writer.impl.DefaultModelWriter
所有已实现的接口:
ModelWriter

public class DefaultModelWriter extends Object implements ModelWriter
  • 构造器详细资料

    • DefaultModelWriter

      public DefaultModelWriter()
  • 方法详细资料

    • getBuffer

      protected final IndentBuffer getBuffer()
      All information is written to this buffer. When extending this class you should write to this buffer
      返回:
      the buffer
    • writeSource

      public ModelWriter writeSource(JavaSource source)
      Write the complete source file A standard source writer should write:
      • the package
      • the imports
      • the classes
      指定者:
      writeSource 在接口中 ModelWriter
      参数:
      source - the source
      返回:
      itself
    • writePackage

      public ModelWriter writePackage(JavaPackage pckg)
      Write the java package A standard package writer should write:
      • the javadoc
      • the annotations
      • the package signature
      指定者:
      writePackage 在接口中 ModelWriter
      参数:
      pckg - the package
      返回:
      itself
    • writeClass

      public ModelWriter writeClass(JavaClass cls)
      Write the java class A standard class writer should write:
      • the javadoc
      • the annotations
      • the class signature, containing:
        • the fields
        • the constructors
        • the methods
      指定者:
      writeClass 在接口中 ModelWriter
      参数:
      cls - the class
      返回:
      itself
    • writeInitializer

      public ModelWriter writeInitializer(JavaInitializer init)
      Write the initializer.
      指定者:
      writeInitializer 在接口中 ModelWriter
      参数:
      init - the initializer
      返回:
      itself
    • writeField

      public ModelWriter writeField(JavaField field)
      Write the java field A standard field writer should write:
      • the javadoc
      • the annotations
      • the field signature
      指定者:
      writeField 在接口中 ModelWriter
      参数:
      field - the field
      返回:
      itself
    • writeConstructor

      public ModelWriter writeConstructor(JavaConstructor constructor)
      Write the java constructor. A standard constructor writer should write:
      • the javadoc
      • the annotations
      • the constructor signature, containing:
        • the parameters
      指定者:
      writeConstructor 在接口中 ModelWriter
      参数:
      constructor - the constructor
      返回:
      itself
    • writeMethod

      public ModelWriter writeMethod(JavaMethod method)
      Write the java method A standard method writer should write:
      • the javadoc
      • the annotations
      • the method signature, containing:
        • the parameters
      指定者:
      writeMethod 在接口中 ModelWriter
      参数:
      method - the method
      返回:
      itself
    • writeAnnotation

      public ModelWriter writeAnnotation(JavaAnnotation annotation)
      Write the java annotation A standard annotation writer should write:
      • the annotation signature
      指定者:
      writeAnnotation 在接口中 ModelWriter
      参数:
      annotation - the annotation
      返回:
      itself
    • writeParameter

      public ModelWriter writeParameter(JavaParameter parameter)
      Write the java parameter A standard parameter writer should write:
      • the javadoc
      • the annotations
      • the parameter signature
      指定者:
      writeParameter 在接口中 ModelWriter
      参数:
      parameter - the parameter
      返回:
      itself
    • commentHeader

      protected void commentHeader(JavaAnnotatedElement entity)
    • writeModuleDescriptor

      public ModelWriter writeModuleDescriptor(JavaModuleDescriptor descriptor)
      Write the module descriptor A standard module descriptor writer should write:
      • the javadoc
      • the annotations
      • the module signature, containing:
        • the requires statements
        • the exports statements
        • the opens statements
        • the uses statements
        • the provides statements
      指定者:
      writeModuleDescriptor 在接口中 ModelWriter
      参数:
      descriptor - the module declaration
      返回:
      itself
    • writeModuleExports

      public ModelWriter writeModuleExports(JavaModuleDescriptor.JavaExports exports)
      Write the module descriptors exports
      指定者:
      writeModuleExports 在接口中 ModelWriter
      参数:
      exports - the exports module statement
      返回:
      itself
    • writeModuleOpens

      public ModelWriter writeModuleOpens(JavaModuleDescriptor.JavaOpens opens)
      Write the module descriptors opens
      指定者:
      writeModuleOpens 在接口中 ModelWriter
      参数:
      opens - the opens module statement
      返回:
      itself
    • writeModuleProvides

      public ModelWriter writeModuleProvides(JavaModuleDescriptor.JavaProvides provides)
      Write the module descriptors provides
      指定者:
      writeModuleProvides 在接口中 ModelWriter
      参数:
      provides - the provides module statement
      返回:
      itself
    • writeModuleRequires

      public ModelWriter writeModuleRequires(JavaModuleDescriptor.JavaRequires requires)
      Write the module descriptors requires
      指定者:
      writeModuleRequires 在接口中 ModelWriter
      参数:
      requires - the requires module statement
      返回:
      itself
    • writeModuleUses

      public ModelWriter writeModuleUses(JavaModuleDescriptor.JavaUses uses)
      Write the module descriptors uses
      指定者:
      writeModuleUses 在接口中 ModelWriter
      参数:
      uses - the uses module statement
      返回:
      itself
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object