Lines of code in class |
number of lines of code in a class; calculated as (last line number) - (first line number) + 1 |
LOC_CLASS |
65 |
C++, Java |
Number of methods |
number of methods defined in the current class. Inherited methods are not counted. This metric includes methods whose declaration is met in the class but whose body is outside the class (for example, in another file). |
NOMETH |
66 |
C++, Java |
Level of inheritance |
For classes, this is the level of the class in the class hierarchy tree. For interfaces, it is always 1. |
LEVINHER |
67 |
C++, Java |
Number of data declarations in the class |
number of fields in the class (methods and inherited fields are not counted) |
NOCLASSDATADECL |
68 |
C++, Java |
Number of class data types in the class |
number of class data types in the class |
NODATACLASS |
69 |
Java |
Number of private attributes for the class |
number of private attributes (private data fields) for a class |
NOPRIVDATADEC |
70 |
C++, Java |
Number of protected methods in the class |
number of protected attributes (protected data fields) for a class |
NOPROTDATADECL |
71 |
C++, Java |
Number of public attributes for the class |
number of public attributes (public data fields) for a class |
NOPUBDATADECL |
72 |
C++, Java |
Number of static attributes for the class |
number of static attributes (static data fields) for a class |
NOSTDATADECL |
73 |
C++, Java |
Number of private methods in the class |
number of private methods in a class |
NOPRIVMETH |
74 |
C++, Java |
Number of protected methods in the class |
number of protected methods in a class |
NOPROTMETH |
75 |
C++, Java |
Number of public methods in the class |
number of public methods in a class |
NOPUBMETH |
76 |
C++, Java |
Number of ways the class can be accessed |
total number of messages about how a class can be accessed. Messages include public/protected methods for Java and C++ classes as well as private methods for C++ classes that have friends. |
NOMSG |
77 |
C++, Java |
Number of pointer data items declared in the class |
number of pointer data items declared in the class |
NOPTRDECL |
78 |
C++, Java |
Class has pointer items and has no destructor |
class has pointer items and has no destructor |
HASPTRWODESTR |
79 |
C++ |
Number of in-line methods declared in the class |
number of in-line methods declared in the class |
NOINLINEMETH |
80 |
C++ |
Size of the class in bytes |
Size of the class in bytes. For more information about calculating this metric, see Specifying sizes for built-in types. |
BYTESDATADECL |
81 |
C++ |
Number of methods declared constant |
number of methods declared constant |
NOCONSTMETH |
82 |
C++ |
Number of pure virtual methods in the class |
number of pure virtual methods in the class |
NOVIRTMETH |
83 |
C++ |
Non-comment, non-blank lines of code in the class |
the number of lines of code in a class, not including comment lines and blank lines |
NCNBLOC_CLASS |
84 |
C++, Java |
ancestor class-attribute import coupling |
See 'Coupling metrics for object-oriented languages' below. |
ACAIC |
205 |
C++, Java |
ancestor class-method import coupling |
ACMIC |
206 |
C++, Java |
descendant class-attribute export coupling |
DCAEC |
207 |
C++, Java |
descendant class-method export coupling |
DCMEC |
208 |
C++, Java |
class-attribute import coupling |
OCAIC |
209 |
C++, Java |
class-attribute export coupling |
OCAEC |
210 |
C++, Java |
class-method import coupling |
OCMIC |
211 |
C++, Java |
class-method export coupling |
OCMEC |
212 |
C++, Java |
ancestor class-method-class-method import coupling |
AMMIC |
213 |
C++, Java |
descendant class-method-class-method export coupling |
DMMEC |
214 |
C++, Java |
class-method-class-method import coupling |
OMMIC |
215 |
C++, Java |
class-method-class-method export coupling |
OMMEC |
216 |
C++, Java |