JavaNCSS Metric Results

[ package ] [ object ] [ method ] [ explanation ]

The following document contains the results of a JavaNCSS metric analysis.
JavaNCSS web site.

Packages

[ package ] [ object ] [ method ] [ explanation ]

Packages sorted by NCSS.

PackageClassesMethodsNCSSJavadocsJavadoc linesSingle lines commentMulti lines comment
org.apache.myfaces.tobago.example.test6634532610109
org.apache.myfaces.tobago.example.reference3145300248
Classes totalMethods totalNCSS totalJavadocsJavadoc linesSingle lines commentMulti lines comment
9775062612157

Methods

[ package ] [ object ] [ method ] [ explanation ]

TOP 30 Methods containing the most NCSS.

MethodsNCSSCCNJavadocs
org.apache.myfaces.tobago.example.test.TestBean.setTable(UISheet)41110
org.apache.myfaces.tobago.example.test.TestBean.select(String)3780
org.apache.myfaces.tobago.example.test.TestBean.TestBean()2850
org.apache.myfaces.tobago.example.test.TestBean.select()1420
org.apache.myfaces.tobago.example.test.ExportUIDataToWorkbookUtils.addColumnValues(HSSFSheet,List,UIData,FacesContext)1240
org.apache.myfaces.tobago.example.test.SessionController.getDateItems()1120
org.apache.myfaces.tobago.example.test.ExportUIDataToWorkbookUtils.writeWorkbook(UIData,String,FacesContext)1030
org.apache.myfaces.tobago.example.test.ExportUIDataToWorkbookUtils.addColumnValue(HSSFRow,UIComponent,int,FacesContext)1050
org.apache.myfaces.tobago.example.test.TestBean.getFileMenu()940
org.apache.myfaces.tobago.example.test.ExportUIDataToWorkbookUtils.createWorkbook(UIData,FacesContext)910
org.apache.myfaces.tobago.example.test.SessionController.actionListener(ActionEvent)850
org.apache.myfaces.tobago.example.reference.DynamicTag.doStartTag()820
org.apache.myfaces.tobago.example.test.ExportUIDataToWorkbookUtils.getColumns(UIData)740
org.apache.myfaces.tobago.example.test.SessionController.checkDates()620
org.apache.myfaces.tobago.example.test.SolarServlet.invokeApplication(FacesContext)510
org.apache.myfaces.tobago.example.test.TestBean.export()510
org.apache.myfaces.tobago.example.test.ExportUIDataToWorkbookUtils.addColumnHeaders(HSSFSheet,List,FacesContext)520
org.apache.myfaces.tobago.example.test.ExportUIDataToWorkbookUtils.addRow(HSSFSheet,int,List,FacesContext)520
org.apache.myfaces.tobago.example.test.TestBean.addMenuCommand(UIMenu)410
org.apache.myfaces.tobago.example.test.TestBean.getSolarObjects()420
org.apache.myfaces.tobago.example.test.SessionController.SessionController()410
org.apache.myfaces.tobago.example.reference.DynamicTag.doEndTag()420
org.apache.myfaces.tobago.example.test.TestBean.layout()310
org.apache.myfaces.tobago.example.test.TestBean.setFile(FileItem)310
org.apache.myfaces.tobago.example.test.SessionController.getTabChangeListener()310
org.apache.myfaces.tobago.example.test.SessionController.setTabChangeListener(TabChangeListener)310
org.apache.myfaces.tobago.example.test.SimpleTabChangeListener.processTabChange(TabChangeEvent)310
org.apache.myfaces.tobago.example.test.TestBean.getDate()210
org.apache.myfaces.tobago.example.test.TestBean.setDate(Date)210
org.apache.myfaces.tobago.example.test.TestBean.getDate1()210

Averages.

Program NCSSNCSS averageCCN averageJavadocs average
506.004.561.590.00

Explanations

[ package ] [ object ] [ method ] [ explanation ]

Non Commenting Source Statements (NCSS)

Statements for JavaNCSS are not statements as specified in the Java Language Specification but include all kinds of declarations too. Roughly spoken, NCSS is approximately equivalent to counting ';' and '{' characters in Java source files.

Not counted are empty statements, empty blocks or semicolons after closing brackets. Of course, comments don't get counted too. Closing brackets also never get counted, the same applies to blocks in general.

Examples
Package declarationpackage java.lang;
Import declarationimport java.awt.*;
Class declaration
  • public class Foo {
  • public class Foo extends Bla {
Interface declarationpublic interface Able ; {
Field declaration
  • int a;
  • int a, b, c = 5, d = 6;
Method declaration
  • public void cry();
  • public void gib() throws DeadException {
Constructor declarationpublic Foo() {
Constructor invocation
  • this();
  • super();
Statement declaration
  • i = 0;
  • if (ok)
  • if (exit) {
  • if (3 == 4);
  • if (4 == 4) { ;
  • } else {
Label declarationfine :
In some cases consecutive semicolons are illegal according to the JLS but JavaNCSS still tolerates them (thought