示例#1
0
  public NOM(SystemObject system) {
    classesMap = new HashMap<String, Double>();

    Set<ClassObject> classes = system.getClassObjects();

    for (ClassObject classObject : classes) {
      double methods = computeMethods(classObject);
      if (methods != -1) {
        classesMap.put(classObject.getName(), methods);
      }
    }
  }
示例#2
0
  private int computeMethods(ClassObject classObject) {

    List<MethodObject> methods = classObject.getMethodList();
    return (methods.size());
  }