Class/method counter, kind of buggy, unpleased

This commit is contained in:
2023-10-18 00:35:08 +03:00
parent 655813fc07
commit 8ee8648b2b
2 changed files with 44 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ public class CodeFile extends Document{
info.append("Extension: ").append(getExtension().toUpperCase()).append("<br>");
info.append("File size: ").append(getFilesizeKB()).append(" KB").append("<br>");
info.append("Lines: ").append(Utils.countLines(this)).append("<br>");
info.append("Classes: ").append(Utils.countClasses(this)).append("<br>");
info.append("Methods: ").append(Utils.countMethods(this)).append("<br>");
info.append("Created at: ").append(getCreatedTime()).append("<br>");
info.append("Modified at: ").append(getModificationTime()).append("<br>");
return info.toString();