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 andTypeSection.FieldDefinitions corresponding to the method parameters. Important that description part end when the first parameter was described.
- 
- 
Constructor SummaryConstructors Constructor Description ParametersSection(IDescriptionPart parent, int lineNumber)Constructor.ParametersSection(IDescriptionPart parent, int lineNumber, int offset, int headerKeywordLenght)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTypeSection(TypeSection typeSection)Adds newTypeSectionto type sectionTypeSection.FieldDefinitiongetParameterByName(String name)GestTypeSection.FieldDefinitionby its nameList<TypeSection.FieldDefinition>getParameterDefinitions()GetsTypeSection.FieldDefinitions described in parameter section.BslDocumentationComment.DescriptiongetSourceDescription()GetsBslDocumentationComment.Descriptioncontains initial content of the parameter section.- 
Methods inherited from class com._1c.g5.v8.dt.bsl.documentation.comment.BslDocumentationComment.SectiongetDescription, getHeaderKeywordLength, getLineNumber, getOffset, getParent, match
 
- 
 
- 
- 
- 
Constructor Detail- 
ParametersSectionpublic ParametersSection(IDescriptionPart parent, int lineNumber, int offset, int headerKeywordLenght) 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
- headerKeywordLenght- length of the keyword of the section
 
 - 
ParametersSectionpublic ParametersSection(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- 
getSourceDescriptionpublic BslDocumentationComment.Description 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, never- null
 
 - 
addTypeSectionpublic void addTypeSection(TypeSection typeSection) Description copied from interface:ITypeSectionCollectorAdds newTypeSectionto type section- Specified by:
- addTypeSectionin interface- ITypeSectionCollector
- Parameters:
- typeSection- adding new- TypeSection, cannot be- null
 
 - 
getParameterDefinitionspublic List<TypeSection.FieldDefinition> 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
 
 - 
getParameterByNamepublic TypeSection.FieldDefinition getParameterByName(String name) GestTypeSection.FieldDefinitionby its name- Parameters:
- name- name of the getting- TypeSection.FieldDefinition, cannot be- null
- Returns:
- TypeSection.FieldDefinitionwith concrete name, can be- nullif there is no- TypeSection.FieldDefinitionwith the same name
 
 
- 
 
-