File folder = new File("src");
FilesFolders numfiles = new FilesFolders(folder);
Classes numclasses = new Classes(reader);
Packages packages = new Packages(new File("src"));
ArrayList<String> arrayfiles = numfiles.getArrayListFiles();
for (String path : arrayfiles) {
System.out.println("-------" + path + "-------");
reader = new ReaderFile(path);
LinesEffectives lineseffectives = new LinesEffectives(reader);
Methods numMethods = new Methods(reader);
if (numMethods.getCount() > 0) {
medialinesmethods = new MediaLinesMethods(reader);
}
MediaSizeFiles mediasize = new MediaSizeFiles(folder);
System.out.println("Numero de ficheros .java en el directorio: " + numfiles.getCount());
System.out.println("Numero de paquetes efectivos del directorio: " + packages.getCount());
System.out.println("Numero de clases del fichero: " + numclasses.getCount());
System.out.println("Tamaño total de ficheros del directorio en (bytes): " + mediasize.getSizeTotalFolder() + " bytes");
System.out.println("Tamaño Medio de ficheros del directorio en (bytes): " + mediasize.getCount());