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.AbstractMultiLineCommentProvider.MultiLineCommentProviderProperties| Modifier and Type | Field and Description |
|---|---|
protected Pattern |
commentStartTagRegex |
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 and Description |
|---|
MultiLineCommentDocumentationProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
findComment(org.eclipse.emf.ecore.EObject o) |
String |
getDocumentation(org.eclipse.emf.ecore.EObject o)
returns the documentation or
null if no documentation is attached to the given EObject. |
List<INode> |
getDocumentationNodes(org.eclipse.emf.ecore.EObject object)
Returns the nearest multi line comment node that precedes the given object.
|
void |
injectProperties(AbstractMultiLineCommentProvider.MultiLineCommentProviderProperties properties) |
getTextFromMultilineCommentprotected Pattern commentStartTagRegex
public MultiLineCommentDocumentationProvider()
protected String findComment(org.eclipse.emf.ecore.EObject o)
public List<INode> getDocumentationNodes(org.eclipse.emf.ecore.EObject object)
getDocumentationNodes in interface IEObjectDocumentationProviderExtensionpublic String getDocumentation(org.eclipse.emf.ecore.EObject o)
IEObjectDocumentationProvidernull if no documentation is attached to the given EObject.getDocumentation in interface IEObjectDocumentationProvider@Inject public void injectProperties(AbstractMultiLineCommentProvider.MultiLineCommentProviderProperties properties)
injectProperties in class AbstractMultiLineCommentProviderCopyright © 2015. All Rights Reserved.