Package Package.Files

Examples of Package.Files.ReaderFile


    public NumberLinesEffectives() {
    }
   
    @Test
    public void NumberLinesEffectives() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        LinesEffectives numlineseffectives = new LinesEffectives(reader);
        assertEquals(numlineseffectives.getCount(), 61);
    }
View Full Code Here


    public NumberLines(){
    }
   
    @Test
    public void NumberLines() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Lines numlines = new Lines(reader);
        assertEquals(numlines.getCount(), 75);
    }
View Full Code Here

        double percentEffectives = 0.;
        int totalLines = 0;
        int totalEffectives = 0;
        MediaLinesMethods medialinesmethods = null;

        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());
     
            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());

            System.out.println("Numero de lineas: " + reader.getNumLinesFile());

            totalLines += reader.getNumLinesFile();

            System.out.println("Numero de lineas efectivas: " + lineseffectives.getCount());

            totalEffectives += lineseffectives.getCount();
View Full Code Here

    public NumberLinesEffectives() {
    }
   
    @Test
    public void NumberLinesEffectives() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        LinesEffectives numlineseffectives = new LinesEffectives(reader);
        assertEquals(numlineseffectives.getCount(), 61);
    }
View Full Code Here

    public NumberAttributes() {
    }
   
    @Test
    public void totalNumberAttributes() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Attribute numAttributes = new Attribute(reader);
        assertEquals(numAttributes.getCount(), 2);
    }
View Full Code Here

        assertEquals(numAttributes.getCount(), 2);
    }
   
    @Test
    public void NumberAttributesByMethods() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Attribute numAttributes = new Attribute(reader);
        ArrayList<Integer> listNumberAttributes = new ArrayList();
        listNumberAttributes = numAttributes.AttributeForMethodo();
       
        for(int a=0; a<listNumberAttributes.size(); a++){
View Full Code Here

    public NumberLines(){
    }
   
    @Test
    public void NumberLines() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Lines numlines = new Lines(reader);
        assertEquals(numlines.getCount(), 75);
    }
View Full Code Here

    public NumberAttributes() {
    }
   
    @Test
    public void totalNumberAttributes() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Attribute numAttributes = new Attribute(reader);
        assertEquals(numAttributes.getCount(), 2);
    }
View Full Code Here

        assertEquals(numAttributes.getCount(), 2);
    }
   
    @Test
    public void NumberAttributesByMethods() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Attribute numAttributes = new Attribute(reader);
        ArrayList<Integer> listNumberAttributes = new ArrayList();
        listNumberAttributes = numAttributes.AttributeForMethodo();
       
        for(int a=0; a<listNumberAttributes.size(); a++){
View Full Code Here

    }

    private int getAfferenceImports() throws FileNotFoundException, IOException {
        int num = 0;
        for (String path : pathfolders) {
            readerpath = new ReaderFile(path);
            num = getImportsAfferences(num);
        }
        return num;
    }
View Full Code Here

TOP

Related Classes of Package.Files.ReaderFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.