Class MultiLineFileHeaderProvider
- java.lang.Object
-
- org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider
-
- org.eclipse.xtext.documentation.impl.MultiLineFileHeaderProvider
-
- All Implemented Interfaces:
IFileHeaderProvider
public class MultiLineFileHeaderProvider extends AbstractMultiLineCommentProvider implements IFileHeaderProvider
- Since:
- 2.4
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider
AbstractMultiLineCommentProvider.MultiLineCommentProviderProperties
-
-
Field Summary
-
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 MultiLineFileHeaderProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
findFileHeader(org.eclipse.emf.ecore.resource.Resource resource)
java.lang.String
getFileHeader(org.eclipse.emf.ecore.resource.Resource resource)
java.util.List<INode>
getFileHeaderNodes(org.eclipse.emf.ecore.resource.Resource resource)
Returns the first non-whitespace leaf node in the file if it is a multi-line comment node.-
Methods inherited from class org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider
getTextFromMultilineComment, injectProperties
-
-
-
-
Method Detail
-
findFileHeader
protected java.lang.String findFileHeader(org.eclipse.emf.ecore.resource.Resource resource)
-
getFileHeaderNodes
public java.util.List<INode> getFileHeaderNodes(org.eclipse.emf.ecore.resource.Resource resource)
Returns the first non-whitespace leaf node in the file if it is a multi-line comment node.- Specified by:
getFileHeaderNodes
in interfaceIFileHeaderProvider
- Returns:
- a list with exactly one node or an empty list if there is no header is undocumented.
- Since:
- 2.3
-
getFileHeader
public java.lang.String getFileHeader(org.eclipse.emf.ecore.resource.Resource resource)
- Specified by:
getFileHeader
in interfaceIFileHeaderProvider
-
-