Class ClassWalker

java.lang.Object
org.apache.commons.io.DirectoryWalker<String>
clazzfish.monitor.internal.ResourceWalker
clazzfish.monitor.internal.ClassWalker

public class ClassWalker extends ResourceWalker
The Class ClassWalker.

This class is for internal use only. Originally it was part of the PatternTesting project.

Author:
oliver
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.commons.io.DirectoryWalker

    org.apache.commons.io.DirectoryWalker.CancelException
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new class walker.
  • Method Summary

    Modifier and Type
    Method
    Description
    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".

    Methods inherited from class clazzfish.monitor.internal.ResourceWalker

    getPackages, getResources, handleDirectory, handleFile

    Methods inherited from class org.apache.commons.io.DirectoryWalker

    checkIfCancelled, filterDirectoryContents, handleCancelled, 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 Details

    • ClassWalker

      public ClassWalker(File dir)
      Instantiates a new class walker.
      Parameters:
      dir - the dir to walk
  • Method Details

    • 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".

      See also DirectoryWalker.

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