Skip to content

/AWS1/CL_CMTDIFFCHANGE

A single line-level entry in a diff hunk. Each DiffChange describes one line and its change type: unchanged context, an addition in the after blob, or a deletion from the before blob.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_type TYPE /AWS1/CMTDIFFCHANGETYPE /AWS1/CMTDIFFCHANGETYPE

The type of change for this line. Possible values:

  • CONTEXT – Unchanged line included for surrounding context.

  • ADD – Line added in the after blob.

  • DELETE – Line removed from the before blob.

iv_beforelinenumber TYPE /AWS1/CMTLINENUMBER /AWS1/CMTLINENUMBER

The 1-based line number in the before blob. This field is omitted for ADD lines.

iv_afterlinenumber TYPE /AWS1/CMTLINENUMBER /AWS1/CMTLINENUMBER

The 1-based line number in the after blob. This field is omitted for DELETE lines.

iv_content TYPE /AWS1/CMTLINECONTENT /AWS1/CMTLINECONTENT

The text content of the line, without the trailing newline.


Queryable Attributes

type

The type of change for this line. Possible values:

  • CONTEXT – Unchanged line included for surrounding context.

  • ADD – Line added in the after blob.

  • DELETE – Line removed from the before blob.

Accessible with the following methods

Method Description
GET_TYPE() Getter for TYPE, with configurable default
ASK_TYPE() Getter for TYPE w/ exceptions if field has no value
HAS_TYPE() Determine if TYPE has a value

beforeLineNumber

The 1-based line number in the before blob. This field is omitted for ADD lines.

Accessible with the following methods

Method Description
GET_BEFORELINENUMBER() Getter for BEFORELINENUMBER, with configurable default
ASK_BEFORELINENUMBER() Getter for BEFORELINENUMBER w/ exceptions if field has no va
HAS_BEFORELINENUMBER() Determine if BEFORELINENUMBER has a value

afterLineNumber

The 1-based line number in the after blob. This field is omitted for DELETE lines.

Accessible with the following methods

Method Description
GET_AFTERLINENUMBER() Getter for AFTERLINENUMBER, with configurable default
ASK_AFTERLINENUMBER() Getter for AFTERLINENUMBER w/ exceptions if field has no val
HAS_AFTERLINENUMBER() Determine if AFTERLINENUMBER has a value

content

The text content of the line, without the trailing newline.

Accessible with the following methods

Method Description
GET_CONTENT() Getter for CONTENT, with configurable default
ASK_CONTENT() Getter for CONTENT w/ exceptions if field has no value
HAS_CONTENT() Determine if CONTENT has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_DIFFCHANGELIST

TYPES TT_DIFFCHANGELIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_CMTDIFFCHANGE WITH DEFAULT KEY
.