@Deprecated
public class FormattableDocument
extends java.lang.Object
Constructor and Description |
---|
FormattableDocument(FormattableDocument fmt)
Deprecated.
|
FormattableDocument(org.eclipse.xtext.xbase.formatting.FormattingPreferenceValues cfg,
java.lang.String document)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected FormattingData |
addFormatting(FormattingData data)
Deprecated.
|
boolean |
fitsIntoLine(int offset,
int length,
Procedures.Procedure1<? super FormattableDocument> format)
Deprecated.
|
org.eclipse.xtext.xbase.formatting.FormattingPreferenceValues |
getCfg()
Deprecated.
|
java.lang.String |
getDocument()
Deprecated.
|
java.util.TreeMap<java.lang.Integer,FormattingData> |
getFormattings()
Deprecated.
|
java.lang.String |
getIndentation(int levels)
Deprecated.
|
int |
getIndentationLenght(int levels)
Deprecated.
|
java.lang.Throwable |
getRootTrace()
Deprecated.
|
protected Pair<java.lang.String,java.lang.String> |
getTextAround(FormattingData data1)
Deprecated.
|
java.lang.String |
getWrap(int levels)
Deprecated.
|
boolean |
isConflictOccurred()
Deprecated.
|
boolean |
isDebugConflicts()
Deprecated.
|
protected boolean |
isWhitespace(java.lang.String doc)
Deprecated.
|
int |
lineLengthBefore(int offset)
Deprecated.
|
java.lang.String |
lookahead(int offset,
int length,
Procedures.Procedure1<? super FormattableDocument> format)
Deprecated.
|
protected FormattingData |
merge(FormattingData data1,
FormattingData data2)
Deprecated.
|
FormattingData |
operator_add(FormattingData data)
Deprecated.
|
void |
operator_add(Functions.Function1<? super FormattableDocument,? extends java.lang.Iterable<FormattingData>> data)
Deprecated.
|
void |
operator_add(java.lang.Iterable<FormattingData> data)
Deprecated.
|
java.util.List<TextReplacement> |
renderToEdits()
Deprecated.
|
java.util.List<TextReplacement> |
renderToEdits(int offset,
int length)
Deprecated.
|
java.lang.String |
renderToString()
Deprecated.
|
java.lang.String |
renderToString(int offset,
int length)
Deprecated.
|
protected void |
reportConflict(FormattingData data1,
FormattingData data2)
Deprecated.
|
void |
setConflictOccurred(boolean conflictOccurred)
Deprecated.
|
void |
setRootTrace(java.lang.Throwable rootTrace)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
public FormattableDocument(org.eclipse.xtext.xbase.formatting.FormattingPreferenceValues cfg, java.lang.String document)
public FormattableDocument(FormattableDocument fmt)
public boolean isDebugConflicts()
protected FormattingData addFormatting(FormattingData data)
protected FormattingData merge(FormattingData data1, FormattingData data2)
protected Pair<java.lang.String,java.lang.String> getTextAround(FormattingData data1)
protected void reportConflict(FormattingData data1, FormattingData data2)
public FormattingData operator_add(FormattingData data)
public void operator_add(java.lang.Iterable<FormattingData> data)
public void operator_add(Functions.Function1<? super FormattableDocument,? extends java.lang.Iterable<FormattingData>> data)
public java.util.List<TextReplacement> renderToEdits()
public java.util.List<TextReplacement> renderToEdits(int offset, int length)
public java.lang.String renderToString()
public java.lang.String renderToString(int offset, int length)
protected boolean isWhitespace(java.lang.String doc)
public int lineLengthBefore(int offset)
public java.lang.String lookahead(int offset, int length, Procedures.Procedure1<? super FormattableDocument> format)
public boolean fitsIntoLine(int offset, int length, Procedures.Procedure1<? super FormattableDocument> format)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getIndentation(int levels)
public int getIndentationLenght(int levels)
public java.lang.String getWrap(int levels)
@Pure public org.eclipse.xtext.xbase.formatting.FormattingPreferenceValues getCfg()
@Pure public java.lang.String getDocument()
@Pure public java.util.TreeMap<java.lang.Integer,FormattingData> getFormattings()
@Pure public java.lang.Throwable getRootTrace()
public void setRootTrace(java.lang.Throwable rootTrace)
@Pure public boolean isConflictOccurred()
public void setConflictOccurred(boolean conflictOccurred)