Package: org.apache.groovy.docgenerator

## [Groovy] Class PrimitiveNameRewriter

- org.apache.groovy.docgenerator.PrimitiveNameRewriter

-     class PrimitiveNameRewriter
      extends Object

  Post-process pass over groovydoc's HTML output that renames mock-class pages back to the historical Groovy-JDK URLs. Reads a manifest written by MockSourceGenerator — each line carries `mockPkg\tmockName\tdisplayPkg\tdisplayName`. For each entry:

  - moves `mockPkg/mockName.html` to `displayPkg/displayName.html`
  - rewrites references to both the file and the containing directory in every `.html` file in the output tree
  Also rewrites the header text (`Class PrimitiveInt` ? `Class int`, `Class ObjectArray` ? `Class Object[]`) and `<title>` strings.
  Since:
    6.0.0

- - ### Constructor Summary

    Constructors
    Constructor and description
    `PrimitiveNameRewriter()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `static void` | `rewrite(File outputDir, File manifestFile)` Rewrites generated GroovyDoc output to use historical Groovy JDK names and locations.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PrimitiveNameRewriter()

  - ### Method Detail

    - #### static void rewrite(File outputDir, File manifestFile)

      Rewrites generated GroovyDoc output to use historical Groovy JDK names and locations.

      Parameters:
        `outputDir` - directory containing generated documentation
        `manifestFile` - manifest that describes mock-to-display name mappings