|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jlayercheck.util.model.FilesystemClassSource
public class FilesystemClassSource
Field Summary | |
---|---|
protected String |
basedir
Directory where the other pathes are relative to |
protected String |
bin
Path to the .class files |
protected String |
src
Path to the .java files |
Constructor Summary | |
---|---|
FilesystemClassSource(String basedir,
String bin,
String src)
|
Method Summary | |
---|---|
void |
call(ClassVisitor v)
Runs the given DependencyVisitor on the classes of this source. |
protected void |
checkDirectory(ClassVisitor v,
File f)
|
protected Map<String,URL> |
findFiles(String base,
String src,
String extension)
Returns a map containing all sources found by a recursive search. |
String |
getBasedir()
|
String |
getBin()
|
Map<String,URL> |
getSourceFiles()
Returns a map that contains a mapping from the classname to the source file for a class for all classes found in the specified ClassSource. |
String |
getSrc()
|
void |
setBasedir(String basedir)
|
void |
setBin(String bin)
|
void |
setSrc(String src)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String bin
protected String src
protected String basedir
Constructor Detail |
---|
public FilesystemClassSource(String basedir, String bin, String src)
Method Detail |
---|
public void call(ClassVisitor v) throws IOException
ClassSource
call
in interface ClassSource
IOException
protected void checkDirectory(ClassVisitor v, File f) throws IOException, FileNotFoundException
IOException
FileNotFoundException
public Map<String,URL> getSourceFiles()
ClassSource
getSourceFiles
in interface ClassSource
protected Map<String,URL> findFiles(String base, String src, String extension)
src
- start directoryextension
- only files with this extension are added
public String getBin()
public void setBin(String bin)
public String getSrc()
public void setSrc(String src)
public String getBasedir()
public void setBasedir(String basedir)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |