Code Metrics Framework Classes
You add a metric through subclassing. The location of your class in the hierarchy depends on what your metric does and on what code element it operates on. Use the following table to decide which framework class to subclass.
Code element
Must be loaded
Subclass
configuration map
Y | N
CtConfigurationMapMeasure
application
Y
CtLoadedApplicationMeasure
application
N
CtApplicationMeasure
subapplication
Y
CtLoadedSubApplicationMeasure
subapplication
N
CtSubApplicationMeasure
entire class
Y
CtEntireClassMeasure
class
Y
CtLoadedClassMeasure
class extension
Y
CtClassExtensionMeasure
class definition
Y
CtLoadedClassDefinitionMeasure
class definition
N
CtClassDefinitionMeasure
method
Y
CtLoadedMethodMeasure
method
N
CtMethodMeasure
 
Last modified date: 05/19/2020