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.FieldDefinitions 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 TypeMethodDescriptionvoidaddTypeSection(TypeSection typeSection) Adds newTypeSectionto type sectiongetParameterByName(String name) GestTypeSection.FieldDefinitionby its nameGetsTypeSection.FieldDefinitions described in parameter section.GetsBslDocumentationComment.Descriptioncontains 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.Descriptioncontains initial content of the parameter section. Each part of theBslDocumentationComment.Descriptioncan beTextPart,LinkPartandTypeSection.TypeSection.FieldDefinitions will be created by this content ingetParameterDefinitions().- Returns:
BslDocumentationComment.Descriptioncontains initial content of the parameter section, nevernull
-
addTypeSection
Description copied from interface:ITypeSectionCollectorAdds newTypeSectionto type section- Specified by:
addTypeSectionin interfaceITypeSectionCollector- Parameters:
typeSection- adding newTypeSection, cannot benull
-
getParameterDefinitions
GetsTypeSection.FieldDefinitions 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.STARin new format- Returns:
- collection
TypeSection.FieldDefinitions described in parameter section, nevernull
-
getParameterByName
GestTypeSection.FieldDefinitionby its name- Parameters:
name- name of the gettingTypeSection.FieldDefinition, cannot benull- Returns:
TypeSection.FieldDefinitionwith concrete name, can benullif there is noTypeSection.FieldDefinitionwith the same name
-