ReaderFile reader = new ReaderFile("src/Class/Classes.java");
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());