SAP ABAP Class CL_SAUNIT_GENERATOR (INTERNAL: Compute Source Code of Test Classes - IDE solely)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷ BC-DWB-TOO-UT (Application Component) ABAP Unit
⤷ SABP_UNIT_INTERNAL (Package) INTERNAL: NO REUSE - Display, services, ...
⤷ BC-DWB-TOO-UT (Application Component) ABAP Unit
⤷ SABP_UNIT_INTERNAL (Package) INTERNAL: NO REUSE - Display, services, ...
Properties
Class | CL_SAUNIT_GENERATOR | |
Short Description | INTERNAL: Compute Source Code of Test Classes - IDE solely | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | SABP_UNIT_INTERNAL | INTERNAL: NO REUSE - Display, services, ... |
Created | 20050822 | SAP |
Last change | 20130531 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ABAP | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
2 | IF_AUNIT_PROG_INFO_TYPES | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
3 | IF_SAUNIT_GENERATOR_TYPES | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
Interfaces
Class CL_SAUNIT_GENERATOR has no interface implemented.
Friends
Class CL_SAUNIT_GENERATOR has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | C_ABSNAME_PREFIX | Constant | Private | See coding | Prefix for absolute Names | 20050831 | |||
2 | C_PROG_TYPE | Constant | Private | See coding | Program / Class Pool / Function Group | 20050831 | |||
3 | FG_PROGRAM | Static Attribute | Private | Type reference (TYPE) | PROGRAM | Program/transaction in SQL trace analysis | 20060404 | ||
4 | F_FUNCTIONS | Instance attribute | Private | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_T_FUNCTIONS | 20050831 | |||
5 | F_NEED_FRIEND | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20051011 | |||
6 | F_OBJ_NAME | Instance attribute | Private | Type reference (TYPE) | SOBJ_NAME | Object Name in Object Directory | 20050822 | ||
7 | F_OBJ_TYPE | Instance attribute | Private | Type reference (TYPE) | TROBJTYPE | Object Type | 20050822 | ||
8 | F_OPTIONS | Instance attribute | Private | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_S_OPTIONS | 20050822 | |||
9 | F_PROGRAM | Instance attribute | Private | Type reference (TYPE) | PROGRAM | Program/transaction in SQL trace analysis | 20060404 | ||
10 | F_PROPERTIES | Instance attribute | Private | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_S_PROPERTIES | 20050824 | |||
11 | F_RESULT | Instance attribute | Private | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_S_SOURCE | 20050822 | |||
12 | F_SOURCE_LINES | Instance attribute | Private | Type reference (TYPE) | STRING_TABLE | 20051127 | |||
13 | F_TESTCLASS_NAME | Instance attribute | Private | Type reference (TYPE) | SAUNIT_D_CLASS | Name of Test Class | 20050822 | ||
14 | F_TEST_CLASS_INFOS | Instance attribute | Private | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_T_TEST_CLASS_INFOS | 20051127 | |||
15 | F_TEST_CLASS_META_INFOS | Instance attribute | Private | Type reference (TYPE) | IF_AUNIT_PROG_INFO_TYPES=>TY_T_TESTCLASSES | 20051127 | |||
16 | F_UNIT_UNDER_TEST | Instance attribute | Private | Type reference (TYPE) | ABAP_ABSTYPENAME | Name of Unit under Test | 20050831 | ||
17 | F_UNIT_UNDER_TEST_SET | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20050831 | |||
18 | F_UPDATE_MODE | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | In Update Mode | 20050822 | ||
19 | F_USE_LOCAL_CLASS | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20050831 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CONSTRUCTOR | Instance method | Public | Constructor | Generation Begins... | 20050822 |
2 | GENERATE | Instance method | Public | Method | Returns Definition and Implementation part of the Test Class | 20050823 |
3 | GET_FUNCTIONS | Instance method | Public | Method | Returns information of Methods / Modules of Class / FUGR | 20050822 |
4 | GET_LOCAL_CLASSES | Instance method | Public | Method | Returns Local Classes without FOR TESTING | 20050822 |
5 | GET_OPTIONS | Instance method | Public | Method | Returns Generation Options | 20051127 |
6 | GET_PROPERTIES | Instance method | Public | Method | Returns Current Duration and Risk Level | 20050822 |
7 | GET_TEST_CLASSES | Instance method | Public | Method | Returns Test Classes (requires SET_ACTIVE_SOURCE) | 20051127 |
8 | GET_TEST_CLASS_INFOS | Instance method | Public | Method | Returns Test Classes with Generation Options used recently | 20051127 |
9 | MERGE_SOURCES | Instance method | Public | Method | Merge Existing and New Code (requires SET_ACTIVE_SOURCE) | 20050824 |
10 | SET_ACTIVE_SOURCES | Instance method | Public | Method | Sets the Source Code which Should be used as Start Point | 20051127 |
11 | SET_FUNCTIONS | Instance method | Public | Method | Defines which Methods to Generate for the Test Methods | 20050822 |
12 | SET_OPTIONS | Instance method | Public | Method | Sets Generation Options | 20050822 |
13 | SET_PROPERTIES | Instance method | Public | Method | Sets the Test Class Properties | 20050824 |
14 | SET_TESTEE | Instance method | Public | Method | Defines which Classes to test (e.g. Local Class) | 20050822 |
15 | SET_TEST_CLASS | Instance method | Public | Method | Sets the Name of the Local Test Class | 20051127 |
16 | __GET_BASIC_CLASSNAME | Instance method | Private | Method | Returns Basic Names for Absolute type Names | 20080806 |
17 | __GET_METHOD_NAMES | Instance method | Private | Method | Returns Methods of a Global or Local Class | 20080806 |
18 | __GET_MODULE_NAMES | Instance method | Private | Method | Returns Modules of Function-Group | 20080806 |
19 | __IS_VALID_NAME | Instance method | Private | Method | Checks Validity of the Class Name | 20080806 |
Events
Class CL_SAUNIT_GENERATOR has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | TY_D_MEM_ID | Private | See coding | Memory ID (internal use only) | 20050831 | ty_D_Mem_Id type c length 55
|
|
2 | TY_D_PROG_TYPE | Private | See coding | Program Type | 20050831 | ty_D_Prog_Type type c length 4
|
|
3 | TY_S_FUNC_MODULE | Private | Type reference (TYPE) | RS38L_INCL | Functional Module | 20050831 |
|
4 | TY_S_METHOD | Private | See coding | Meta Data of a Method | 20050831 | begin of ty_S_Method,
name type progname,
end of ty_S_Method
|
|
5 | TY_S_METHOD_INFO | Private | See coding | Method | 20050831 | begin of ty_S_Method_Info,
name type progname,
visibility type abap_visibility,
is_Present type flag,
end of ty_S_Method_Info
|
|
6 | TY_S_METHOD_SCAN | Private | See coding | Scan Result of Method | 20050831 | begin of ty_S_Method_Scan,
name type saunit_D_Class,
row_Def_Begin type token_Row,
row_Def_End type token_Row,
row_Imp_Begin type token_Row,
row_Imp_End type token_Row,
end of ty_S_Method_Scan
|
|
7 | TY_T_CHANGING_PARM | Private | See coding | Changing Parameters | 20050831 | ty_T_Changing_Parm type standard table of rscha with default key
|
|
8 | TY_T_EXCEPTIONS | Private | See coding | Exception Parameters | 20050831 | ty_T_Exceptions type standard table of rsexc with default key
|
|
9 | TY_T_EXPORT_PARM | Private | See coding | Export Parameters | 20050831 | ty_T_Export_Parm type standard table of rsexp with default key
|
|
10 | TY_T_FUNC_MODULES | Private | See coding | Functional Modules | 20050831 | ty_T_Func_Modules type standard table of ty_S_Func_Module with key funcname
|
|
11 | TY_T_IMPORT_PARM | Private | See coding | Import Parameters | 20050831 | ty_T_Import_Parm type standard table of rsimp with default key
|
|
12 | TY_T_METHODS | Private | See coding | Meta Data of Methods | 20050831 | ty_T_Methods type sorted table of ty_S_Method with unique key name
|
|
13 | TY_T_METHOD_INFOS | Private | See coding | Methods | 20050831 | ty_T_Method_Infos type sorted table of ty_S_Method_Info with unique key name
|
|
14 | TY_T_METHOD_SCAN | Private | See coding | Scan Result of Methods | 20050831 | ty_T_Method_Scan type sorted table of ty_S_Method_Scan with unique key name
|
|
15 | TY_T_TABLES_PARM | Private | See coding | Table Parameters | 20050831 | ty_T_Tables_Parm type standard table of rstbl with default key
|
Method Signatures
Method CONSTRUCTOR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | OBJ_NAME | Call by reference | Type reference (TYPE) | SOBJ_NAME | Object Name in Object Directory | 20050822 | ||
2 | Importing | OBJ_TYPE | Call by reference | Type reference (TYPE) | TROBJTYPE | Object Type | 20050822 |
Method CONSTRUCTOR on class CL_SAUNIT_GENERATOR has no exception.
Method GENERATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | RESULT | Value transfer | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_S_SOURCE | 20050823 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_DYNAMIC_CHECK | Exceptions with Dynamic Check Only of the RAISING Clause | 20050827 |
Method GET_FUNCTIONS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | FUNCTIONS | Value transfer | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_T_FUNCTIONS | 20050831 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_DYNAMIC_CHECK | Ausnahmen mit nur dynamischer Prüfung von RAISING | 20050827 |
Method GET_LOCAL_CLASSES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | CLASSES | Value transfer | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_T_LOCAL_CLASSES | 20050822 |
Method GET_LOCAL_CLASSES on class CL_SAUNIT_GENERATOR has no exception.
Method GET_OPTIONS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | RESULT | Value transfer | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_S_OPTIONS | 20051127 |
Method GET_OPTIONS on class CL_SAUNIT_GENERATOR has no exception.
Method GET_PROPERTIES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | RESULT | Value transfer | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_S_PROPERTIES | 20051127 |
Method GET_PROPERTIES on class CL_SAUNIT_GENERATOR has no exception.
Method GET_TEST_CLASSES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | RESULT | Value transfer | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_T_TEST_CLASSES | 20051127 |
Method GET_TEST_CLASSES on class CL_SAUNIT_GENERATOR has no exception.
Method GET_TEST_CLASS_INFOS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | RESULT | Value transfer | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_T_TEST_CLASS_INFOS | 20051127 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_XSLT_SYSTEM_ERROR | 20051127 |
Method MERGE_SOURCES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | SOURCES | Value transfer | Type reference (TYPE) | STRING_TABLE | Table of Strings | 20050824 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_DYNAMIC_CHECK | Generation found Issue some can be Resumed, see get_Text() | 20050827 |
Method SET_ACTIVE_SOURCES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | SOURCE_CODE_LINES | Call by reference | Type reference (TYPE) | STRING_TABLE | 20051127 |
Method SET_ACTIVE_SOURCES on class CL_SAUNIT_GENERATOR has no exception.
Method SET_FUNCTIONS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | FUNCTIONS | Call by reference | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_T_FUNCTIONS | 20050831 |
Method SET_FUNCTIONS on class CL_SAUNIT_GENERATOR has no exception.
Method SET_OPTIONS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | OPTIONS | Value transfer | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_S_OPTIONS | 20050823 |
Method SET_OPTIONS on class CL_SAUNIT_GENERATOR has no exception.
Method SET_PROPERTIES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | PROPERTIES | Call by reference | Type reference (TYPE) | IF_SAUNIT_GENERATOR_TYPES=>TY_S_PROPERTIES | 20050824 |
Method SET_PROPERTIES on class CL_SAUNIT_GENERATOR has no exception.
Method SET_TESTEE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | LOCAL_CLASS_NAME | Call by reference | Type reference (TYPE) | ABAP_ABSTYPENAME | Class | 20051026 | ||
2 | Importing | USE_LOCAL_CLASS | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20051026 |
Method SET_TESTEE on class CL_SAUNIT_GENERATOR has no exception.
Method SET_TEST_CLASS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | CLASSNAME | Call by reference | Type reference (TYPE) | SAUNIT_D_CLASS | 20051127 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_DYNAMIC_CHECK | 20051127 |
Method __GET_BASIC_CLASSNAME Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | CLASSNAME | Call by reference | Type reference (TYPE) | ABAP_ABSTYPENAME | 20080806 | |||
2 | Returning | RESULT | Value transfer | Type reference (TYPE) | SAUNIT_D_CLASS | Class | 20080806 |
Method __GET_BASIC_CLASSNAME on class CL_SAUNIT_GENERATOR has no exception.
Method __GET_METHOD_NAMES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | RESULT | Value transfer | Type reference (TYPE) | ABAP_METHDESCR_TAB | 20080806 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_DYNAMIC_CHECK | Ausnahmen mit nur dynamischer Prüfung von RAISING | 20080806 |
Method __GET_MODULE_NAMES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | FUNC_MODULES | Value transfer | Type reference (TYPE) | TY_T_FUNC_MODULES | 20080806 |
Method __GET_MODULE_NAMES on class CL_SAUNIT_GENERATOR has no exception.
Method __IS_VALID_NAME Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | NAME | Value transfer | Type reference (TYPE) | SAUNIT_D_CLASS | Class | 20080806 | ||
2 | Returning | RESULT | Value transfer | Type reference (TYPE) | ABAP_BOOL | Name is Valid | 20080806 |
Method __IS_VALID_NAME on class CL_SAUNIT_GENERATOR has no exception.
History
Last changed by/on | SAP | 20130531 |
SAP Release Created in | 710 |