JavaNCSS Metric Results

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

The following document contains the results of a JavaNCSS metric analysis, using JavaNCSS version 32.53.
JavaNCSS web site.

Packages

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

Packages sorted by NCSS.

PackageClassesMethodsNCSSJavadocsJavadoc linesSingle lines commentMulti lines comment
org.universAAL.ri.gateway.communicator.service.impl17947122320762328
org.universAAL.ri.gateway.eimanager.impl1260422009290
org.universAAL.ri.gateway.eimanager.impl.importing9623280913143
org.universAAL.ri.gateway.eimanager.impl.exporting1055326008201
org.universAAL.ri.gateway.communicator.service63999151291154
org.universAAL.ri.gateway.eimanager102685000200
org.universAAL.ri.gateway.eimanager.impl.registry62178000120
org.universAAL.ri.gateway.eimanager.impl.security247000040
org.universAAL.ri.gateway.communicator1247322020
org.universAAL.ri.gateway.eimanager.exception12700023
Classes totalMethods totalNCSS totalJavadocsJavadoc linesSingle lines commentMulti lines comment
74365217441367931519

Objects

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

TOP 30 classes containing the most NCSS.

ObjectNCSSMethodsClassesJavadocs
org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl25229110
org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl1601800
org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter1101105
org.universAAL.ri.gateway.eimanager.impl.exporting.ExportedProxyManager1001200
org.universAAL.ri.gateway.eimanager.impl.importing.ImportedProxyManager86800
org.universAAL.ri.gateway.communicator.service.impl.SocketCommunicationHandler66520
org.universAAL.ri.gateway.eimanager.impl.InternalEIOperation47900
org.universAAL.ri.gateway.eimanager.impl.importing.ImportRequest431600
org.universAAL.ri.gateway.communicator.service.impl.SecurityManager421000
org.universAAL.ri.gateway.communicator.service.impl.Serializer41900
org.universAAL.ri.gateway.eimanager.impl.importing.ProxyServiceCallee37610
org.universAAL.ri.gateway.eimanager.impl.importing.InternalImportOperation361300
org.universAAL.ri.gateway.eimanager.impl.EIOperationManager35510
org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyRegistration351100
org.universAAL.ri.gateway.eimanager.impl.ExportManagerImpl351200
org.universAAL.ri.gateway.communicator.service.Message33903
org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyUICaller32810
org.universAAL.ri.gateway.communicator.Activator31203
org.universAAL.ri.gateway.communicator.service.impl.MessageWrapper311008
org.universAAL.ri.gateway.communicator.service.GatewayCommunicator292007
org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyServiceCaller28700
org.universAAL.ri.gateway.eimanager.impl.security.ExportSecurityOperationInterceptor28200
org.universAAL.ri.gateway.eimanager.impl.security.ImportSecurityOperationInterceptor28200
org.universAAL.ri.gateway.eimanager.ImportEntry28900
org.universAAL.ri.gateway.communicator.service.impl.SecurityUtils25400
org.universAAL.ri.gateway.eimanager.impl.exporting.ExportProcessExecutor24300
org.universAAL.ri.gateway.eimanager.impl.importing.ImportProcessExecutor24300
org.universAAL.ri.gateway.eimanager.impl.importing.ProxyUIHandler23510
org.universAAL.ri.gateway.eimanager.impl.registry.NonPersistentExportImportRegistry22500
org.universAAL.ri.gateway.communicator.service.impl.SecurityEntry20700

TOP 30 classes containing the most methods.

ObjectNCSSMethodsClassesJavadocs
org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl25229110
org.universAAL.ri.gateway.communicator.service.GatewayCommunicator292007
org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl1601800
org.universAAL.ri.gateway.eimanager.impl.importing.ImportRequest431600
org.universAAL.ri.gateway.eimanager.impl.importing.InternalImportOperation361300
org.universAAL.ri.gateway.eimanager.impl.exporting.ExportedProxyManager1001200
org.universAAL.ri.gateway.eimanager.impl.ExportManagerImpl351200
org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter1101105
org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyRegistration351100
org.universAAL.ri.gateway.communicator.service.impl.MessageWrapper311008
org.universAAL.ri.gateway.communicator.service.impl.SecurityManager421000
org.universAAL.ri.gateway.communicator.service.impl.Serializer41900
org.universAAL.ri.gateway.communicator.service.Message33903
org.universAAL.ri.gateway.eimanager.impl.InternalEIOperation47900
org.universAAL.ri.gateway.eimanager.ImportEntry28900
org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyUICaller32810
org.universAAL.ri.gateway.eimanager.impl.importing.ImportedProxyManager86800
org.universAAL.ri.gateway.communicator.service.impl.SecurityEntry20700
org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyServiceCaller28700
org.universAAL.ri.gateway.eimanager.impl.importing.ProxyServiceCallee37610
org.universAAL.ri.gateway.eimanager.impl.ProxyBusMember18600
org.universAAL.ri.gateway.eimanager.impl.registry.EIRepoAccessManager15600
org.universAAL.ri.gateway.communicator.service.impl.SocketCommunicationHandler66520
org.universAAL.ri.gateway.eimanager.impl.EIOperationManager35510
org.universAAL.ri.gateway.eimanager.impl.importing.ProxyUIHandler23510
org.universAAL.ri.gateway.eimanager.impl.registry.NonPersistentExportImportRegistry22500
org.universAAL.ri.gateway.eimanager.impl.registry.RegistryEntry14500
org.universAAL.ri.gateway.communicator.service.impl.SecurityUtils25400
org.universAAL.ri.gateway.communicator.service.RemoteSpacesManager5400
org.universAAL.ri.gateway.eimanager.ExportManager5400

