| Package | Description |
|---|---|
| org.eclipse.xtext.formatting2 |
Xtext formatting infrastructure since Xtext 2.8.
|
| org.eclipse.xtext.formatting2.internal |
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<ITextReplacer,ITextSegment> |
ITextReplacer.GET_REGION
A function that maps a given replacer to the region that it replaces.
|
| Modifier and Type | Method and Description |
|---|---|
ITextReplacer |
AbstractFormatter2.createCommentReplacer(IComment comment) |
ITextReplacer |
AbstractFormatter2.createHiddenRegionReplacer(IHiddenRegion region,
IHiddenRegionFormatting formatting) |
ITextReplacer |
AbstractFormatter2.createWhitespaceReplacer(ITextSegment hiddens,
IHiddenRegionFormatting formatting) |
ITextReplacer |
ITextReplacerContext.getReplacer() |
| Modifier and Type | Method and Description |
|---|---|
IMerger<ITextReplacer> |
AbstractFormatter2.createTextReplacerMerger() |
| Modifier and Type | Method and Description |
|---|---|
void |
IFormattableDocument.addReplacer(ITextReplacer replacer)
Add a new replacer to the document.
|
ITextReplacerContext |
ITextReplacerContext.withReplacer(ITextReplacer replacer) |
| Modifier and Type | Method and Description |
|---|---|
IFormattableDocument |
IFormattableDocument.withReplacerFilter(com.google.common.base.Predicate<? super ITextReplacer> filter)
Creates a new formattable document to which only replacers can be added for which the provided predicate yields
true. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ICompositeTextReplacer |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTextReplacer |
class |
CommentReplacer |
class |
ConditionalReplacer |
class |
FilteredSubDocument |
class |
HiddenRegionReplacer |
class |
MaxLineWidthDocument |
class |
MultilineCommentReplacer |
class |
SinglelineCodeCommentReplacer |
class |
SinglelineCommentReplacer |
class |
SinglelineDocCommentReplacer |
class |
SubDocument |
class |
WhitespaceReplacer |
| Modifier and Type | Method and Description |
|---|---|
ITextReplacer |
TextReplacerContext.getReplacer() |
ITextReplacer |
TextReplacerMerger.merge(List<? extends ITextReplacer> conflicting) |
protected ITextReplacer |
TextReplacerMerger.mergeCompositeReplacers(List<? extends ITextReplacer> conflicting) |
protected ITextReplacer |
TextReplacerMerger.mergeHiddenRegionReplacers(List<? extends ITextReplacer> conflicting) |
| Modifier and Type | Method and Description |
|---|---|
protected List<ITextReplacer> |
HiddenRegionReplacer.createReplacers(AbstractFormatter2 formatter) |
protected TextSegmentSet<ITextReplacer> |
FormattableDocument.createTextReplacerSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
MaxLineWidthDocument.addReplacer(ITextReplacer replacer) |
void |
ICompositeTextReplacer.addReplacer(ITextReplacer replacer) |
void |
FormattableDocument.addReplacer(ITextReplacer replacer) |
void |
FilteredSubDocument.addReplacer(ITextReplacer replacer) |
void |
ConditionalReplacer.addReplacer(ITextReplacer replacer) |
protected void |
MaxLineWidthDocument.validate(ITextReplacer replacer) |
ITextReplacerContext |
TextReplacerContext.withReplacer(ITextReplacer replacer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
HiddenRegionReplacer.applyHiddenRegionFormatting(List<ITextReplacer> replacers)
This method is when we have multiple TextReplacers for this HiddenRegion because the HiddenRegion contains
comments.
|
protected WhitespaceReplacer |
HiddenRegionReplacer.findWhitespaceThatSeparatesSemanticRegions(List<ITextReplacer> replacers) |
ITextReplacer |
TextReplacerMerger.merge(List<? extends ITextReplacer> conflicting) |
protected ITextReplacer |
TextReplacerMerger.mergeCompositeReplacers(List<? extends ITextReplacer> conflicting) |
protected ITextReplacer |
TextReplacerMerger.mergeHiddenRegionReplacers(List<? extends ITextReplacer> conflicting) |
IFormattableSubDocument |
FormattableDocument.withReplacerFilter(com.google.common.base.Predicate<? super ITextReplacer> filter) |
| Constructor and Description |
|---|
TextReplacerContext(IFormattableDocument document,
ITextReplacerContext previous,
int indentation,
ITextReplacer replacer) |
| Constructor and Description |
|---|
FilteredSubDocument(ITextSegment region,
IFormattableDocument parent,
com.google.common.base.Predicate<? super ITextReplacer> filter) |
Copyright © 2015. All Rights Reserved.