public class DotGroovyFile
extends java.io.File
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<java.lang.String> |
scriptExtensions
The file extensions to consider as Groovy files.
|
| Constructor and Description |
|---|
DotGroovyFile(java.io.File file)
A convenience constructor to turn a regular file into a DotGroovyFile.
|
DotGroovyFile(java.io.File parent,
java.lang.String child)
Constructs a new DotGroovyFile object with the specified parameters.
|
DotGroovyFile(java.lang.String pathname)
Constructs a new DotGroovyFile object with the specified parameters.
|
DotGroovyFile(java.lang.String parent,
java.lang.String child)
Constructs a new DotGroovyFile object with the specified parameters.
|
DotGroovyFile(java.net.URI uri)
Constructs a new DotGroovyFile object with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<java.lang.String> |
defaultScriptExtensions()
Default Groovy file extensions (currently '.groovy', '.gvy', '.gy', and '.gsh').
|
java.lang.String |
getName()
A method to lie about the file extension and say it is ".groovy".
|
java.util.Set<java.lang.String> |
getScriptExtensions()
Gets the script extensions for this Groovy file.
|
DotGroovyFile |
setScriptExtensions(java.util.Set<java.lang.String> newScriptExtensions)
Sets the script extensions for this Groovy file.
|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURLprivate java.util.Set<java.lang.String> scriptExtensions
public DotGroovyFile(java.lang.String pathname)
pathname - Pathname to use to create DotGroovyFilepublic DotGroovyFile(java.lang.String parent,
java.lang.String child)
parent - Parent pathname to use to create DotGroovyFilechild - Child pathname to use to create DotGroovyFilepublic DotGroovyFile(java.io.File parent,
java.lang.String child)
parent - Parent file to use to create DotGroovyFilechild - Child pathname to use to create DotGroovyFilepublic DotGroovyFile(java.net.URI uri)
uri - URI to use to create DotGroovyFilepublic DotGroovyFile(java.io.File file)
file - File to use to create DotGroovyFilepublic static java.util.Set<java.lang.String> defaultScriptExtensions()
public java.lang.String getName()
getName in class java.io.Filepublic java.util.Set<java.lang.String> getScriptExtensions()
public DotGroovyFile setScriptExtensions(java.util.Set<java.lang.String> newScriptExtensions)
newScriptExtensions - The script extensions to set on this Groovy file