diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/io/VirtualFile.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/io/VirtualFile.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/io/VirtualFile.scala b/src/compiler/scala/tools/nsc/io/VirtualFile.scala index 0b9c703757..ba86a165f7 100644 --- a/src/compiler/scala/tools/nsc/io/VirtualFile.scala +++ b/src/compiler/scala/tools/nsc/io/VirtualFile.scala @@ -47,6 +47,8 @@ class VirtualFile(val name: String, _path: String) extends AbstractFile { def path = _path + def absolute = this + /** Returns null. */ final def file: File = null @@ -77,6 +79,16 @@ class VirtualFile(val name: String, _path: String) extends AbstractFile { Iterator.empty } + /** Does this abstract file denote an existing file? */ + def create { + throw new UnsupportedOperationException + } + + /** Delete the underlying file or directory (recursively). */ + def delete { + throw new UnsupportedOperationException + } + /** * Returns the abstract file in this abstract directory with the * specified name. If there is no such file, returns null. The @@ -92,5 +104,11 @@ class VirtualFile(val name: String, _path: String) extends AbstractFile { null } + /** Returns an abstract file with the given name. It does not + * check that it exists. + */ + def lookupNameUnchecked(name: String, directory: Boolean): AbstractFile = + throw new UnsupportedOperationException() + //######################################################################## } |