public interface FileHierarchyTracingHandler
tracer.trace(srcDir, new FileHierarchyTracingHandler() {
public boolean isTargetFileOrDir(File currentFile) {
return currentFile.isDirectory() || currentFile.getName().endsWith(".java");
}
public void handleFile(File currentFile) {
...
}
}
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
handleFile(File currentFile)
Handle the file found by tracing.
|
boolean |
isTargetFileOrDir(File currentFile)
Is the file or directory trace target?
|
boolean isTargetFileOrDir(File currentFile)
currentFile - The object of current file, file or directory. (NotNull)void handleFile(File currentFile) throws IOException
currentFile - The object of current file, always file (not directory). (NotNull)IOException - When it fails by the IO failure.Copyright © 2014–2015 The DBFlute Project. All rights reserved.