Class SinglelineCommentReplacer
- java.lang.Object
-
- org.eclipse.xtext.formatting2.internal.CommentReplacer
-
- org.eclipse.xtext.formatting2.internal.SinglelineCommentReplacer
-
- All Implemented Interfaces:
ITextReplacer
- Direct Known Subclasses:
SinglelineCodeCommentReplacer,SinglelineDocCommentReplacer
public abstract class SinglelineCommentReplacer extends CommentReplacer
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.formatting2.ITextReplacer
GET_REGION
-
-
Constructor Summary
Constructors Constructor Description SinglelineCommentReplacer(IComment comment, java.lang.String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ITextSegmentgetFirstSpace()java.lang.StringgetPrefix()protected booleanhasEmptyBody()-
Methods inherited from class org.eclipse.xtext.formatting2.internal.CommentReplacer
configureWhitespace, getComment, getRegion
-
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
-
SinglelineCommentReplacer
public SinglelineCommentReplacer(IComment comment, java.lang.String prefix)
-
-
Method Detail
-
getFirstSpace
protected ITextSegment getFirstSpace()
-
getPrefix
public java.lang.String getPrefix()
-
hasEmptyBody
protected boolean hasEmptyBody()
-
-