SAP ABAP Class CL_CI_TEST_METRIC_STRUCT (Code Inspector: Structural Metric Calculation)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-ABA-LA (Application Component) Syntax, Compiler, Runtime
     S_KAIZEN (Package) ABAP Metrics
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_CI_TEST_SCAN Code Inspector: Test Based on SCAN 20070305
Properties
Class CL_CI_TEST_METRIC_STRUCT  
Short Description Code Inspector: Structural Metric Calculation    
Super Class CL_CI_TEST_SCAN Code Inspector: Test Based on SCAN 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package S_KAIZEN   ABAP Metrics 
Created 20070305   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_CI_TEST_METRIC_STRUCT has no forward declaration.
Interfaces
Class CL_CI_TEST_METRIC_STRUCT has no interface implemented.
Friends
Class CL_CI_TEST_METRIC_STRUCT has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_METRIC_FANOUT Constant Public Type reference (TYPE) SCI_ERRC 'K_FANOUT' 20070305
2 GC_METRIC_FANOUT_SR Constant Public Type reference (TYPE) SCI_ERRC 'K_FANOUTSR' 20070305
3 GC_METRIC_W_FANOUT Constant Public Type reference (TYPE) SCI_ERRC 'KW_FANOUT' Code Inspector: ID for Message Code 20070321
4 GC_METRIC_W_FANOUT_SR Constant Public Type reference (TYPE) SCI_ERRC 'KW_FANOUTS' Code Inspector: ID for Message Code 20070321
5 GC_MY_NAME Constant Private Type reference (TYPE) SEOCLSNAME 'CL_CI_TEST_METRIC_STRUCT' 20070305
6 MS_INCLUDE_WA Instance attribute Private Type reference (TYPE) TY_GS_INCL_SUBROUTINE_MAPPING 20070305
7 MS_PATH_WA Instance attribute Private Type reference (TYPE) SKZN_S_ABS_PATH_PART 20070305
8 MS_SR_RANGE_WA Instance attribute Private Type reference (TYPE) TY_GS_SUBROUTINE_RANGE 20070305
9 MTS_INCLUDES Instance attribute Private Type reference (TYPE) TY_GTS_INCLUDES 20070305
10 MT_PATH_IT Instance attribute Private Type reference (TYPE) SKZN_T_ABS_PATH 20070305
11 MV_CALC_FANOUT Instance attribute Private Type reference (TYPE) FLAG General Flag 20070305
12 MV_CALC_FANOUT_SR Instance attribute Private Type reference (TYPE) FLAG General Flag 20070305
13 MV_IN_CLASS Instance attribute Private Type reference (TYPE) C 20070305
14 MV_IN_SUBROUTINE Instance attribute Private Type reference (TYPE) C 20070305
15 MV_SHOW_WARNING Instance attribute Private Type reference (TYPE) FLAG General Flag 20070321
16 MV_STATEMENT_INDEX Instance attribute Protected Type reference (TYPE) I 20070305
17 MV_THRESHOLD_CALC_FANOUT Instance attribute Private Type reference (TYPE) I 20070321
18 MV_THRESHOLD_CALC_FANOUT_SR Instance attribute Private Type reference (TYPE) I 20070321
Methods
# Method Level Visibility Method type Description Created on
1 CALCULATE_FANOUT_ON_SR_LEVEL Instance method Private Method Calculate FANOUT on subroutine level 20070305
2 CALCULATE_FANOUT_ON_TOP_LEVEL Instance method Private Method calculates the FANOUT on top-level 20070305
3 CLOSE_SUBROUTINE_RANGE Instance method Private Method close current subroutine range 20070305
4 CONSTRUCTOR Instance method Public Constructor 20070305
5 GET_FANOUT_FROM_REFERENCES Instance method Private Method Do the real FANOUT calculation on subroutine level 20070305
6 GET_REFERENCES Instance method Private Method Get references to other objects 20070305
7 GET_SUBROUTINE_RANGES Instance method Private Method Returns a table with ranges of subroutines (include range) 20070305
8 PROCESS_BLOCK Instance method Private Method Process a new block of code for the creation of subroutines 20070305
9 SET_SR_RANGE_START Instance method Private Method Set start of subroutine range 20070305
Events
Class CL_CI_TEST_METRIC_STRUCT has no event.
Types
Class CL_CI_TEST_METRIC_STRUCT has no local type.
Method Signatures

Method CALCULATE_FANOUT_ON_SR_LEVEL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_COMPILER Call by reference Object reference (TYPE REF TO) CL_ABAP_COMPILER 20070305
2 Importing ITS_REFS Call by reference Type reference (TYPE) SCR_GLREFS 20070305

Method CALCULATE_FANOUT_ON_SR_LEVEL on class CL_CI_TEST_METRIC_STRUCT has no exception.

Method CALCULATE_FANOUT_ON_TOP_LEVEL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ITS_REFS Call by reference Type reference (TYPE) SCR_GLREFS 20070305

Method CALCULATE_FANOUT_ON_TOP_LEVEL on class CL_CI_TEST_METRIC_STRUCT has no exception.

Method CLOSE_SUBROUTINE_RANGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_RANGE_WA Call by reference Type reference (TYPE) TY_GS_SUBROUTINE_RANGE 20070305
2 Changing CTS_RANGES_IT Call by reference Type reference (TYPE) TY_GTS_SUBROUTINE_RANGES 20070305

Method CLOSE_SUBROUTINE_RANGE on class CL_CI_TEST_METRIC_STRUCT has no exception.

Method CONSTRUCTOR Signature

Method CONSTRUCTOR on class CL_CI_TEST_METRIC_STRUCT has no parameter.
Method CONSTRUCTOR on class CL_CI_TEST_METRIC_STRUCT has no exception.

Method GET_FANOUT_FROM_REFERENCES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CTS_SR_RANGES_IT Call by reference Type reference (TYPE) TY_GTS_INCLUDES 20070305
2 Importing IO_COMPILER Call by reference Object reference (TYPE REF TO) CL_ABAP_COMPILER 20070305
3 Importing ITS_REFERENCES_IT Call by reference Type reference (TYPE) SCR_GLREFS 20070305

Method GET_FANOUT_FROM_REFERENCES on class CL_CI_TEST_METRIC_STRUCT has no exception.

Method GET_REFERENCES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CTS_REFERENCES Call by reference Type reference (TYPE) SCR_GLREFS 20070305
2 Importing IO_COMPILER Call by reference Object reference (TYPE REF TO) CL_ABAP_COMPILER 20070305

Method GET_REFERENCES on class CL_CI_TEST_METRIC_STRUCT has no exception.

Method GET_SUBROUTINE_RANGES Signature

Method GET_SUBROUTINE_RANGES on class CL_CI_TEST_METRIC_STRUCT has no parameter.
Method GET_SUBROUTINE_RANGES on class CL_CI_TEST_METRIC_STRUCT has no exception.

Method PROCESS_BLOCK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DELETE_INDEX Call by reference Type reference (TYPE) I 20070305
2 Importing IV_NAME Call by reference Type reference (TYPE) STRING 20070305
3 Importing IV_TYPE Call by reference Type reference (TYPE) STRING 20070305

Method PROCESS_BLOCK on class CL_CI_TEST_METRIC_STRUCT has no exception.

Method SET_SR_RANGE_START Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_SR_RANGE_WA Call by reference Type reference (TYPE) TY_GS_SUBROUTINE_RANGE 20070305

Method SET_SR_RANGE_START on class CL_CI_TEST_METRIC_STRUCT has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 710