Averages.

NCSS averageProgram NCSSClasses averageMethods averageJavadocs average
24.282,174.000.114.930.55

Methods

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

TOP 30 Methods containing the most NCSS.

MethodsNCSSCCNJavadocs
org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl.handleMessage(InputStream,OutputStream)106310
org.universAAL.ri.gateway.eimanager.impl.exporting.ExportedProxyManager.reloadServices()34130
org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter.convertSecurityPropertiesToObjectNotation(Type,SecurityAction)33120
org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl.internalImportRemoteContextEvents(String,BusMember,ContextEventPattern[])3060
org.universAAL.ri.gateway.eimanager.impl.importing.ImportedProxyManager.registerProxies(InternalImportOperation)2790
org.universAAL.ri.gateway.eimanager.impl.exporting.ExportedProxyManager.registerProxies(ImportRequest)2660
org.universAAL.ri.gateway.eimanager.impl.InternalEIOperation.InternalEIOperation(BusMember,RepoOperation)2670
org.universAAL.ri.gateway.eimanager.impl.security.ExportSecurityOperationInterceptor.process(ImportRequest)25150
org.universAAL.ri.gateway.eimanager.impl.security.ImportSecurityOperationInterceptor.process(ImportRequest)25150
org.universAAL.ri.gateway.eimanager.impl.importing.ImportedProxyManager.refreshProxy(ProxyRegistration)23110
org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl.internalImportRemoteService(String,BusMember,String,String)2160
org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl.sendServiceRequest(Message,URL[],long)20121
org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl.unimportRemoteService(ImportEntry)1830
org.universAAL.ri.gateway.communicator.Activator.start(BundleContext)1511
org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter.extractRemoteGateways()15110
org.universAAL.ri.gateway.communicator.service.impl.SecurityManager.isOperationAllowed(String,Type)15110
org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter.loadConfiguration()1460
org.universAAL.ri.gateway.communicator.service.impl.SocketCommunicationHandler.start()1410
org.universAAL.ri.gateway.communicator.service.impl.SocketCommunicationHandler.sendMessage(MessageWrapper,URL)1470
org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl.sendMessage(MessageWrapper,URL)13101
org.universAAL.ri.gateway.eimanager.impl.exporting.ExportProcessExecutor.process(InternalExportOperation)1360
org.universAAL.ri.gateway.eimanager.impl.importing.ImportProcessExecutor.process(InternalImportOperation)1360
org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl.importRemoteContextEvents(BusMember,ContextEventPattern[])1330
org.universAAL.ri.gateway.eimanager.impl.importing.ProxyUIHandler.ProxyUIHandler(UIHandlerProfile[],ImportedProxyManager,String,ModuleContext)1210
org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl.importRemoteService(BusMember,String,String)1230
org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl.importRemoteUI(BusMember,String)1230
org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter.CommunicatorStarter(BundleContext,String)1131
org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl.sendImportRequest(Message,URL[])1170
org.universAAL.ri.gateway.communicator.service.impl.SecurityUtils.callCipher(encryptionKey.getBytes[][])1020
org.universAAL.ri.gateway.communicator.service.impl.Serializer.toByteArray(Object)1010

Averages.

Program NCSSNCSS averageCCN averageJavadocs average
2,174.004.201.890.09

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 JavaNCSS is still more strict as 'javac'). Nevertheless they are never counted as two statements.

Cyclomatic Complexity Number (CCN)

CCN is also know as McCabe Metric. There exists a much hyped theory behind it based on graph theory, but it all comes down to simply counting 'if', 'for', 'while' statements etc. in a method. Whenever the control flow of a method splits, the "CCN counter" gets incremented by one.

Each method has a minimum value of 1 per default. For each of the following Java keywords/statements this value gets incremented by one:

  • if
  • for
  • while
  • case
  • catch

Also if the control flow of a method returns abortively the CCNvalue will be incremented by one:

  • if
  • for

An ordinary return at the end of method will not be counted.

Note that 'else', 'default', and 'finally' don't increment the CCN value any further. On the other hand, a simple method with a 'switch' statement and a huge block of 'case' statements can have a surprisingly high CCN value (still it has the same value when converting a 'switch' block to an equivalent sequence of 'if' statements).