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 String
static final String
static final String
Deprecated.Fields inherited from class org.eclipse.xtext.documentation.impl.MultiLineCommentDocumentationProvider
commentStartTagRegex
Fields 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 String
findComment
(org.eclipse.emf.ecore.EObject object) Find all comment nodes nearesto
getCommentLines
(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
injectProperties
Methods 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:
getDocumentationNodes
in interfaceorg.eclipse.xtext.documentation.IEObjectDocumentationProviderExtension
- Overrides:
getDocumentationNodes
in 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:
getDocumentation
in interfaceorg.eclipse.xtext.documentation.IEObjectDocumentationProvider
- Overrides:
getDocumentation
in 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:
findComment
in classorg.eclipse.xtext.documentation.impl.MultiLineCommentDocumentationProvider
- Parameters:
object
- object object which is looked up comments, cannot benull
-