Package com._1c.g5.v8.dt.bsl.ui
Class BslDocumentationProvider.DocumentContent
- java.lang.Object
- 
- com._1c.g5.v8.dt.bsl.ui.BslDocumentationProvider.DocumentContent
 
- 
- Enclosing class:
- BslDocumentationProvider
 
 public static class BslDocumentationProvider.DocumentContent extends Object Structured content template comment
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classBslDocumentationProvider.DocumentContent.GroupTypeDescriptionContains information about group of typesstatic classBslDocumentationProvider.DocumentContent.ParamContentContains information about parameter of method or constructorstatic classBslDocumentationProvider.DocumentContent.ReferenceContains information for html referencestatic classBslDocumentationProvider.DocumentContent.TypeContentContains information aboutTypecontext def
 - 
Constructor SummaryConstructors Constructor Description DocumentContent(String descr, String retValDescr, List<BslDocumentationProvider.DocumentContent.GroupTypeDescription> retValType, List<BslDocumentationProvider.DocumentContent.ParamContent> paramsContent, String syntax, List<String> envs, BslDocumentationProvider.DocumentContent.TypeContent typeContent, String remark, String example, String methodicalLink)Constructor
 - 
Method Summary
 
- 
- 
- 
Constructor Detail- 
DocumentContentpublic DocumentContent(String descr, String retValDescr, List<BslDocumentationProvider.DocumentContent.GroupTypeDescription> retValType, List<BslDocumentationProvider.DocumentContent.ParamContent> paramsContent, String syntax, List<String> envs, BslDocumentationProvider.DocumentContent.TypeContent typeContent, String remark, String example, String methodicalLink) Constructor- Parameters:
- descr- description of the element, can be- null
- retValDescr- description of the returning value of the element, can be- null
- retValType- list of returning types, can be- null
- paramsContent- parameters of element, can be- null
- syntax- syntax of the element, can be- null
- envs- actual- Environmentsof the element, can be- null
- typeContent- content of the element, if it's- Type, can be- null
- remark- remark for element, can be- null
- example- example of using of the element, can be- null
- methodicalLink- url to methodical information, can be- null
 
 
- 
 - 
Method Detail- 
parseDocumentpublic static BslDocumentationProvider.DocumentContent parseDocument(String content) Parses full documentation toBslDocumentationProvider.DocumentContent- Parameters:
- content- full documentation, can be- null
- Returns:
- BslDocumentationProvider.DocumentContent, can be- nullif- contentwas- null
 
 - 
getDocumentationFormatStringpublic static String getDocumentationFormatString(BslDocumentationProvider.DocumentContent doc) Creates full documentation byBslDocumentationProvider.DocumentContentfor object withname- Parameters:
- doc- all document information, cannot be- null
- Returns:
- full documentation, never null
 
 - 
getSyntaxWithTypespublic static StringBuilder getSyntaxWithTypes(String syntax, List<BslDocumentationProvider.DocumentContent.GroupTypeDescription> retValType, boolean isDerivedType) Gets Full syntax name of the element with types- Parameters:
- syntax- syntax of the element, can be- null
- retValType- types, can be- null
- Returns:
- full syntax name, never null
 
 - 
getShortDocpublic static String getShortDoc(BslDocumentationProvider.DocumentContent doc) Gets short documentation by content ofBslDocumentationProvider.DocumentContent- Parameters:
- doc- all document information, cannot be- null
- Returns:
- short documentation, never null
 
 - 
getReturnTypeStrForContentAssistpublic static String getReturnTypeStrForContentAssist(List<BslDocumentationProvider.DocumentContent.GroupTypeDescription> retValType) Creates string description of return type name for hover in BSL- Parameters:
- retValType- return value types description, cannot be- null
- Returns:
- format string, never null
 
 - 
getUnknownReturnTypeStrForContentAssistpublic static String getUnknownReturnTypeStrForContentAssist() Gets representation of unknown type of returning value- Returns:
- string ">", never null
 
 - 
getWeightpublic static int getWeight(BslDocumentationProvider.DocumentContent doc, String retvalTypes, String description) Computes weight in symbols forParametersHoverInfoControlby parameter description- Parameters:
- doc- actual- BslDocumentationProvider.DocumentContentfor computing, can be- null
- retvalTypes- string presentation of return types of parameter, can be- null
- description- parameter text description, can be- null
- Returns:
- weight in symbols for ParametersHoverInfoControl
 
 - 
getHeightpublic static int getHeight(String description) Computes height in symbols forParametersHoverInfoControlby parameter description- Parameters:
- description- parameter text description, can be- null
- Returns:
- height in symbols for ParametersHoverInfoControl
 
 - 
getParamsContentpublic List<BslDocumentationProvider.DocumentContent.ParamContent> getParamsContent() Gets parameters content- Returns:
- parameters content, can be nullif no content for parameters
 
 - 
getRetValTypepublic List<BslDocumentationProvider.DocumentContent.GroupTypeDescription> getRetValType() Gets return value type description- Returns:
- return value type description, can be nullif there is no return types
 
 - 
getSyntaxpublic String getSyntax() Gets element syntax documentation- Returns:
- element syntax documentation, can be null
 
 
- 
 
-