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 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