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 beforeMethod
in Bsl
-
-
Field Summary
Fields Modifier and Type Field Description static String
QL_GRAMMAR_IDENT
static String
SKIP_WARNING_IDENT
-
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 Constructor Description BslMultiLineCommentDocumentationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
findComment(org.eclipse.emf.ecore.EObject object)
Find all comment nodes nearesto
List<String>
getCommentLines(org.eclipse.emf.ecore.EObject object)
Gets string content of the comment node corresponding to the object line by lineString
getDocumentation(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
-
-
-
-
Field Detail
-
QL_GRAMMAR_IDENT
public static final String QL_GRAMMAR_IDENT
- See Also:
- Constant Field Values
-
SKIP_WARNING_IDENT
public static final String SKIP_WARNING_IDENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public String getDocumentation(org.eclipse.emf.ecore.EObject object)
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
public List<String> getCommentLines(org.eclipse.emf.ecore.EObject object)
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
protected String findComment(org.eclipse.emf.ecore.EObject object)
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
-
-