public final void findCallingMethodsInDir ( final File dir , final FileFilter filter ) { final FileProcessor fileProcessor = new FileProcessor ( new FileHandler ( ) { @ Override public final FileHandlerResult handleFile ( final File file ) { if ( file . isDirectory ( ) ) { return FileHandlerResult . CONTINUE ; } if ( file . getName ( ) . endsWith ( ".class" ) && ( filter == null || filter . accept ( file ) ) ) { handleClass ( file ) ; } return FileHandlerResult . CONTINUE ; } } ) ; fileProcessor . process ( dir ) ; }
Locate method calls in classes of a directory .