|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjdepend.framework.FileManager
The FileManager class is responsible for
extracting Java class files (.class files)
from a collection of registered directories.
| Constructor Summary | |
|---|---|
FileManager()
Constructs an empty FileManager
instance. |
|
| Method Summary | |
|---|---|
boolean |
acceptClassFile(java.io.File file)
Indicates whether the specified file is a valid Java class file. |
boolean |
acceptClassFileName(java.lang.String name)
Indicates whether the specified file name is a valid Java class file. |
boolean |
acceptFile(java.io.File file)
Indicates whether the specified file is a valid file. |
void |
acceptInnerClasses(boolean b)
Determines whether inner classes should be collected. |
boolean |
acceptJarFile(java.io.File file)
Indicates whether the specified file is a valid jar file file. |
void |
addDirectory(java.lang.String name)
Adds the specified directory to the collection of directories to be managed. |
java.util.Collection |
extractFiles()
Returns the Java class files contained in the managed directories. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileManager()
FileManager
instance.
| Method Detail |
public void acceptInnerClasses(boolean b)
b - true to collect inner classes;
false otherwise.
public void addDirectory(java.lang.String name)
throws java.io.IOException
name - Directory name.
java.io.IOException - If the directory is invalid.public boolean acceptFile(java.io.File file)
file - Candidate file.
true if the file is valid;
false otherwise.public boolean acceptClassFile(java.io.File file)
file - Candidate file.
true if the file is valid;
false otherwise.public boolean acceptClassFileName(java.lang.String name)
name - Candidate file name.
true if the name is valid;
false otherwise.public boolean acceptJarFile(java.io.File file)
file - Candidate file.
true if the file is valid;
false otherwise.public java.util.Collection extractFiles()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||