xjavadoc.filesystem
public final class FileSourceSet extends Object implements SourceSet
UNKNOWN: 14. mars 2002
| Nested Class Summary | |
|---|---|
| class | FileSourceSet.DirectoryFilter
FileFilter that only accepts directories
|
| class | FileSourceSet.JavaSourceFilter
FileFilter that only accepts java sources
|
| Field Summary | |
|---|---|
| int | hash
overridden hash code |
| File | _dir
root directory |
| ArrayList | _files
source files |
| Constructor Summary | |
|---|---|
| FileSourceSet(File dir, String[] files)
Constructs a new FileSourceSet. | |
| FileSourceSet(File fileOrDir)
Creates a SoureSet from a directory or a file. | |
| Method Summary | |
|---|---|
| boolean | containsAbsolute(String filename)
whether source set contains given absolute file name
|
| boolean | containsRelative(String filename)
whether source set contains relative file name
|
| boolean | equals(Object o)
Compares with another object. |
| File | getDir()
Gets the root directory of the source files.
|
| AbstractFile[] | getFiles()
Gets the files contained in the source set.
|
| String | getQualifiedName(int i)
Gets the fully qualified class name of the i'th file in the instance.
|
| String | getQualifiedName(String relativeFileName)
Gets the fully qualified class name for a relative file
|
| String | getRelativeFileName(String qualifiedName)
Gets the relative file name (relative to dir) for a fully qualified class
name
|
| int | getSize()
Returns the number of files in the instance
|
| AbstractFile | getSourceFile(String qualifiedName)
Gets the File containing the source of the class. |
| int | hashCode() |
Parameters: dir The root directory of the java sources files The desired files under the root directory
Parameters: fileOrDir
Parameters: filename absolute filename to check
Returns:
Parameters: filename relative filename to check
Returns:
Parameters: o object to compare
Returns: true if they are equal
Returns: the root directory of the source files.
Returns:
Parameters: i the index of the class
Returns: fully qualified class name
Parameters: relativeFileName filename relative to the dir
Returns: fully qualified class name
Parameters: qualifiedName fully qualified class name
Returns: the relative file name
Returns: the number of files in the instance
Parameters: qualifiedName fully qualified class name of the source file to find.
Returns: the File containing the source of the class