Package Methods.Methods

Examples of Methods.Methods.MethodHash


public class ComplexCyclomatic implements Metric {
   
    public ComplexCyclomatic() {}

    public HashMap getListMethodsCyclomaticComplex(ReaderFile readerfile) throws IOException {
        MethodHash mh = new MethodHash(readerfile);
        MethodsFeatury method = new MethodsFeatury();
        HashMap complexcyclomatic = new HashMap();
        ReaderMethod readermethod;
        for (String line : readerfile.getArrayDataLines()) {
            if (method.isFunction(line)) {
                readermethod = new ReaderMethod(readerfile, mh.getNameMethod(line));
                complexcyclomatic.put(mh.getNameMethod(line), getNumComplex(readermethod));
            }
        }
        return complexcyclomatic;
    }
View Full Code Here


        }
        return isNotMethod;
    }

    public HashMap getListMethodsAndParams(ReaderFile readerfile) throws IOException {
        MethodHash mh = new MethodHash(readerfile);
        HashMap listMethodsAndParams = new HashMap();
        for (String line : readerfile.getArrayDataLines()) {
            getNumParameters(line, mh, listMethodsAndParams);
        }
        return listMethodsAndParams;
View Full Code Here

    private Boolean copy;

    public ReaderMethod(ReaderFile reader, String nameMethod) throws FileNotFoundException, IOException {
        this.reader = reader;
        this.nameMethod = nameMethod;
        this.methodhash = new MethodHash(reader);
        this.semaphore = new Semaphore();
        this.copy = false;
        this.method = new MethodsFeatury();
    }
View Full Code Here

TOP

Related Classes of Methods.Methods.MethodHash

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.