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
 
 public static class BslDocumentationComment.Section extends Object implements IDescriptionPart Class represents section of the Bsl documentation comment. There are next section:- parameter section
- call option section
- return section
- example section
 IBslCommentToken
- 
- 
Constructor SummaryConstructors Constructor Description Section(IDescriptionPart parent, int lineNumber)Constructor.Section(IDescriptionPart parent, int lineNumber, int offset, int headerKeywordLength)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BslDocumentationComment.DescriptiongetDescription()GetsBslDocumentationComment.Descriptionof the sectionintgetHeaderKeywordLength()Gets length of the keyword of the sectionintgetLineNumber()Gets number of line from the comment begining corresponding to the start line of the sectionintgetOffset()Gets local line offset of the begining section on the lineIDescriptionPartgetParent()Gets the parent object.booleanmatch(int lineNumber, int offset)Checks that this description part corresponding to the concrete line number and offset
 
- 
- 
- 
Constructor Detail- 
Sectionpublic Section(IDescriptionPart parent, int lineNumber, int offset, int headerKeywordLength) Constructor.- Parameters:
- parent- the parent object, cannot be- null.
- lineNumber- number of line from the comment begining corresponding to the start line of the section
- offset- local line offset of the begining section on the line
- headerKeywordLength- length of the keyword of the section
 
 - 
Sectionpublic Section(IDescriptionPart parent, int lineNumber) Constructor. This constructor should be used if section description created programmatically- Parameters:
- parent- the parent object, cannot be- null.
- lineNumber- number of line from the comment begining corresponding to the start line of the section
 
 
- 
 - 
Method Detail- 
getParentpublic IDescriptionPart getParent() Gets the parent object.- Specified by:
- getParentin interface- IDescriptionPart
- Returns:
- the parent object, can return nullif it is created separetly form parsing
 
 - 
getDescriptionpublic BslDocumentationComment.Description getDescription() GetsBslDocumentationComment.Descriptionof the section- Returns:
- BslDocumentationComment.Descriptionof the section, never- null
 
 - 
getLineNumberpublic int getLineNumber() Gets number of line from the comment begining corresponding to the start line of the section- Specified by:
- getLineNumberin interface- IDescriptionPart
- Returns:
- number of line from the comment begining corresponding to the start line of the section
 
 - 
getOffsetpublic int getOffset() Gets local line offset of the begining section on the line- Specified by:
- getOffsetin interface- IDescriptionPart
- Returns:
- local line offset of the begining section on the line, offset can be -1 if offset wasnot set
 
 - 
getHeaderKeywordLengthpublic 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
 
 - 
matchpublic 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 interface- IDescriptionPart
- Parameters:
- lineNumber- number of the documentation comment line
- offset- local offset on the comment line
- Returns:
- trueif this description part corresponding to the send line number and offset,- falseotherwise
 
 
- 
 
-