-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
currently generates no interface, and just a single method.
- Loading branch information
Peter Jaeckel
committed
Apr 28, 2018
1 parent
5baba58
commit 173ece6
Showing
18 changed files
with
868 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
CLASS zcl_fmwp_builder DEFINITION | ||
PUBLIC | ||
FINAL | ||
CREATE PUBLIC . | ||
|
||
PUBLIC SECTION. | ||
INTERFACES zif_fmwp_builder. | ||
METHODS constructor | ||
IMPORTING | ||
ir_gen TYPE REF TO zif_fmwp_gen | ||
ir_seoq TYPE REF TO zif_flseoq. | ||
PROTECTED SECTION. | ||
PRIVATE SECTION. | ||
DATA mr_gen TYPE REF TO zif_fmwp_gen. | ||
DATA mr_seoq TYPE REF TO zif_flseoq. | ||
ENDCLASS. | ||
|
||
|
||
|
||
CLASS ZCL_FMWP_BUILDER IMPLEMENTATION. | ||
|
||
|
||
METHOD constructor. | ||
|
||
mr_gen = ir_gen. | ||
mr_seoq = ir_seoq. | ||
|
||
ENDMETHOD. | ||
|
||
|
||
METHOD zif_fmwp_builder~generate. | ||
|
||
DATA(l_cls) = NEW zcl_fmwp_clsinfo( ). | ||
l_cls->class_set_def( i_name = |zcl_fl{ i_area }_gwrap| ). | ||
CALL METHOD mr_gen->class_generate | ||
EXPORTING | ||
i_name = i_funcname | ||
CHANGING | ||
c_class = l_cls. | ||
|
||
DATA(l_class) = l_cls->class_get_def( ). | ||
DATA(lt_methods) = l_cls->method_get_all_methods( ). | ||
DATA(lt_method_imps) = l_cls->method_get_all_impls( ). | ||
DATA(lt_sources) = l_cls->method_get_all_sources( ). | ||
DATA(lt_params) = l_cls->method_get_all_params( ). | ||
DATA(lt_types) = l_cls->type_get_all( ). | ||
|
||
CALL METHOD mr_seoq->seo_class_create_complete | ||
EXPORTING | ||
devclass = '$TMP' | ||
method_sources = lt_sources | ||
CHANGING | ||
class = l_class | ||
methods = lt_methods | ||
implementings = lt_method_imps | ||
parameters = lt_params | ||
types = lt_types | ||
EXCEPTIONS | ||
existing = 1 | ||
is_interface = 2 | ||
db_error = 3 | ||
component_error = 4 | ||
no_access = 5 | ||
other = 6 | ||
OTHERS = 7. | ||
|
||
IF sy-subrc IS NOT INITIAL. | ||
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno | ||
WITH sy-msgv1 sy-msgv2 sy-msgv4 sy-msgv4. | ||
ENDIF. | ||
|
||
|
||
ENDMETHOD. | ||
ENDCLASS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_CLAS" serializer_version="v1.0.0"> | ||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"> | ||
<asx:values> | ||
<VSEOCLASS> | ||
<CLSNAME>ZCL_FMWP_BUILDER</CLSNAME> | ||
<VERSION>1</VERSION> | ||
<LANGU>E</LANGU> | ||
<DESCRIPT>finally creating the class</DESCRIPT> | ||
<EXPOSURE>2</EXPOSURE> | ||
<STATE>1</STATE> | ||
<CLSFINAL>X</CLSFINAL> | ||
<CLSCCINCL>X</CLSCCINCL> | ||
<FIXPT>X</FIXPT> | ||
<UNICODE>X</UNICODE> | ||
</VSEOCLASS> | ||
</asx:values> | ||
</asx:abap> | ||
</abapGit> |
Oops, something went wrong.