com.atlassian.bitbucket.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 |
This field is deprecated.
in 4.0 for removal in 5.0. With Java 8, DiffCommentAnchor::isFileComment can be used instead.
|
||||||||||
IS_LINE_COMMENT |
This field is deprecated.
in 4.0 for removal in 5.0. With Java 8, DiffCommentAnchor::isLineComment can be used instead.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
File type this anchor is anchored to in a 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 . | |||||||||||
This field is deprecated.
in 4.0 for removal in 5.0. With Java 8, DiffCommentAnchor::isFileComment
can be used instead.
A predicate for finding file comment anchors
.
This field is deprecated.
in 4.0 for removal in 5.0. With Java 8, DiffCommentAnchor::isLineComment
can be used instead.
A predicate for finding isLineComment()
line comment anchors}.
File type this anchor is anchored to in a 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
.