Class BslDocumentationComment.ParametersSection
java.lang.Object
com._1c.g5.v8.dt.bsl.documentation.comment.BslDocumentationComment.Section
com._1c.g5.v8.dt.bsl.documentation.comment.BslDocumentationComment.ParametersSection
- All Implemented Interfaces:
IDescriptionPart
,ITypeSectionCollector
- Enclosing class:
- BslDocumentationComment
public static class BslDocumentationComment.ParametersSection
extends BslDocumentationComment.Section
implements ITypeSectionCollector
Class represents parameter section of the Bsl documentation comment.
This section has description part and
TypeSection.FieldDefinition
s corresponding to the method parameters.
Important that description part end when the first parameter was described.-
Constructor Summary
ConstructorsConstructorDescriptionParametersSection
(IDescriptionPart parent, int lineNumber) Constructor.ParametersSection
(IDescriptionPart parent, int lineNumber, int offset, int headerKeywordLenght) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTypeSection
(TypeSection typeSection) Adds newTypeSection
to type sectiongetParameterByName
(String name) GestTypeSection.FieldDefinition
by its nameGetsTypeSection.FieldDefinition
s described in parameter section.GetsBslDocumentationComment.Description
contains initial content of the parameter section.Methods inherited from class com._1c.g5.v8.dt.bsl.documentation.comment.BslDocumentationComment.Section
getDescription, getHeaderKeywordLength, getLineNumber, getOffset, getParent, match
-
Constructor Details
-
ParametersSection
public ParametersSection(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
- length of the keyword of the section
-
ParametersSection
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
-
getSourceDescription
GetsBslDocumentationComment.Description
contains initial content of the parameter section. Each part of theBslDocumentationComment.Description
can beTextPart
,LinkPart
andTypeSection
.TypeSection.FieldDefinition
s will be created by this content ingetParameterDefinitions()
.- Returns:
BslDocumentationComment.Description
contains initial content of the parameter section, nevernull
-
addTypeSection
Description copied from interface:ITypeSectionCollector
Adds newTypeSection
to type section- Specified by:
addTypeSection
in interfaceITypeSectionCollector
- Parameters:
typeSection
- adding newTypeSection
, cannot benull
-
getParameterDefinitions
GetsTypeSection.FieldDefinition
s described in parameter section. Fields created by source description partgetSourceDescription()
. Each parameter method definition should be start with name of the method parameter in old comment format, or should be start fromIBslCommentToken.STAR
in new format- Returns:
- collection
TypeSection.FieldDefinition
s described in parameter section, nevernull
-
getParameterByName
GestTypeSection.FieldDefinition
by its name- Parameters:
name
- name of the gettingTypeSection.FieldDefinition
, cannot benull
- Returns:
TypeSection.FieldDefinition
with concrete name, can benull
if there is noTypeSection.FieldDefinition
with the same name
-