Class SinglelineCodeCommentReplacer
- java.lang.Object
-
- org.eclipse.xtext.formatting2.internal.CommentReplacer
-
- org.eclipse.xtext.formatting2.internal.SinglelineCommentReplacer
-
- org.eclipse.xtext.formatting2.internal.SinglelineCodeCommentReplacer
-
- All Implemented Interfaces:
ITextReplacer
public class SinglelineCodeCommentReplacer extends SinglelineCommentReplacer
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.formatting2.ITextReplacer
GET_REGION
-
-
Constructor Summary
Constructors Constructor Description SinglelineCodeCommentReplacer(IComment comment, java.lang.String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureWhitespace(WhitespaceReplacer leading, WhitespaceReplacer trailing)
ITextReplacerContext
createReplacements(ITextReplacerContext context)
Creates the real replacements for this region.-
Methods inherited from class org.eclipse.xtext.formatting2.internal.SinglelineCommentReplacer
getFirstSpace, getPrefix, hasEmptyBody
-
Methods inherited from class org.eclipse.xtext.formatting2.internal.CommentReplacer
getComment, getRegion
-
-
-
-
Constructor Detail
-
SinglelineCodeCommentReplacer
public SinglelineCodeCommentReplacer(IComment comment, java.lang.String prefix)
-
-
Method Detail
-
createReplacements
public ITextReplacerContext createReplacements(ITextReplacerContext context)
Description copied from interface:ITextReplacer
Creates the real replacements for this region. The given context may be altered and returned afterwards.
-
configureWhitespace
public void configureWhitespace(WhitespaceReplacer leading, WhitespaceReplacer trailing)
- Specified by:
configureWhitespace
in classCommentReplacer
-
-