summaryrefslogtreecommitdiff
path: root/sources/scala/tools/util/VirtualDirectory.java
blob: 597f52d14bbab4038fa48730da1205627511bc79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*     ____ ____  ____ ____  ______                                     *\
**    / __// __ \/ __// __ \/ ____/    SOcos COmpiles Scala             **
**  __\_ \/ /_/ / /__/ /_/ /\_ \       (c) 2002, LAMP/EPFL              **
** /_____/\____/\___/\____/____/                                        **
\*                                                                      */

// $Id$

package scala.tools.util;

/** This class implements an empty abstract directory. */
public class VirtualDirectory extends VirtualFile {

    //########################################################################
    // Public Constructors

    /**
     * Initializes this instance with the specified name and an
     * identical path.
     */
    public VirtualDirectory(String name) {
        this(name, name);
    }

    /** Initializes this instance with the specified name and path. */
    public VirtualDirectory(String name, String path) {
        super(name, path);
    }

    //########################################################################
    // Public Methods

    /** Is this abstract file a directory? */
    public boolean isDirectory() {
        return true;
    }

    //########################################################################
}