Class BslDocumentationComment.Section
java.lang.Object
com._1c.g5.v8.dt.bsl.documentation.comment.BslDocumentationComment.Section
- All Implemented Interfaces:
IDescriptionPart
- Direct Known Subclasses:
BslDocumentationComment.ParametersSection,BslDocumentationComment.ReturnSection,TypeSection
- Enclosing class:
- BslDocumentationComment
Class represents section of the Bsl documentation comment. There are next section:
- parameter section
- call option section
- return section
- example section
IBslCommentToken-
Constructor Summary
ConstructorsConstructorDescriptionSection(IDescriptionPart parent, int lineNumber) Constructor.Section(IDescriptionPart parent, int lineNumber, int offset, int headerKeywordLength) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGetsBslDocumentationComment.Descriptionof the sectionintGets length of the keyword of the sectionintGets number of line from the comment begining corresponding to the start line of the sectionintGets local line offset of the begining section on the lineGets the parent object.booleanmatch(int lineNumber, int offset) Checks that this description part corresponding to the concrete line number and offset
-
Constructor Details
-
Section
Constructor.- Parameters:
parent- the parent object, cannot benull.lineNumber- number of line from the comment begining corresponding to the start line of the sectionoffset- local line offset of the begining section on the lineheaderKeywordLength- length of the keyword of the section
-
Section
Constructor. This constructor should be used if section description created programmatically- Parameters:
parent- the parent object, cannot benull.lineNumber- number of line from the comment begining corresponding to the start line of the section
-
-
Method Details
-
getParent
Gets the parent object.- Specified by:
getParentin interfaceIDescriptionPart- Returns:
- the parent object, can return
nullif it is created separetly form parsing
-
getDescription
GetsBslDocumentationComment.Descriptionof the section- Returns:
BslDocumentationComment.Descriptionof the section, nevernull
-
getLineNumber
public int getLineNumber()Gets number of line from the comment begining corresponding to the start line of the section- Specified by:
getLineNumberin interfaceIDescriptionPart- Returns:
- number of line from the comment begining corresponding to the start line of the section
-
getOffset
public int getOffset()Gets local line offset of the begining section on the line- Specified by:
getOffsetin interfaceIDescriptionPart- Returns:
- local line offset of the begining section on the line, offset can be -1 if offset wasnot set
-
getHeaderKeywordLength
public int getHeaderKeywordLength()Gets length of the keyword of the section- Returns:
- llength of the keyword of the section, length can be -1 if length wasnot set
-
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
-