Class BslDocumentationComment.ReturnSection
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.documentation.comment.BslDocumentationComment.Section
-
- com._1c.g5.v8.dt.bsl.documentation.comment.BslDocumentationComment.ReturnSection
-
- All Implemented Interfaces:
IDescriptionPart
,ITypeSectionCollector
- Enclosing class:
- BslDocumentationComment
public static class BslDocumentationComment.ReturnSection extends BslDocumentationComment.Section implements ITypeSectionCollector
Class represents return section of the Bsl documentation comment. This section has description part andTypeSection
. Important that description part end whenTypeSection
starts and cannot be continue for it.
-
-
Constructor Summary
Constructors Constructor Description ReturnSection(IDescriptionPart parent, int lineNumber)
Constructor.ReturnSection(IDescriptionPart parent, int lineNumber, int offset, int headerKeywordLenght)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTypeSection(TypeSection typeSection)
Adds newTypeSection
to type sectionList<TypeSection>
getReturnTypes()
GetsTypeSection
described in return section.-
Methods inherited from class com._1c.g5.v8.dt.bsl.documentation.comment.BslDocumentationComment.Section
getDescription, getHeaderKeywordLength, getLineNumber, getOffset, getParent, match
-
-
-
-
Constructor Detail
-
ReturnSection
public ReturnSection(IDescriptionPart parent, int lineNumber, int offset, int headerKeywordLenght)
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 lineheaderKeywordLenght
- the header keyword lenght
-
ReturnSection
public ReturnSection(IDescriptionPart parent, int lineNumber)
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 Detail
-
getReturnTypes
public List<TypeSection> getReturnTypes()
GetsTypeSection
described in return section. One return section can have 0..N type sections- Returns:
- collection of the described
TypeSection
s, nevernull
-
addTypeSection
public void addTypeSection(TypeSection typeSection)
Description copied from interface:ITypeSectionCollector
Adds newTypeSection
to type section- Specified by:
addTypeSection
in interfaceITypeSectionCollector
- Parameters:
typeSection
- adding newTypeSection
, cannot benull
-
-