|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.File
edu.rice.cs.util.NullFile
public class NullFile
A null file. This class is NOT a singleton because we need multiple, distinct null files for untitled documents. The equals method is overridden so that distinct NullFile objects (which all have the same path) are unequal.
| Field Summary | |
|---|---|
private static int |
ct
|
| Fields inherited from class java.io.File |
|---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
|---|---|
|
NullFile()
|
private |
NullFile(java.lang.String lexiName)
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
All distinct objects of type NullFile are unequal. |
java.lang.String |
getLexiName()
|
java.lang.String |
getName()
|
java.lang.String |
toString()
|
| Methods inherited from class java.io.File |
|---|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, 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, toURI, toURL |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static volatile int ct
| Constructor Detail |
|---|
public NullFile()
private NullFile(java.lang.String lexiName)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.io.Filepublic java.lang.String getName()
getName in class java.io.Filepublic java.lang.String getLexiName()
public boolean equals(java.lang.Object o)
equals in class java.io.File
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||