Class CommentReplacer
- java.lang.Object
-
- org.eclipse.xtext.formatting2.internal.CommentReplacer
-
- All Implemented Interfaces:
ITextReplacer
- Direct Known Subclasses:
MultilineCommentReplacer,SinglelineCommentReplacer
public abstract class CommentReplacer extends java.lang.Object implements ITextReplacer
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.formatting2.ITextReplacer
GET_REGION
-
-
Constructor Summary
Constructors Constructor Description CommentReplacer(IComment comment)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidconfigureWhitespace(WhitespaceReplacer leading, WhitespaceReplacer trailing)ICommentgetComment()ITextSegmentgetRegion()The region this replace is responsible for.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.formatting2.ITextReplacer
createReplacements
-
-
-
-
Constructor Detail
-
CommentReplacer
public CommentReplacer(IComment comment)
-
-
Method Detail
-
configureWhitespace
public abstract void configureWhitespace(WhitespaceReplacer leading, WhitespaceReplacer trailing)
-
getComment
public IComment getComment()
-
getRegion
public ITextSegment getRegion()
Description copied from interface:ITextReplacerThe region this replace is responsible for. All text replacements create by this replacer must be inside this region.- Specified by:
getRegionin interfaceITextReplacer
-
-