Class BslDocCommentSerializer
java.lang.Object
com.e1c.langtool.v8.dt.bsl.comment.BslDocCommentSerializer
Bsl Documentation comment model serializer. Allows to serialize comment to the string with new or old format, set
up some formatting style.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the line numbers of space between sections.booleanChecks if serializer ignores line numbers inmodelobjects.serialize(BslDocumentationComment docComment, boolean isRu) Serializes comment to the string in new formatserialize(BslDocumentationComment docComment, boolean isRu, boolean oldFormat) Serializes comment to the stringserialize(BslDocumentationComment docComment, boolean isRu, String lineFormatter, String indent, boolean oldFormat) Serializes comment to the stringGets string presentation of the partvoidsetIgnoreLineNumbers(boolean ignoreLineNumbers) Sets serializer to ignore line numbers inmodelobjects.voidsetSectionSpace(int sectionSpace) Sets the line numbers of space between sections.
-
Constructor Details
-
BslDocCommentSerializer
public BslDocCommentSerializer()
-
-
Method Details
-
getSectionSpace
public int getSectionSpace()Gets the line numbers of space between sections. Default is 2.- Returns:
- the section space
-
setSectionSpace
public void setSectionSpace(int sectionSpace) Sets the line numbers of space between sections. Default is 2.- Parameters:
sectionSpace- the new section space
-
isIgnoreLineNumbers
public boolean isIgnoreLineNumbers()Checks if serializer ignores line numbers inmodelobjects.- Returns:
- true, if serializer is ignoring line numbers
-
setIgnoreLineNumbers
public void setIgnoreLineNumbers(boolean ignoreLineNumbers) Sets serializer to ignore line numbers inmodelobjects.- Parameters:
ignoreLineNumbers- the new ignore line numbers
-
serialize
Serializes comment to the string in new format- Parameters:
isRu-trueif need to use Russian keywords- Returns:
- string presentation of the documentation comment, never
null, if description is empty line withIBslCommentToken.LINE_STARTERwill be returned
-
serialize
Serializes comment to the string- Parameters:
isRu-trueif need to use Russian keywordsoldFormat-trueif string presentation must be in old format,falsein new format- Returns:
- string presentation of the documentation comment, never
null, if description is empty line withIBslCommentToken.LINE_STARTERwill be returned
-
serialize
public String serialize(BslDocumentationComment docComment, boolean isRu, String lineFormatter, String indent, boolean oldFormat) Serializes comment to the string- Parameters:
isRu-trueif need to use Russian keywordslineFormatter- symbols added beforeIBslCommentToken.LINE_STARTERfor each line, cannot benullindent- symbols for indent extra fields, cannot benulloldFormat-trueif string presentation must be in old format,falsein new format- Returns:
- string presentation of the documentation comment, never
null, if description is empty line withIBslCommentToken.LINE_STARTERwill be returned
-
serialize
Gets string presentation of the part- Parameters:
isRu-trueif keywords of the part should be in Russian language,falseif in English- Returns:
- string presentation of the part
-