Home | History | Annotate | Download | only in jdiff

Lines Matching refs:classDiff

249         ClassDiff classDiff = new ClassDiff(oldClass.name_);
250 classDiff.isInterface_ = newClass.isInterface_; // Used in the report
254 classDiff.modifiersChange_ = "Changed from ";
256 classDiff.modifiersChange_ += "an interface to a class.";
258 classDiff.modifiersChange_ += "a class to an interface.";
262 String inheritanceChange = ClassDiff.diff(oldClass, newClass);
264 classDiff.inheritanceChange_ = inheritanceChange;
274 classDiff.addModifiersChange(changeText);
279 String fqName = pkgDiff.name_ + "." + classDiff.name_;
281 String id = pkgDiff.name_ + "." + classDiff.name_ + "!class";
282 String title = link + "Class <b>" + classDiff.name_ + "</b></a>";
283 classDiff.documentationChange_ = Diff.saveDocDiffs(pkgDiff.name_,
284 classDiff.name_, oldClass.doc_, newClass.doc_, id, title);
296 classDiff.addModifiersChange(modifiersChange);
300 compareAllCtors(oldClass, newClass, classDiff);
302 compareAllMethods(oldClass, newClass, classDiff);
304 compareAllFields(oldClass, newClass, classDiff);
316 pkgDiff.classesChanged.add(classDiff);
318 // Get the numbers of affected elements from the classDiff object
320 classDiff.ctorsRemoved.size() + classDiff.ctorsAdded.size() +
321 classDiff.ctorsChanged.size() +
322 classDiff.methodsRemoved.size() + classDiff.methodsAdded.size() +
323 classDiff.methodsChanged.size() +
324 classDiff.fieldsRemoved.size() + classDiff.fieldsAdded.size() +
325 classDiff.fieldsChanged.size();
337 classDiff.pdiff = 0.0; // 100.0 is too much
349 System.out.println(" Class " + classDiff.name_ + " had a difference of " + differs + "/" + denom.intValue());
350 classDiff.pdiff = 100.0 * differs/denom.doubleValue();
360 ClassDiff classDiff) {
392 String fqName = pkgDiff.name_ + "." + classDiff.name_;
395 String id = pkgDiff.name_ + "." + classDiff.name_ + ".ctor(" + HTMLReportGenerator.simpleName(type) + ")";
396 String title = link1 + "Class <b>" + classDiff.name_ +
397 "</b></a>, " + link2 + "constructor <b>" + classDiff.name_ + "(" + HTMLReportGenerator.simpleName(type) + ")</b></a>";
399 pkgDiff.name_, classDiff.name_, oldCtor.doc_, newCtor.doc_, id, title);
408 classDiff.ctorsChanged.add(memberDiff);
413 classDiff.ctorsRemoved.add(oldCtor);
428 classDiff.ctorsAdded.add(newCtor);
450 public boolean compareAllMethods(ClassAPI oldClass, ClassAPI newClass, ClassDiff classDiff) {
502 compareMethods(oldMethod, newMethod, classDiff);
511 classDiff.methodsRemoved.add(oldMethod);
551 classDiff.methodsAdded.add(newMethod);
563 public boolean compareMethods(MethodAPI oldMethod, MethodAPI newMethod, ClassDiff classDiff) {
639 String fqName = pkgDiff.name_ + "." + classDiff.name_;
642 String id = pkgDiff.name_ + "." + classDiff.name_ + ".dmethod." + newMethod.name_ + "(" + HTMLReportGenerator.simpleName(sig) + ")";
643 String title = link1 + "Class <b>" + classDiff.name_ + "</b></a>, " +
645 methodDiff.documentationChange_ = Diff.saveDocDiffs(pkgDiff.name_, classDiff.name_, oldMethod.doc_, newMethod.doc_, id, title);
654 System.out.println("JDiff: warning: change from deprecated to undeprecated for method " + classDiff.name_ + "." + newMethod.name_);
670 classDiff.methodsChanged.add(methodDiff);
680 ClassDiff classDiff) {
753 String fqName = pkgDiff.name_ + "." + classDiff.name_;
756 String id = pkgDiff.name_ + "." + classDiff.name_ + ".field." + newField.name_;
757 String title = link1 + "Class <b>" + classDiff.name_ + "</b></a>, " +
759 memberDiff.documentationChange_ = Diff.saveDocDiffs(pkgDiff.name_, classDiff.name_, oldField.doc_, newField.doc_, id, title);
771 classDiff.fieldsChanged.add(memberDiff);
777 classDiff.fieldsRemoved.add(oldField);
799 classDiff.fieldsAdded.add(newField);