Class BslMultiLineCommentDocumentationProvider
java.lang.Object
org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider
org.eclipse.xtext.documentation.impl.MultiLineCommentDocumentationProvider
com._1c.g5.v8.dt.bsl.documentation.comment.BslMultiLineCommentDocumentationProvider
- All Implemented Interfaces:
org.eclipse.xtext.documentation.IEObjectDocumentationProvider,org.eclipse.xtext.documentation.IEObjectDocumentationProviderExtension
public class BslMultiLineCommentDocumentationProvider
extends org.eclipse.xtext.documentation.impl.MultiLineCommentDocumentationProvider
Getting comments content before
Method in Bsl-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider
org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider.MultiLineCommentProviderProperties -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringDeprecated.Fields inherited from class org.eclipse.xtext.documentation.impl.MultiLineCommentDocumentationProvider
commentStartTagRegexFields inherited from class org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider
END_TAG, endTag, endTagRegex, LINE_POSTFIX, LINE_PREFIX, linePostfix, linePostfixRegex, linePrefix, linePrefixRegex, RULE, ruleName, START_TAG, startTag, startTagRegex, tagsAndPrefixRegex, whitespace, WHITESPACE, WS_RULE, wsRuleName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringfindComment(org.eclipse.emf.ecore.EObject object) Find all comment nodes nearestogetCommentLines(org.eclipse.emf.ecore.EObject object) Gets string content of the comment node corresponding to the object line by linegetDocumentation(org.eclipse.emf.ecore.EObject object) Gets string content of the comment nodes corresponding to the objectList<org.eclipse.xtext.nodemodel.INode>getDocumentationNodes(org.eclipse.emf.ecore.EObject object) Returns the nearest all one line comment node that precedes the given object.Methods inherited from class org.eclipse.xtext.documentation.impl.MultiLineCommentDocumentationProvider
injectPropertiesMethods inherited from class org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider
getTextFromMultilineComment
-
Field Details
-
QL_GRAMMAR_IDENT
- See Also:
-
SKIP_WARNING_IDENT
Deprecated.- See Also:
-
SKIP_CHECK_IDENT
- See Also:
-
-
Constructor Details
-
BslMultiLineCommentDocumentationProvider
public BslMultiLineCommentDocumentationProvider()
-
-
Method Details
-
getDocumentationNodes
public List<org.eclipse.xtext.nodemodel.INode> getDocumentationNodes(org.eclipse.emf.ecore.EObject object) Returns the nearest all one line comment node that precedes the given object.- Specified by:
getDocumentationNodesin interfaceorg.eclipse.xtext.documentation.IEObjectDocumentationProviderExtension- Overrides:
getDocumentationNodesin classorg.eclipse.xtext.documentation.impl.MultiLineCommentDocumentationProvider- Parameters:
object- object which is looked up documentation- Returns:
- a list with nodes or an empty list if the object is undocumented.
-
getDocumentation
Gets string content of the comment nodes corresponding to the object- Specified by:
getDocumentationin interfaceorg.eclipse.xtext.documentation.IEObjectDocumentationProvider- Overrides:
getDocumentationin classorg.eclipse.xtext.documentation.impl.MultiLineCommentDocumentationProvider- Parameters:
object- object for which need to get documentation, cannot benull- Returns:
- string content of the comment nodes corresponding to the object, never
null
-
getCommentLines
Gets string content of the comment node corresponding to the object line by line- Parameters:
object- object for which need to get documentation, cannot benull- Returns:
- string content of the comment nodes corresponding to the object line by line, never
null
-
findComment
Find all comment nodes nearesto- Overrides:
findCommentin classorg.eclipse.xtext.documentation.impl.MultiLineCommentDocumentationProvider- Parameters:
object- object object which is looked up comments, cannot benull
-