Package com._1c.g5.v8.dt.bsl.ui
Class BslDocumentationProvider.DocumentContent.ParamContent
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.BslDocumentationProvider.DocumentContent.ParamContent
-
- Enclosing class:
- BslDocumentationProvider.DocumentContent
public static class BslDocumentationProvider.DocumentContent.ParamContent extends Object
Contains information about parameter of method or constructor
-
-
Constructor Summary
Constructors Constructor Description ParamContent(String name, String paramDescr, List<BslDocumentationProvider.DocumentContent.GroupTypeDescription> type, boolean isRequired)
Initialize parameter of method or constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Gets description of the parameterString
getTypePresentation()
Return type presentation of paramstatic BslDocumentationProvider.DocumentContent.ParamContent
parseParamContent(String content)
Parses parameter contentString
toFormatString(int count)
Creates format string for parameter of method or constructorString
toFormatStringForContentAssist(String returnTypeStr, String syntax, boolean needTypeSection)
Creates format string for method in hover in BSL
-
-
-
Constructor Detail
-
ParamContent
public ParamContent(String name, String paramDescr, List<BslDocumentationProvider.DocumentContent.GroupTypeDescription> type, boolean isRequired)
Initialize parameter of method or constructor- Parameters:
name
- name of parameter, can benull
paramDescr
- description of method, cant benull
type
- name of type parameter, can benull
isRequired
- required parameter or not
-
-
Method Detail
-
parseParamContent
public static BslDocumentationProvider.DocumentContent.ParamContent parseParamContent(String content)
Parses parameter content- Parameters:
content
- parameters string representation content, can benull
- Returns:
- created parameter, can be
null
-
toFormatString
public String toFormatString(int count)
Creates format string for parameter of method or constructor- Parameters:
count
-- Returns:
- format string for parameter of method or constructor, never
null
-
toFormatStringForContentAssist
public String toFormatStringForContentAssist(String returnTypeStr, String syntax, boolean needTypeSection)
Creates format string for method in hover in BSL- Parameters:
returnTypeStr
- name of return Type of method, can benull
syntax
- syntax of method, can benull
needTypeSection
-true
if content should have parameter section,false
otherwise- Returns:
- format string for method in hover in BSL, never
null
-
getTypePresentation
public String getTypePresentation()
Return type presentation of param- Returns:
- type presentation
-
getDescription
public String getDescription()
Gets description of the parameter- Returns:
- parameter description, cannot be
null
-
-