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
Contains information about parameter of method or constructor
-
Constructor Summary
ConstructorsConstructorDescriptionParamContent
(String name, String paramDescr, List<BslDocumentationProvider.DocumentContent.GroupTypeDescription> type, boolean isRequired) Initialize parameter of method or constructor -
Method Summary
Modifier and TypeMethodDescriptionGets description of the parameterReturns textual representation of whether the parameter is marked as requiredgetSignature
(String returnTypeStr, String syntax) Returns string which corresponds to return type concatenated with signature of a methodReturn type presentation of paramReturns string with corresponding typesparseParamContent
(String content) Parses parameter contenttoFormatString
(int count) Creates format string for parameter of method or constructortoFormatStringForContentAssist
(String returnTypeStr, String syntax, boolean needTypeSection) Creates format string for method in hover in BSL
-
Constructor Details
-
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 Details
-
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
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
-
getSignature
Returns string which corresponds to return type concatenated with signature of a method- Parameters:
returnTypeStr
- string of return types corresponding to method, can benull
syntax
- string of method's syntax, can benull
- Returns:
- composed string of return types and method's syntax, can be
null
-
getTypeString
Returns string with corresponding types- Returns:
- string with corresponding types, can be
null
-
getRequiredString
Returns textual representation of whether the parameter is marked as required- Returns:
- string of whether the selected parameter is required, cannot be
null
-
getTypePresentation
Return type presentation of param- Returns:
- type presentation
-
getDescription
Gets description of the parameter- Returns:
- parameter description, cannot be
null
-