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
public class TextPart extends DescriptionPart
Class representsIDescriptionPart
of Bsl documentation comment. It contains simple text
-
-
Constructor Summary
Constructors Constructor Description TextPart(IDescriptionPart parent, int lineNumber, int offset, String text)
Constructor.TextPart(IDescriptionPart parent, int lineNumber, String text)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getText()
Gets content of the partboolean
match(int lineNumber, int offset)
Checks that this description part corresponding to the concrete line number and offsetvoid
setText(String text)
Sets content of the part-
Methods inherited from class com._1c.g5.v8.dt.bsl.documentation.comment.DescriptionPart
getLineNumber, getOffset, getParent
-
-
-
-
Constructor Detail
-
TextPart
public TextPart(IDescriptionPart parent, int lineNumber, int offset, String text)
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
public TextPart(IDescriptionPart parent, int lineNumber, String text)
Constructor.- Parameters:
parent
- the parent object, cannot benull
.lineNumber
- line nubmer corresponding to parttext
- content of the part, cannot benull
-
-
Method Detail
-
getText
public String getText()
Gets content of the part- Returns:
- content of the part, never
null
-
setText
public void setText(String text)
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
-
-