patterntesting.runtime.monitor
Class ClassWalker

Package class diagram package ClassWalker
java.lang.Object
  extended by org.apache.commons.io.DirectoryWalker
      extended by patterntesting.runtime.monitor.ClassWalker

public final class ClassWalker
extends org.apache.commons.io.DirectoryWalker

The Class ClassWalker.

Since:
14.04.2009
Version:
$Revision: 1.4 $
Author:
oliver

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.io.DirectoryWalker
org.apache.commons.io.DirectoryWalker.CancelException
 
Constructor Summary
ClassWalker(File dir)
          Instantiates a new class walker.
 
Method Summary
 Collection<String> getClasses()
          Walk thru the directories and return all class files as classname, e.g. a file java/lang/String.class should be returned as "java.lang.String".
protected  void handleFile(File file, int depth, Collection results)
           
 
Methods inherited from class org.apache.commons.io.DirectoryWalker
checkIfCancelled, handleCancelled, handleDirectory, handleDirectoryEnd, handleDirectoryStart, handleEnd, handleIsCancelled, handleRestricted, handleStart, walk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassWalker

public ClassWalker(File dir)
Instantiates a new class walker.

Parameters:
dir - the dir
Method Detail

getClasses

public Collection<String> getClasses()
                              throws IOException
Walk thru the directories and return all class files as classname, e.g. a file java/lang/String.class should be returned as "java.lang.String".

Returns:
a collection of classnames
Throws:
IOException - Signals that an I/O exception has occurred.

handleFile

protected void handleFile(File file,
                          int depth,
                          Collection results)
                   throws IOException
Overrides:
handleFile in class org.apache.commons.io.DirectoryWalker
Throws:
IOException
See Also:
DirectoryWalker.handleFile(java.io.File, int, java.util.Collection)


Copyright © 2002–2014 PatternTesting Team. All rights reserved.