Builds documentation for a method.
  • Methodendetails

    • getInstance

      public static MethodBuilder getInstance(AbstractBuilder.Context context, TypeElement typeElement, MethodWriter writer)
      Construct a new MethodBuilder.
      Parameter:
      context - the build context.
      typeElement - the class whose members are being documented.
      writer - the doclet specific writer.
      Gibt zurück:
      an instance of a MethodBuilder.
    • hasMembersToDocument

      public boolean hasMembersToDocument()
      Beschreibung aus Klasse kopiert: AbstractMemberBuilder
      Returns true if this subbuilder has anything to document.
      Angegeben von:
      hasMembersToDocument in Klasse AbstractMemberBuilder
      Gibt zurück:
      true if this subbuilder has anything to document
    • build

      public void build(Content target) throws DocletException
      Beschreibung aus Klasse kopiert: AbstractMemberBuilder
      Build the documentation.
      Angegeben von:
      build in Klasse AbstractMemberBuilder
      Parameter:
      target - the content into which to add the documentation
      Löst aus:
      DocletException - if there is a problem building the documentation
    • buildMethodDoc

      protected void buildMethodDoc(Content detailsList) throws DocletException
      Build the method documentation.
      Parameter:
      detailsList - the content to which the documentation will be added
      Löst aus:
      DocletException - if there is a problem while building the documentation
    • buildSignature

      protected void buildSignature(Content methodContent)
      Build the signature.
      Parameter:
      methodContent - the content to which the documentation will be added
    • buildDeprecationInfo

      protected void buildDeprecationInfo(Content methodContent)
      Build the deprecation information.
      Parameter:
      methodContent - the content to which the documentation will be added
    • buildPreviewInfo

      protected void buildPreviewInfo(Content methodContent)
      Build the preview information.
      Parameter:
      methodContent - the content to which the documentation will be added
    • buildMethodComments

      protected void buildMethodComments(Content methodContent)
      Build the comments for the method.

      Do nothing if BaseOptions.noComment() is set to true.

      Parameter:
      methodContent - the content to which the documentation will be added
    • buildTagInfo

      protected void buildTagInfo(Content methodContent)
      Build the tag information.
      Parameter:
      methodContent - the content to which the documentation will be added
    • getWriter

      Return the method writer for this builder.
      Gibt zurück:
      the method writer for this builder.