Class BslDocumentationComment.Description
java.lang.Object
com._1c.g5.v8.dt.bsl.documentation.comment.BslDocumentationComment.Description
- All Implemented Interfaces:
IDescriptionPart
- Enclosing class:
- BslDocumentationComment
Class represent description of the
BslDocumentationComment.Section of the Bsl documentation comment. Description contains differents IDescriptionParts-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPart(DescriptionPart part) Adds newIDescriptionPartto the descriptionvoidaddParts(Collection<IDescriptionPart> parts) Adds newIDescriptionParts to the descriptionintGets the line nubmer corresponding to part.intGets offset of the begining part.Gets the parent object.getParts()GetsIDescriptionParts contain in descriptionbooleanmatch(int lineNumber, int offset) Checks that this description part corresponding to the concrete line number and offset
-
Constructor Details
-
Description
Constructor. Empty description- Parameters:
parent- the parent object, cannot benull.
-
-
Method Details
-
getParent
Gets the parent object.- Specified by:
getParentin interfaceIDescriptionPart- Returns:
- the parent object, can return
nullif it is created separetly form parsing
-
addPart
Adds newIDescriptionPartto the description- Parameters:
part- adding part, cannot benull
-
addParts
Adds newIDescriptionParts to the description- Parameters:
parts- adding parts, cannot benull
-
getParts
GetsIDescriptionParts contain in description- Returns:
- parts in description, never
null
-
getOffset
public int getOffset()Description copied from interface:IDescriptionPartGets offset of the begining part. Offset - local inline offset- Specified by:
getOffsetin interfaceIDescriptionPart- Returns:
- offset of the begining part.
-
getLineNumber
public int getLineNumber()Description copied from interface:IDescriptionPartGets the line nubmer corresponding to part. Numeration starts from 0 Line number - line number corresponding to the begining of the documentation comment. Each comment starts with line with number 0- Specified by:
getLineNumberin interfaceIDescriptionPart- Returns:
- the line nubmer corresponding to part
-
match
public boolean match(int lineNumber, int offset) Description copied from interface:IDescriptionPartChecks that this description part corresponding to the concrete line number and offset- Specified by:
matchin interfaceIDescriptionPart- Parameters:
lineNumber- number of the documentation comment lineoffset- local offset on the comment line- Returns:
trueif this description part corresponding to the send line number and offset,falseotherwise
-