CL_CI_TEST_ROOT - Code Inspector: Root Test Class
ABAP Short Reference Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Code Inspector: Technical Documentation
The Code Inspectorclass hierarchy consists of abstract classes for the breakdown and formatting of data and public classes for the concrete checks. These classes are arranged in a single hierarchy.
The results of data breakdowns are passed on in the hierarchy as static attributes (internal tables or references to classes outside the Code Inspector hierarchy).
Every check is a public global class, which is classified in the class hierarchy below the CL_CI_TEST_ROOTclass (package S_CODE_INSPECTOR). Depending on which data it starts with, the new check class extends one of the abstract classes in the existing hierarchy.
Example: A check that starts with the SCAN ABAP-SOURCE command, that is with the source code broken down into tokens, inherits from or extends the CL_CI_TEST_SCAN class.
Classification into a test hierarchy makes the required format available to the check author in his 'area' as a static attribute.
In a Check Class, the Following Methods Must Be Implemented:
For the results to be correctly assigned, a private static constant 'MY_NAME' with the class name as a value must exist in every class.
For a check to appear in the tree of the check variant, it must be entered in the SCITESTS table.
------------------------------------
Check with (User) Parameter
If you want to be able to assign parameters to a check, you have to add the desired parameters to the check class as public instance attributes. In the methodCONSTRUCTOR you must set the flag
,,has_attributes = 'X'.
You must also implement the following methods:
QUERY_ATTRIBUTES of the interface IF_CI_TESTS
-------------------------------------------
New Data Format Class
For a new data breakdown or format you should create an abstract class that extends one of the existingclasses in the Code Inspector hierarchy, depending on which attributes you wish to start with. In this new class, you should implement the following methods:
Relationships
Example
Notes
Further information
Addresses (Business Address Services) CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 3685 Date: 20120526 Time: 101206 triton ( 149 ms )






