|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--xjavadoc.filesystem.FileSourceSet
This class represents a set of Java source files. It designs a directory and an optional array of files. The size() and getQualifiedName( int ) methods depend on what files were passed in the constructor. The getSourceFile( String ) will work regardless of wether the class was instantiated with files or not (provided the file exists).
| Constructor Summary | |
FileSourceSet(File fileOrDir)
Creates a SoureSet from a directory or a file. |
|
FileSourceSet(File dir,
String[] files)
Constructs a new FileSourceSet. |
|
| 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. |
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. |
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()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileSourceSet(File dir,
String[] files)
dir - The root directory of the java sourcesfiles - The desired files under the root directorypublic FileSourceSet(File fileOrDir)
fileOrDir - | Method Detail |
public AbstractFile[] getFiles()
getFiles in interface SourceSetpublic AbstractFile getSourceFile(String qualifiedName)
getSourceFile in interface SourceSetqualifiedName - fully qualified class name of the source file to find.
public String getQualifiedName(int i)
getQualifiedName in interface SourceSeti - the index of the class
public int getSize()
getSize in interface SourceSetpublic boolean containsAbsolute(String filename)
filename - absolute filename to check
public boolean containsRelative(String filename)
filename - relative filename to check
public boolean equals(Object o)
equals in class Objecto - object to compare
public int hashCode()
hashCode in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||