|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxjavadoc.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(java.io.File fileOrDir)
Creates a SoureSet from a directory or a file. |
|
FileSourceSet(java.io.File dir,
java.lang.String[] files)
Constructs a new FileSourceSet. |
Method Summary | |
boolean |
containsAbsolute(java.lang.String filename)
whether source set contains given absolute file name |
boolean |
containsRelative(java.lang.String filename)
whether source set contains relative file name |
boolean |
equals(java.lang.Object o)
Compares with another object. |
AbstractFile[] |
getFiles()
Gets the files contained in the source set. |
java.lang.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(java.lang.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(java.io.File dir, java.lang.String[] files)
dir
- The root directory of the java sourcesfiles
- The desired files under the root directorypublic FileSourceSet(java.io.File fileOrDir)
fileOrDir
- Method Detail |
public AbstractFile[] getFiles()
getFiles
in interface SourceSet
public AbstractFile getSourceFile(java.lang.String qualifiedName)
getSourceFile
in interface SourceSet
qualifiedName
- fully qualified class name of the source file to find.
public java.lang.String getQualifiedName(int i)
getQualifiedName
in interface SourceSet
i
- the index of the class
public int getSize()
getSize
in interface SourceSet
public boolean containsAbsolute(java.lang.String filename)
filename
- absolute filename to check
public boolean containsRelative(java.lang.String filename)
filename
- relative filename to check
public boolean equals(java.lang.Object o)
o
- object to compare
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |