| Package | Description |
|---|---|
| org.eclipse.xtext.formatting2 |
Xtext formatting infrastructure since Xtext 2.8.
|
| org.eclipse.xtext.formatting2.debug | |
| org.eclipse.xtext.formatting2.internal | |
| org.eclipse.xtext.formatting2.regionaccess |
This package contains the
ITextRegionAccess and related classes. |
| org.eclipse.xtext.formatting2.regionaccess.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 |
|---|---|
ITextSegment |
ITextReplacer.getRegion()
The region this replace is responsible for.
|
ITextSegment |
IFormattableDocument.getRegion()
Returns the region this formattable document is responsible for.
|
| Modifier and Type | Method and Description |
|---|---|
IFormattableSubDocument |
AbstractFormatter2.createFormattableSubDocument(ITextSegment region,
IFormattableDocument parent) |
ITextReplacer |
AbstractFormatter2.createWhitespaceReplacer(ITextSegment hiddens,
IHiddenRegionFormatting formatting) |
void |
IAutowrapFormatter.format(ITextSegment region,
IHiddenRegionFormatting wrapped,
IFormattableDocument document)
Called if the region is supposed to be wrapped.
|
| Modifier and Type | Method and Description |
|---|---|
ITextSegment |
TextRegionsWithTitleToString.getFrame() |
ITextSegment |
TextRegionsInTextToString.getFrame() |
ITextSegment |
TextRegionsWithTitleToString.Item.getRegion() |
| Modifier and Type | Method and Description |
|---|---|
protected List<ITextSegment> |
TextRegionAccessToString.toTokenAndGapList() |
| Modifier and Type | Method and Description |
|---|---|
TextRegionsToString |
TextRegionsToString.add(ITextSegment region,
String description) |
TextRegionsInTextToString |
TextRegionsInTextToString.add(ITextSegment region,
String title) |
TextRegionsWithTitleToString |
TextRegionsWithTitleToString.add(String title,
ITextSegment region) |
TextRegionsToString |
TextRegionsToString.addReplacement(ITextSegment region,
String replacement) |
TextRegionsToString |
TextRegionsToString.addReplacement(ITextSegment region,
String replacement,
String description) |
protected String |
TextRegionsToString.getReplacement(ITextSegment region,
String replacement) |
TextRegionsWithTitleToString |
TextRegionsWithTitleToString.setFrame(ITextSegment frame) |
TextRegionsToString |
TextRegionsToString.setFrame(ITextSegment frame) |
TextRegionsInTextToString |
TextRegionsInTextToString.setFrame(ITextSegment frame) |
protected String |
TextRegionAccessToString.toString(ITextSegment region) |
TextRegionAccessToString |
TextRegionAccessToString.withOrigin(ITextSegment origin) |
| Constructor and Description |
|---|
TextRegionsWithTitleToString.Item(String title,
ITextSegment region) |
| Modifier and Type | Method and Description |
|---|---|
protected ITextSegment |
SinglelineCommentReplacer.getFirstSpace() |
ITextSegment |
WhitespaceReplacer.getRegion() |
ITextSegment |
SubDocument.getRegion() |
ITextSegment |
RootDocument.getRegion() |
ITextSegment |
RegionTrace.getRegion() |
ITextSegment |
CommentReplacer.getRegion() |
ITextSegment |
AbstractTextReplacer.getRegion() |
protected ITextSegment |
TextSegmentSet.getRegion(T t) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Function<? super T,? extends ITextSegment> |
TextSegmentSet.getRegionAccess() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
TextSegmentSet.isConflict(ITextSegment region1,
ITextSegment region2) |
| Constructor and Description |
|---|
AbstractTextReplacer(IFormattableDocument document,
ITextSegment region) |
FilteredSubDocument(ITextSegment region,
IFormattableDocument parent,
com.google.common.base.Predicate<? super ITextReplacer> filter) |
MaxLineWidthDocument(ITextSegment region,
FormattableDocument parent,
int maxLineWidth) |
RegionsOutsideFrameException(String title,
ITextSegment frame,
Pair<String,ITextSegment>... regions) |
RegionTrace(String message,
ITextSegment region) |
SubDocument(ITextSegment region,
IFormattableDocument parent) |
WhitespaceReplacer(ITextSegment whitespace,
IHiddenRegionFormatting formatting) |
| Constructor and Description |
|---|
ArrayListTextSegmentSet(com.google.common.base.Function<? super T,? extends ITextSegment> region,
com.google.common.base.Function<? super T,String> title) |
TextSegmentSet(com.google.common.base.Function<? super T,? extends ITextSegment> region,
com.google.common.base.Function<? super T,String> title) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IComment
Represents a comment.
|
interface |
IEObjectRegion |
interface |
IHiddenRegion
|
interface |
IHiddenRegionPart
Common interface for
IWhitespace and IComment. |
interface |
ILineRegion |
interface |
ISemanticRegion
|
interface |
ISequentialRegion
Common interface for
IHiddenRegion and ISemanticRegion. |
interface |
ITextReplacement
A replacement describes which new text should substitute the text at the given offset and length.
|
interface |
IWhitespace
Represents a whitespace token inside a
IHiddenRegion. |
| Modifier and Type | Method and Description |
|---|---|
ITextSegment |
ILineRegion.getIndentation() |
ITextSegment |
ITextSegment.merge(ITextRegion region) |
ITextSegment |
ITextRegionAccess.regionForDocument() |
ITextSegment |
ITextRegionAccess.regionForOffset(int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
List<ITextSegment> |
IHiddenRegion.getAlternatingMergedSpaceAndComments() |
List<ITextSegment> |
IHiddenRegion.getMergedSpaces() |
| Modifier and Type | Method and Description |
|---|---|
void |
ITextRegionRewriter.renderToAppendable(ITextSegment segment,
Iterable<? extends ITextReplacement> replacements,
Appendable result) |
String |
ITextRegionRewriter.renderToString(ITextSegment input,
Iterable<? extends ITextReplacement> replacements)
Applies replacements similar to
ITextRegionRewriter.renderToString(Iterable), but ITextRegion.getOffset() is
treated as relative to ITextRegion.getOffset() from 'input'. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractEObjectRegion |
class |
AbstractHiddenRegion |
class |
AbstractTextSegment |
class |
LineRegion |
class |
NodeComment |
class |
NodeEObjectRegion |
class |
NodeHidden |
class |
NodeHiddenRegion |
class |
NodeRegion |
class |
NodeSemanticRegion |
class |
NodeWhitespace |
class |
StringComment |
class |
StringEObjectRegion |
class |
StringHidden |
class |
StringHiddenRegion |
class |
StringRegion |
class |
StringSemanticRegion |
class |
StringWhitespace |
class |
TextReplacement |
class |
TextSegment |
| Modifier and Type | Method and Description |
|---|---|
ITextSegment |
LineRegion.getIndentation() |
static ITextSegment |
TextRegions.merge(Iterable<? extends ITextSegment> segments) |
ITextSegment |
AbstractTextSegment.merge(ITextRegion other) |
ITextSegment |
StringBasedRegionAccess.regionForDocument() |
ITextSegment |
NodeModelBasedRegionAccess.regionForDocument() |
ITextSegment |
AbstractRegionAccess.regionForOffset(int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
protected List<ITextSegment> |
AbstractHiddenRegion.collectAlternatingSpaceAndComments(boolean includeComments) |
List<ITextSegment> |
AbstractHiddenRegion.getAlternatingMergedSpaceAndComments() |
List<ITextSegment> |
AbstractHiddenRegion.getMergedSpaces() |
| Modifier and Type | Method and Description |
|---|---|
int |
AbstractTextSegment.compareTo(ITextSegment o) |
static List<ILineRegion> |
TextRegions.expandToLines(ITextSegment segment,
int leadingLinesToAdd,
int trailingLinesToAdd) |
void |
TextRegionRewriter.renderToAppendable(ITextSegment input,
Iterable<? extends ITextReplacement> rep,
Appendable result) |
String |
TextRegionRewriter.renderToString(ITextSegment input,
Iterable<? extends ITextReplacement> replacements) |
| Modifier and Type | Method and Description |
|---|---|
static ITextSegment |
TextRegions.merge(Iterable<? extends ITextSegment> segments) |
Copyright © 2015. All Rights Reserved.