diff --git a/package.json b/package.json index e83c33d2..4ed91fac 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,10 @@ }, "license": "MIT", "dependencies": { - "@abaplint/cli": "^2.113.9", - "@abaplint/database-sqlite": "^2.8.25", - "@abaplint/runtime": "^2.10.19", - "@abaplint/transpiler-cli": "^2.10.19", + "@abaplint/cli": "^2.113.17", + "@abaplint/database-sqlite": "^2.10.20", + "@abaplint/runtime": "^2.10.20", + "@abaplint/transpiler-cli": "^2.10.20", "0x": "^5.7.0" } } diff --git a/src/cl_demo_output.clas.abap b/src/demo/cl_demo_output.clas.abap similarity index 52% rename from src/cl_demo_output.clas.abap rename to src/demo/cl_demo_output.clas.abap index 5190b61c..5d8ab0a4 100644 --- a/src/cl_demo_output.clas.abap +++ b/src/demo/cl_demo_output.clas.abap @@ -1,5 +1,7 @@ CLASS cl_demo_output DEFINITION PUBLIC. PUBLIC SECTION. + INTERFACES if_demo_output. + CLASS-METHODS write IMPORTING data TYPE any @@ -7,10 +9,14 @@ CLASS cl_demo_output DEFINITION PUBLIC. CLASS-METHODS clear. + CLASS-METHODS new + RETURNING + VALUE(output) TYPE REF TO if_demo_output. + CLASS-METHODS display IMPORTING - data TYPE any OPTIONAL - name TYPE string OPTIONAL PREFERRED PARAMETER data. + data TYPE any OPTIONAL + name TYPE string OPTIONAL PREFERRED PARAMETER data. ENDCLASS. CLASS cl_demo_output IMPLEMENTATION. @@ -18,6 +24,14 @@ CLASS cl_demo_output IMPLEMENTATION. ASSERT 1 = 'not supported'. ENDMETHOD. + METHOD if_demo_output~write. + ASSERT 1 = 'not supported'. + ENDMETHOD. + + METHOD new. + ASSERT 1 = 'not supported'. + ENDMETHOD. + METHOD clear. ASSERT 1 = 'not supported'. ENDMETHOD. @@ -25,4 +39,8 @@ CLASS cl_demo_output IMPLEMENTATION. METHOD display. ASSERT 1 = 'not supported'. ENDMETHOD. + + METHOD if_demo_output~display. + ASSERT 1 = 'not supported'. + ENDMETHOD. ENDCLASS. \ No newline at end of file diff --git a/src/demo/if_demo_output.intf.abap b/src/demo/if_demo_output.intf.abap new file mode 100644 index 00000000..019170ff --- /dev/null +++ b/src/demo/if_demo_output.intf.abap @@ -0,0 +1,9 @@ +INTERFACE if_demo_output PUBLIC. + + METHODS write + IMPORTING + data TYPE any. + + METHODS display. + +ENDINTERFACE. \ No newline at end of file