Class GroovyDocUtil
java.lang.Object
org.apache.groovy.groovydoc.tools.GroovyDocUtil
Utility methods for deriving package and file names from source paths.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GroovyDocUtil
public GroovyDocUtil()
-
-
Method Details
-
getPath
Returns the package-style path for the supplied source file name.- Parameters:
filename- the source file name to inspect- Returns:
- the parent path, or
DefaultPackagewhen the source belongs to the default package
-
getFile
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
-