SAP ABAP Class CL_AXT_CODE_GENERATOR (Abstract basis class for code generators)
Hierarchy
☛
WEBCUIF (Software Component) SAP Web UI Framework
⤷
CA-GTF-EEW (Application Component) Easy Enhancement Workbench
⤷
AXT_GENERATION_FRAMEWORK (Package) Extensibility Generation Framework
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_AXT_ELEMENT | General generation element | 20080910 |
Meta Relationship - Used By
| # | Relationship type | Used by | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_AXT_CLASS | Class generation element | 20080911 |
| 2 | Inheritance (c INHERITING FROM c_ref) | CL_AXT_FUNCTION_MODULE | Function module generator | 20080915 |
| 3 | Inheritance (c INHERITING FROM c_ref) | CL_AXT_INTERFACE | Class generation element | 20090511 |
| 4 | Inheritance (c INHERITING FROM c_ref) | CL_AXT_PAGE | Page generation element | 20080930 |
| 5 | Inheritance (c INHERITING FROM c_ref) | CL_AXT_UI_CONFIGURATION | Configuration generator | 20090427 |
Properties
| Class | CL_AXT_CODE_GENERATOR | |
| Short Description | Abstract basis class for code generators | |
| Super Class | CL_AXT_ELEMENT | General generation element |
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | AXT_GENERATION_FRAMEWORK | Extensibility Generation Framework |
| Created | 20080910 | SAP |
| Last change | 20110908 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) | |
| 3 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
Class CL_AXT_CODE_GENERATOR has no interface implemented.
Friends
Class CL_AXT_CODE_GENERATOR has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | AXT_PARAMETER | 'PARAM_NAME' | Parameter fieldname | 20080925 | ||
| 2 | Constant | Public | Type reference (TYPE) | AXT_PARAMETER | 'PARAM_TYPE' | Parameter fieldname | 20080925 | ||
| 3 | Constant | Public | Type reference (TYPE) | AXT_PARAMETER | 'TEMPLATE' | Parameter fieldname | 20080925 | ||
| 4 | Constant | Public | Type reference (TYPE) | AXT_PARAMETER | 'TEMPLATE_NAME' | Parameter | 20090401 | ||
| 5 | Constant | Public | Type reference (TYPE) | AXT_PARAMETER | 'TEMPLATE_VERSION' | Parameter | 20081015 | ||
| 6 | Constant | Protected | Type reference (TYPE) | SEOPARDECL | '2' | Parameter Declaration Level (User View) | 20080911 | ||
| 7 | Constant | Protected | Type reference (TYPE) | SEOPARDECL | '1' | Parameter Declaration Level (User View) | 20080911 | ||
| 8 | Constant | Protected | Type reference (TYPE) | SEOPARDECL | '0' | Parameter Declaration Level (User View) | 20080911 | ||
| 9 | Constant | Protected | Type reference (TYPE) | SEOPARDECL | '3' | Parameter Declaration Level (User View) | 20080911 | ||
| 10 | Constant | Protected | Type reference (TYPE) | SEOPARDECL | '4' | Parameter Declaration Level (User View) | 20080911 | ||
| 11 | Constant | Protected | Type reference (TYPE) | SEOTYPTYPE | '0' | Typing | 20080911 | ||
| 12 | Constant | Protected | Type reference (TYPE) | SEOTYPTYPE | '1' | Typing | 20080911 | ||
| 13 | Constant | Protected | Type reference (TYPE) | SEOTYPTYPE | '3' | Typing | 20080911 | ||
| 14 | Constant | Protected | Type reference (TYPE) | SEOTYPTYPE | '9' | Special typing for tables in FM | 20101209 | ||
| 15 | Instance attribute | Protected | Type reference (TYPE) | AXTT_CODE_CONTEXT | Code generator context | 20080910 | |||
| 16 | Instance attribute | Private | Type reference (TYPE) | AXTT_TMPL_VERSION | Table Type of AXTS_TMPL_VERSION | 20090331 | |||
| 17 | Instance attribute | Protected | Type reference (TYPE) | PROGNAME | Parameter Value | 20080910 | |||
| 18 | Instance attribute | Private | Type reference (TYPE) | AXT_PARAMVALUE | Code template version | 20081015 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | 20080911 | ||
| 2 | Instance method | Public | Method | 20090331 | ||
| 3 | Static method | Private | Method | 20081015 | ||
| 4 | Instance method | Private | Method | 20080925 | ||
| 5 | Static method | Protected | Method | 20081015 | ||
| 6 | Instance method | Private | Method | 20080925 | ||
| 7 | Instance method | Protected | Method | Determine the version of the template | 20081216 | |
| 8 | Instance method | Protected | Method | Generate source code from template | 20080910 | |
| 9 | Instance method | Public | Method | 20080926 | ||
| 10 | Instance method | Public | Method | 20080930 | ||
| 11 | Instance method | Public | Method | 20081015 | ||
| 12 | Instance method | Private | Method | 20080930 | ||
| 13 | Instance method | Private | Method | 20080925 |
Events
Class CL_AXT_CODE_GENERATOR has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | LTY_ATTRIBUTES | Protected | See coding | 20080926 | BEGIN OF lty_attributes,
name TYPE c LENGTH 30,
type TYPE rollname,
value TYPE axt_paramvalue,
END OF lty_attributes
|
||
| 2 | LTY_CODE_SLOTS | Protected | See coding | 20090325 | BEGIN OF lty_code_slots,
name TYPE axt_name,
include TYPE progname,
END OF lty_code_slots
|
||
| 3 | LTY_PARAMETERS | Protected | See coding | 20080911 | BEGIN OF lty_parameters,
type TYPE seopardecl,
name TYPE c LENGTH 30,
typing TYPE seotyptype,
data_type TYPE rollname,
END OF lty_parameters
|
||
| 4 | LTY_T_ATTRIBUTES | Protected | See coding | 20080926 | lty_t_attributes TYPE STANDARD TABLE OF lty_attributes
WITH NON-UNIQUE KEY name
|
||
| 5 | LTY_T_CODE_SLOTS | Protected | See coding | 20090325 | lty_t_code_slots TYPE STANDARD TABLE OF lty_code_slots
WITH NON-UNIQUE KEY name
|
||
| 6 | LTY_T_PARAMETERS | Protected | See coding | 20080911 | lty_t_parameters TYPE STANDARD TABLE OF lty_parameters
WITH NON-UNIQUE KEY name
|
Method Signatures
Method ADD_CONTEXT_PARAM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_NAME | Call by reference | Type reference (TYPE) | AXT_PARAMETER | Parameter | 20080911 | |||
| 2 | IV_VALUE | Call by reference | Type reference (TYPE) | ANY | 20080911 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Data already exists error | 20080911 | ||
| 2 | Data invalid error | 20080925 |
Method ADD_TEMPLATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_NAME | Call by reference | Type reference (TYPE) | PROGNAME | 20090331 | ||||
| 2 | IV_TEMPLATE | Call by reference | Type reference (TYPE) | PROGNAME | 20090331 | ||||
| 3 | IV_VERSION | Call by reference | Type reference (TYPE) | AXT_PARAMVALUE | Parameter Value | 20090401 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Data already exists error | 20090401 | ||
| 2 | Data invalid error | 20090401 |
Method CHECK_MANDATORY_PARAMETERS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TEMPLATE | Call by reference | Type reference (TYPE) | PROGNAME | 20081015 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Data invalid error | 20081015 |
Method CHECK_TYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IR_DESCR | Call by reference | Object reference (TYPE REF TO) | CL_ABAP_TYPEDESCR | Runtime Type Services | 20080925 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Data invalid error | 20080925 |
Method CREATE_CODE_GENERATOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CLASS | Call by reference | Type reference (TYPE) | SEOCLSNAME | Object Type Name | 20081015 | |||
| 2 | IV_ELEMENT_TYPE | Call by reference | Type reference (TYPE) | AXT_OBJECT_TYPE | Object Type | 20081015 | |||
| 3 | IV_ID | Call by reference | Type reference (TYPE) | AXT_GUID | GUID | 20081015 | |||
| 4 | IV_OBJECT_NAME | Call by reference | Type reference (TYPE) | AXT_NAME | Name | 20081015 | |||
| 5 | IV_TEMPLATE_NAME | Call by reference | Type reference (TYPE) | PROGNAME | 20081015 | ||||
| 6 | IV_TEMPLATE_VERSION | Call by reference | Type reference (TYPE) | AXT_TEMPLATE_VERSION | Code template version | 20081015 | |||
| 7 | RR_ELEMENT | Value transfer | Object reference (TYPE REF TO) | IF_AXT_ELEMENT | General generation element | 20081015 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Data invalid error | 20081015 |
Method DESERIALIZE_PARAM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_DATA | Call by reference | Type reference (TYPE) | ANY | 20080925 | ||||
| 2 | IR_DESCR | Call by reference | Object reference (TYPE REF TO) | CL_ABAP_TYPEDESCR | Runtime Type Services | 20080925 | |||
| 3 | IT_DETAILS | Call by reference | Type reference (TYPE) | AXTT_CAT_OBJ_DTL | Object details | 20080925 | |||
| 4 | IT_TEXTS | Call by reference | Type reference (TYPE) | AXTT_CAT_OBJ_TEXT | Object texts | 20080925 | |||
| 5 | IV_COMP_NAME | Call by reference | Type reference (TYPE) | STRING | 20080925 | ||||
| 6 | IV_ORDER | Call by reference | Type reference (TYPE) | AXT_ORDER | List Order | 20080925 | |||
| 7 | IV_PARENT | Call by reference | Type reference (TYPE) | AXT_SEQUENCE | Sequence Number for Element | 20080925 |
Method DESERIALIZE_PARAM on class CL_AXT_CODE_GENERATOR has no exception.
Method DETERMINE_TEMPLATE_VERSION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TEMPLATE | Call by reference | Type reference (TYPE) | PROGNAME | 20090401 | ||||
| 2 | RV_VERSION | Value transfer | Type reference (TYPE) | AXT_PARAMVALUE | Parameter Value | 20081216 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Data not found error | 20090414 |
Method GENERATE_CODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_ATTRIBUTES | Call by reference | Type reference (TYPE) | LTY_T_ATTRIBUTES | Attribute changes | 20080911 | |||
| 2 | ET_CODE | Call by reference | Type reference (TYPE) | CL_CMP_COMPOSER=>TAB_CODE | Generated code | 20080911 | |||
| 3 | ET_PARAMETERS | Call by reference | Type reference (TYPE) | LTY_T_PARAMETERS | Parameter adjustments | 20080911 | |||
| 4 | EV_INHERITANCE | Call by reference | Type reference (TYPE) | SEOCLSNAME | New superclass | 20081008 | |||
| 5 | IT_CODE_SLOTS | Call by reference | Type reference (TYPE) | LTY_T_CODE_SLOTS | 20090325 | ||||
| 6 | IT_TEMPLATE_CODE | Call by reference | Type reference (TYPE) | CL_CMP_COMPOSER=>TAB_CODE | Template code | 20080910 | |||
| 7 | IV_BREAK_TO_72_CHAR | Call by reference | Type reference (TYPE) | AXT_BOOLEAN | Boolean | 20080930 | |||
| 8 | IV_DECOMMENT | Call by reference | Type reference (TYPE) | AXT_BOOLEAN | Boolean | 20080930 | |||
| 9 | IV_PRETTY_PRINTER | Call by reference | Type reference (TYPE) | AXT_BOOLEAN | Boolean | 20090128 | |||
| 10 | IV_TEMPLATE | Call by reference | Type reference (TYPE) | CSEQUENCE | 20080922 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Operation error | 20080910 |
Method GET_CONTEXT_PARAMS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_PARAMS | Call by reference | Type reference (TYPE) | AXTT_CODE_CONTEXT | Code generator context | 20080926 |
Method GET_CONTEXT_PARAMS on class CL_AXT_CODE_GENERATOR has no exception.
Method GET_TEMPLATE_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RV_TEMPLATE_NAME | Value transfer | Type reference (TYPE) | PROGNAME | 20080930 |
Method GET_TEMPLATE_NAME on class CL_AXT_CODE_GENERATOR has no exception.
Method GET_TEMPLATE_VERSION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RV_TEMPLATE_VERSION | Value transfer | Type reference (TYPE) | AXT_TEMPLATE_VERSION | Code template version | 20081015 |
Method GET_TEMPLATE_VERSION on class CL_AXT_CODE_GENERATOR has no exception.
Method MOVE_SOURCE_TO_72_CHAR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_SOURCE | Call by reference | Type reference (TYPE) | CL_CMP_COMPOSER=>TAB_CODE | 20080930 |
Method MOVE_SOURCE_TO_72_CHAR on class CL_AXT_CODE_GENERATOR has no exception.
Method SERIALIZE_PARAM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_DETAILS | Call by reference | Type reference (TYPE) | AXTT_CAT_OBJ_DTL | Object details | 20080925 | |||
| 2 | CT_TEXTS | Call by reference | Type reference (TYPE) | AXTT_CAT_OBJ_TEXT | Object texts | 20080925 | |||
| 3 | CV_DETAIL_ID | Call by reference | Type reference (TYPE) | AXT_SEQUENCE | Sequence Number for Element | 20080925 | |||
| 4 | IR_DESCR | Call by reference | Object reference (TYPE REF TO) | CL_ABAP_TYPEDESCR | Runtime Type Services | 20080925 | |||
| 5 | IV_COMP_NAME | Call by reference | Type reference (TYPE) | STRING | 20080925 | ||||
| 6 | IV_DATA | Call by reference | Type reference (TYPE) | ANY | 20080925 | ||||
| 7 | IV_ORDER | Call by reference | Type reference (TYPE) | AXT_ORDER | List Order | 20080925 | |||
| 8 | IV_PARENT | Call by reference | Type reference (TYPE) | AXT_SEQUENCE | Sequence Number for Element | 20080925 |
Method SERIALIZE_PARAM on class CL_AXT_CODE_GENERATOR has no exception.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 701 |