mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-03 13:26:12 +08:00

* abapOpenChecks config file
* Ignore SCI config folder
* checks revision
* Revert "checks revision"
This reverts commit 56a12289df
.
* Renaming non-constants
Pending:
* Remove SCI configuration
Co-authored-by: Lars Hvam <larshp@hotmail.com>
32 lines
833 B
ABAP
32 lines
833 B
ABAP
CLASS zcl_abapgit_oo_factory DEFINITION PUBLIC.
|
|
|
|
PUBLIC SECTION.
|
|
CLASS-METHODS:
|
|
make
|
|
IMPORTING
|
|
iv_object_type TYPE tadir-object
|
|
RETURNING
|
|
VALUE(ri_object_oriented_object) TYPE REF TO zif_abapgit_oo_object_fnc.
|
|
PRIVATE SECTION.
|
|
|
|
CLASS-DATA gi_object_oriented_object TYPE REF TO zif_abapgit_oo_object_fnc .
|
|
ENDCLASS.
|
|
|
|
|
|
|
|
CLASS zcl_abapgit_oo_factory IMPLEMENTATION.
|
|
|
|
|
|
METHOD make.
|
|
IF gi_object_oriented_object IS BOUND.
|
|
ri_object_oriented_object = gi_object_oriented_object.
|
|
RETURN.
|
|
ENDIF.
|
|
IF iv_object_type = 'CLAS'.
|
|
CREATE OBJECT ri_object_oriented_object TYPE zcl_abapgit_oo_class.
|
|
ELSEIF iv_object_type = 'INTF'.
|
|
CREATE OBJECT ri_object_oriented_object TYPE zcl_abapgit_oo_interface.
|
|
ENDIF.
|
|
ENDMETHOD.
|
|
ENDCLASS.
|