Package org.apache.groovy.groovydoc.tools

# Class GroovyDocUtil

java.lang.Object
org.apache.groovy.groovydoc.tools.GroovyDocUtil

public class GroovyDocUtil extends Object
Utility methods for deriving package and file names from source paths.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GroovyDocUtil()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `getFile(String filename)`
  Returns the simple file name portion of the supplied source path.
  `static String`
  `getPath(String filename)`
  Returns the package-style path for the supplied source file name.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GroovyDocUtil

    public GroovyDocUtil()

- ## Method Details

  - ### getPath

    public static String getPath(String filename)
    Returns the package-style path for the supplied source file name.
    Parameters:
      `filename` - the source file name to inspect
    Returns:
      the parent path, or `DefaultPackage` when the source belongs to the default package

  - ### getFile

    public static String getFile(String filename)
    Returns the simple file name portion of the supplied source path.
    Parameters:
      `filename` - the source path to inspect
    Returns:
      the file name without its parent directories