mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
* update source index #1597 * remove comment * fix indentation
This commit is contained in:
parent
89dce7cb6d
commit
23ded859ea
|
@ -7,60 +7,63 @@ CLASS zcl_abapgit_oo_class_new DEFINITION PUBLIC INHERITING FROM zcl_abapgit_oo_
|
||||||
zif_abapgit_oo_object_fnc~deserialize_source REDEFINITION.
|
zif_abapgit_oo_object_fnc~deserialize_source REDEFINITION.
|
||||||
|
|
||||||
PRIVATE SECTION.
|
PRIVATE SECTION.
|
||||||
CLASS-METHODS:
|
|
||||||
update_report
|
CLASS-METHODS update_source_index
|
||||||
IMPORTING
|
IMPORTING
|
||||||
iv_program TYPE programm
|
!iv_clsname TYPE csequence
|
||||||
it_source TYPE string_table
|
!io_scanner TYPE REF TO cl_oo_source_scanner_class .
|
||||||
|
CLASS-METHODS update_report
|
||||||
|
IMPORTING
|
||||||
|
!iv_program TYPE programm
|
||||||
|
!it_source TYPE string_table
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(rv_updated) TYPE abap_bool
|
VALUE(rv_updated) TYPE abap_bool
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception,
|
zcx_abapgit_exception .
|
||||||
generate_classpool
|
CLASS-METHODS generate_classpool
|
||||||
IMPORTING
|
IMPORTING
|
||||||
iv_name TYPE seoclsname
|
!iv_name TYPE seoclsname
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception,
|
zcx_abapgit_exception .
|
||||||
update_meta
|
CLASS-METHODS update_meta
|
||||||
IMPORTING
|
IMPORTING
|
||||||
iv_name TYPE seoclsname
|
!iv_name TYPE seoclsname
|
||||||
iv_exposure TYPE seoexpose
|
!iv_exposure TYPE seoexpose
|
||||||
it_source TYPE rswsourcet
|
!it_source TYPE rswsourcet
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception,
|
zcx_abapgit_exception .
|
||||||
determine_method_include
|
CLASS-METHODS determine_method_include
|
||||||
IMPORTING
|
IMPORTING
|
||||||
iv_name TYPE seoclsname
|
!iv_name TYPE seoclsname
|
||||||
iv_method TYPE seocpdname
|
!iv_method TYPE seocpdname
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(rv_program) TYPE programm
|
VALUE(rv_program) TYPE programm
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception,
|
zcx_abapgit_exception .
|
||||||
init_scanner
|
CLASS-METHODS init_scanner
|
||||||
IMPORTING
|
IMPORTING
|
||||||
it_source TYPE zif_abapgit_definitions=>ty_string_tt
|
!it_source TYPE zif_abapgit_definitions=>ty_string_tt
|
||||||
iv_name TYPE seoclsname
|
!iv_name TYPE seoclsname
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(ro_scanner) TYPE REF TO cl_oo_source_scanner_class
|
VALUE(ro_scanner) TYPE REF TO cl_oo_source_scanner_class
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception,
|
zcx_abapgit_exception .
|
||||||
update_full_class_include
|
CLASS-METHODS update_full_class_include
|
||||||
IMPORTING
|
IMPORTING
|
||||||
iv_classname TYPE seoclsname
|
!iv_classname TYPE seoclsname
|
||||||
it_source TYPE string_table
|
!it_source TYPE string_table
|
||||||
it_methods TYPE cl_oo_source_scanner_class=>type_method_implementations,
|
!it_methods TYPE cl_oo_source_scanner_class=>type_method_implementations .
|
||||||
create_report
|
CLASS-METHODS create_report
|
||||||
IMPORTING
|
IMPORTING
|
||||||
iv_program TYPE programm
|
!iv_program TYPE programm
|
||||||
it_source TYPE string_table
|
!it_source TYPE string_table
|
||||||
iv_extension TYPE sychar02
|
!iv_extension TYPE sychar02
|
||||||
iv_program_type TYPE sychar01
|
!iv_program_type TYPE sychar01
|
||||||
iv_version TYPE r3state,
|
!iv_version TYPE r3state .
|
||||||
update_cs_number_of_methods
|
CLASS-METHODS update_cs_number_of_methods
|
||||||
IMPORTING
|
IMPORTING
|
||||||
iv_classname TYPE seoclsname
|
!iv_classname TYPE seoclsname
|
||||||
iv_number_of_impl_methods TYPE i.
|
!iv_number_of_impl_methods TYPE i .
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
@ -298,6 +301,24 @@ CLASS ZCL_ABAPGIT_OO_CLASS_NEW IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
|
METHOD update_source_index.
|
||||||
|
|
||||||
|
DATA li_index_helper TYPE REF TO if_oo_source_pos_index_helper.
|
||||||
|
|
||||||
|
CREATE OBJECT li_index_helper TYPE cl_oo_source_pos_index_helper.
|
||||||
|
|
||||||
|
li_index_helper->create_index_with_scanner(
|
||||||
|
class_name = iv_clsname
|
||||||
|
version = if_oo_clif_source=>co_version_active
|
||||||
|
scanner = io_scanner ).
|
||||||
|
|
||||||
|
li_index_helper->delete_index(
|
||||||
|
class_name = iv_clsname
|
||||||
|
version = if_oo_clif_source=>co_version_inactive ).
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD zif_abapgit_oo_object_fnc~create.
|
METHOD zif_abapgit_oo_object_fnc~create.
|
||||||
* same as in super class, but with "version = seoc_version_active"
|
* same as in super class, but with "version = seoc_version_active"
|
||||||
|
|
||||||
|
@ -401,6 +422,10 @@ CLASS ZCL_ABAPGIT_OO_CLASS_NEW IMPLEMENTATION.
|
||||||
it_source = it_source
|
it_source = it_source
|
||||||
it_methods = lt_methods ).
|
it_methods = lt_methods ).
|
||||||
|
|
||||||
|
update_source_index(
|
||||||
|
iv_clsname = is_key-clsname
|
||||||
|
io_scanner = lo_scanner ).
|
||||||
|
|
||||||
* TODO, perhaps move this call to somewhere else, to be done while cleaning up the CLAS deserialization
|
* TODO, perhaps move this call to somewhere else, to be done while cleaning up the CLAS deserialization
|
||||||
zcl_abapgit_objects_activation=>add(
|
zcl_abapgit_objects_activation=>add(
|
||||||
iv_type = 'CLAS'
|
iv_type = 'CLAS'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user