Class TextPart
java.lang.Object
com._1c.g5.v8.dt.bsl.documentation.comment.DescriptionPart
com._1c.g5.v8.dt.bsl.documentation.comment.TextPart
- All Implemented Interfaces:
IDescriptionPart
Class represents
IDescriptionPart
of Bsl documentation comment. It contains simple text-
Constructor Summary
ConstructorsConstructorDescriptionTextPart
(IDescriptionPart parent, int lineNumber, int offset, String text) Constructor.TextPart
(IDescriptionPart parent, int lineNumber, String text) Constructor. -
Method Summary
Methods inherited from class com._1c.g5.v8.dt.bsl.documentation.comment.DescriptionPart
getLineNumber, getOffset, getParent
-
Constructor Details
-
TextPart
Constructor.- Parameters:
parent
- the parent object, cannot benull
.lineNumber
- line nubmer corresponding to partoffset
- offset of the begining parttext
- content of the part, cannot benull
-
TextPart
Constructor.- Parameters:
parent
- the parent object, cannot benull
.lineNumber
- line nubmer corresponding to parttext
- content of the part, cannot benull
-
-
Method Details
-
getText
Gets content of the part- Returns:
- content of the part, never
null
-
setText
Sets content of the part- Parameters:
text
- content of the part, cannot benull
-
match
public boolean match(int lineNumber, int offset) Description copied from interface:IDescriptionPart
Checks that this description part corresponding to the concrete line number and offset- Parameters:
lineNumber
- number of the documentation comment lineoffset
- local offset on the comment line- Returns:
true
if this description part corresponding to the send line number and offset,false
otherwise
-