Class RootDocument
- java.lang.Object
-
- org.eclipse.xtext.formatting2.internal.FormattableDocument
-
- org.eclipse.xtext.formatting2.internal.RootDocument
-
- All Implemented Interfaces:
IFormattableDocument
public class RootDocument extends FormattableDocument
-
-
Constructor Summary
Constructors Constructor Description RootDocument(AbstractFormatter2 formatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractFormatter2
getFormatter()
Returns the formatter that is being used.ITextSegment
getRegion()
Returns the region this formattable document is responsible for.FormatterRequest
getRequest()
Returns the current formatting request.-
Methods inherited from class org.eclipse.xtext.formatting2.internal.FormattableDocument
addReplacer, append, append, applyTextReplacements, createReplacements, createTextReplacerSet, format, formatConditionally, formatConditionally, getPreferences, getReplacers, getTextRegionAccess, interior, interior, interior, needsAutowrap, prepend, prepend, renderToTextReplacements, set, set, surround, surround, toString, withReplacerFilter
-
-
-
-
Constructor Detail
-
RootDocument
public RootDocument(AbstractFormatter2 formatter)
-
-
Method Detail
-
getFormatter
public AbstractFormatter2 getFormatter()
Description copied from interface:IFormattableDocument
Returns the formatter that is being used.
-
getRegion
public ITextSegment getRegion()
Description copied from interface:IFormattableDocument
Returns the region this formattable document is responsible for.
-
getRequest
public FormatterRequest getRequest()
Description copied from interface:IFormattableDocument
Returns the current formatting request.
-
-