Class MultilineCommentReplacer
- java.lang.Object
-
- org.eclipse.xtext.formatting2.internal.CommentReplacer
-
- org.eclipse.xtext.formatting2.internal.MultilineCommentReplacer
-
- All Implemented Interfaces:
ITextReplacer
public class MultilineCommentReplacer extends CommentReplacer
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.formatting2.ITextReplacer
GET_REGION
-
-
Constructor Summary
Constructors Constructor Description MultilineCommentReplacer(IComment comment, char prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureWhitespace(WhitespaceReplacer leading, WhitespaceReplacer trailing)ITextReplacerContextcreateReplacements(ITextReplacerContext context)Creates the real replacements for this region.protected voidenforceNewLine(WhitespaceReplacer replacer)protected voidenforceSingleSpace(WhitespaceReplacer replacer)protected intprefixOffset(java.lang.String string)-
Methods inherited from class org.eclipse.xtext.formatting2.internal.CommentReplacer
getComment, getRegion
-
-
-
-
Constructor Detail
-
MultilineCommentReplacer
public MultilineCommentReplacer(IComment comment, char prefix)
-
-
Method Detail
-
configureWhitespace
public void configureWhitespace(WhitespaceReplacer leading, WhitespaceReplacer trailing)
- Specified by:
configureWhitespacein classCommentReplacer
-
createReplacements
public ITextReplacerContext createReplacements(ITextReplacerContext context)
Description copied from interface:ITextReplacerCreates the real replacements for this region. The given context may be altered and returned afterwards.
-
enforceNewLine
protected void enforceNewLine(WhitespaceReplacer replacer)
-
enforceSingleSpace
protected void enforceSingleSpace(WhitespaceReplacer replacer)
-
prefixOffset
protected int prefixOffset(java.lang.String string)
-
-