public class MultiLineCommentDocumentationProvider extends AbstractMultiLineCommentProvider implements IEObjectDocumentationProvider, IEObjectDocumentationProviderExtension
emf objects
based
on Xtext languages.
It uses a single ML_COMMENT token by default to return the contained text as the documentation.END_TAG, endTag, LINE_POSTFIX, LINE_PREFIX, linePostfix, linePrefix, RULE, ruleName, START_TAG, startTag, whitespace, WHITESPACE, WS_RULE, wsRuleName
Constructor and Description |
---|
MultiLineCommentDocumentationProvider() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
findComment(org.eclipse.emf.ecore.EObject o) |
java.lang.String |
getDocumentation(org.eclipse.emf.ecore.EObject o)
returns the documentation or
null if no documentation is attached to the given EObject . |
java.util.List<INode> |
getDocumentationNodes(org.eclipse.emf.ecore.EObject object)
Returns the nearest multi line comment node that precedes the given object.
|
getTextFromMultilineComment
public MultiLineCommentDocumentationProvider()
protected java.lang.String findComment(org.eclipse.emf.ecore.EObject o)
@NonNull public java.util.List<INode> getDocumentationNodes(@NonNull org.eclipse.emf.ecore.EObject object)
getDocumentationNodes
in interface IEObjectDocumentationProviderExtension
public java.lang.String getDocumentation(org.eclipse.emf.ecore.EObject o)
IEObjectDocumentationProvider
null
if no documentation is attached to the given EObject
.getDocumentation
in interface IEObjectDocumentationProvider