com.atlassian.stash.comment.DiffCommentAnchor |
Known Indirect Subclasses |
The file or diff a comment is "anchored" to.
Note: General comments and replies, whether to a file or diff comment or not, do not have anchors.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | NO_LINE |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
IS_FILE_COMMENT | A predicate for finding file comment anchors . |
||||||||||
IS_LINE_COMMENT | A predicate for finding isLineComment() line comment anchors}. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
File type this anchor is anchored to in a Stash diff.
| |||||||||||
The original path at which the
content pointed to by this anchor originated, or null ,
if the change was not one that produces a new path . | |||||||||||
A predicate for finding file comment anchors
.
A predicate for finding isLineComment()
line comment anchors}.
File type this anchor is anchored to in a Stash diff.
The following relationship with getLineType()
occurs:
null
if this is not a
line anchor
The original path at which the content pointed to
by this anchor originated, or null
,
if the change was not one that produces a new path
.
true
, if this is a file comment anchor, i.e. an anchor associated with the whole file rather than
a particular line. true
implies that isLineComment()
returns false
.true
, if this is a line comment anchor, i.e. an anchor associated with a particular line in the
file. true
implies that isFileComment()
returns false
.