Package Cube.codemetric.definition

Examples of Cube.codemetric.definition.MetricDefinition


    }
   
    private void putMethodNameMethodNumParameters(ReaderFile reader, State state) throws NumberFormatException {
        Parameter parameter = new Parameter(reader);
        HashMap hm = parameter.getArrayInfo(reader);
        MetricDefinition METHODNAME;
        Set set = hm.entrySet();
        Iterator i = set.iterator();
        while (i.hasNext()) {
            Map.Entry me = (Map.Entry) i.next();
            METHODNAME = new MetricDefinition(DataStoreDefinition.METHOD_NAME + me.getKey().toString());
            state.put(METHODNAME.getName(), Double.parseDouble(me.getValue().toString()));
        }
    }
View Full Code Here


    }
   
    private void putMethodNameMethodLineMethods(ReaderFile reader, State state) throws NumberFormatException, FileNotFoundException, IOException {
        Methods method = new Methods(reader);
        HashMap hm = method.getArrayInfo(reader);
        MetricDefinition METHODNAME;
        Set set = hm.entrySet();
        Iterator i = set.iterator();
        while (i.hasNext()) {
            Map.Entry me = (Map.Entry) i.next();
            METHODNAME = new MetricDefinition(DataStoreDefinition.METHOD_LINES + me.getKey().toString());
            state.put(METHODNAME.getName(), Double.parseDouble(me.getValue().toString()));
        }
    }
View Full Code Here

        }
    }
   
    private State putCyclomaticComplexMethod(ReaderFile reader, State state) throws NumberFormatException, IOException {
        ComplexCyclomatic complex = new ComplexCyclomatic();
        MetricDefinition METHODNAME;
        HashMap list = complex.getListMethodsCyclomaticComplex(reader);
        Set set = list.entrySet();
        Iterator i = set.iterator();
        while (i.hasNext()) {
            Map.Entry me = (Map.Entry) i.next();
            METHODNAME = new MetricDefinition(DataStoreDefinition.CYCLOMATIC_COMPLEXITY + me.getKey().toString());
            state.put(METHODNAME.getName(), Double.parseDouble(me.getValue().toString()));
        }
        return state;
    }
View Full Code Here

TOP

Related Classes of Cube.codemetric.definition.MetricDefinition

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.