/AWS1/CL_CMTDIFFHUNK¶
A contiguous run of changed lines from a blob diff, together with any surrounding unchanged context lines. Hunks are returned in order from the start of the file to the end. Adjacent or overlapping hunks are merged into a single hunk in the response.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_beforestartline TYPE /AWS1/CMTLINENUMBER /AWS1/CMTLINENUMBER¶
The 1-based line number in the before blob where this hunk begins. When the hunk consists entirely of additions,
beforeLineCountis0.
iv_beforelinecount TYPE /AWS1/CMTCOUNT /AWS1/CMTCOUNT¶
The number of lines from the before blob covered by this hunk, including any context lines.
iv_afterstartline TYPE /AWS1/CMTLINENUMBER /AWS1/CMTLINENUMBER¶
The 1-based line number in the after blob where this hunk begins. When the hunk consists entirely of deletions,
afterLineCountis0.
iv_afterlinecount TYPE /AWS1/CMTCOUNT /AWS1/CMTCOUNT¶
The number of lines from the after blob covered by this hunk, including any context lines.
it_changes TYPE /AWS1/CL_CMTDIFFCHANGE=>TT_DIFFCHANGELIST TT_DIFFCHANGELIST¶
An ordered list of line-level changes that make up this hunk. Each entry indicates whether the line is unchanged context, an addition, or a deletion.
Queryable Attributes¶
beforeStartLine¶
The 1-based line number in the before blob where this hunk begins. When the hunk consists entirely of additions,
beforeLineCountis0.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_BEFORESTARTLINE() |
Getter for BEFORESTARTLINE, with configurable default |
ASK_BEFORESTARTLINE() |
Getter for BEFORESTARTLINE w/ exceptions if field has no val |
HAS_BEFORESTARTLINE() |
Determine if BEFORESTARTLINE has a value |
beforeLineCount¶
The number of lines from the before blob covered by this hunk, including any context lines.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_BEFORELINECOUNT() |
Getter for BEFORELINECOUNT, with configurable default |
ASK_BEFORELINECOUNT() |
Getter for BEFORELINECOUNT w/ exceptions if field has no val |
HAS_BEFORELINECOUNT() |
Determine if BEFORELINECOUNT has a value |
afterStartLine¶
The 1-based line number in the after blob where this hunk begins. When the hunk consists entirely of deletions,
afterLineCountis0.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_AFTERSTARTLINE() |
Getter for AFTERSTARTLINE, with configurable default |
ASK_AFTERSTARTLINE() |
Getter for AFTERSTARTLINE w/ exceptions if field has no valu |
HAS_AFTERSTARTLINE() |
Determine if AFTERSTARTLINE has a value |
afterLineCount¶
The number of lines from the after blob covered by this hunk, including any context lines.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_AFTERLINECOUNT() |
Getter for AFTERLINECOUNT, with configurable default |
ASK_AFTERLINECOUNT() |
Getter for AFTERLINECOUNT w/ exceptions if field has no valu |
HAS_AFTERLINECOUNT() |
Determine if AFTERLINECOUNT has a value |
changes¶
An ordered list of line-level changes that make up this hunk. Each entry indicates whether the line is unchanged context, an addition, or a deletion.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CHANGES() |
Getter for CHANGES, with configurable default |
ASK_CHANGES() |
Getter for CHANGES w/ exceptions if field has no value |
HAS_CHANGES() |
Determine if CHANGES 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_DIFFHUNKLIST¶
TYPES TT_DIFFHUNKLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_CMTDIFFHUNK WITH DEFAULT KEY
.