Class FormattableDocument
- java.lang.Object
-
- org.eclipse.xtext.xbase.formatting.FormattableDocument
-
@Deprecated public class FormattableDocument extends java.lang.ObjectDeprecated.useIFormattableDocument
-
-
Constructor Summary
Constructors Constructor Description FormattableDocument(FormattableDocument fmt)Deprecated.FormattableDocument(FormattingPreferenceValues cfg, java.lang.String document)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected FormattingDataaddFormatting(FormattingData data)Deprecated.booleanfitsIntoLine(int offset, int length, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super FormattableDocument> format)Deprecated.FormattingPreferenceValuesgetCfg()Deprecated.java.lang.StringgetDocument()Deprecated.java.util.TreeMap<java.lang.Integer,FormattingData>getFormattings()Deprecated.java.lang.StringgetIndentation(int levels)Deprecated.intgetIndentationLenght(int levels)Deprecated.java.lang.ThrowablegetRootTrace()Deprecated.protected org.eclipse.xtext.xbase.lib.Pair<java.lang.String,java.lang.String>getTextAround(FormattingData data1)Deprecated.java.lang.StringgetWrap(int levels)Deprecated.booleanisConflictOccurred()Deprecated.booleanisDebugConflicts()Deprecated.protected booleanisWhitespace(java.lang.String doc)Deprecated.intlineLengthBefore(int offset)Deprecated.java.lang.Stringlookahead(int offset, int length, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super FormattableDocument> format)Deprecated.protected FormattingDatamerge(FormattingData data1, FormattingData data2)Deprecated.voidoperator_add(java.lang.Iterable<FormattingData> data)Deprecated.FormattingDataoperator_add(FormattingData data)Deprecated.voidoperator_add(org.eclipse.xtext.xbase.lib.Functions.Function1<? super FormattableDocument,? extends java.lang.Iterable<FormattingData>> data)Deprecated.java.util.List<TextReplacement>renderToEdits()Deprecated.java.util.List<TextReplacement>renderToEdits(int offset, int length)Deprecated.java.lang.StringrenderToString()Deprecated.java.lang.StringrenderToString(int offset, int length)Deprecated.protected voidreportConflict(FormattingData data1, FormattingData data2)Deprecated.voidsetConflictOccurred(boolean conflictOccurred)Deprecated.voidsetRootTrace(java.lang.Throwable rootTrace)Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
FormattableDocument
public FormattableDocument(FormattingPreferenceValues cfg, java.lang.String document)
Deprecated.
-
FormattableDocument
public FormattableDocument(FormattableDocument fmt)
Deprecated.
-
-
Method Detail
-
isDebugConflicts
public boolean isDebugConflicts()
Deprecated.
-
addFormatting
protected FormattingData addFormatting(FormattingData data)
Deprecated.
-
merge
protected FormattingData merge(FormattingData data1, FormattingData data2)
Deprecated.
-
getTextAround
protected org.eclipse.xtext.xbase.lib.Pair<java.lang.String,java.lang.String> getTextAround(FormattingData data1)
Deprecated.
-
reportConflict
protected void reportConflict(FormattingData data1, FormattingData data2)
Deprecated.
-
operator_add
public FormattingData operator_add(FormattingData data)
Deprecated.
-
operator_add
public void operator_add(java.lang.Iterable<FormattingData> data)
Deprecated.
-
operator_add
public void operator_add(org.eclipse.xtext.xbase.lib.Functions.Function1<? super FormattableDocument,? extends java.lang.Iterable<FormattingData>> data)
Deprecated.
-
renderToEdits
public java.util.List<TextReplacement> renderToEdits()
Deprecated.
-
renderToEdits
public java.util.List<TextReplacement> renderToEdits(int offset, int length)
Deprecated.
-
renderToString
public java.lang.String renderToString()
Deprecated.
-
renderToString
public java.lang.String renderToString(int offset, int length)Deprecated.
-
isWhitespace
protected boolean isWhitespace(java.lang.String doc)
Deprecated.
-
lineLengthBefore
public int lineLengthBefore(int offset)
Deprecated.
-
lookahead
public java.lang.String lookahead(int offset, int length, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super FormattableDocument> format)Deprecated.
-
fitsIntoLine
public boolean fitsIntoLine(int offset, int length, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super FormattableDocument> format)Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
getIndentation
public java.lang.String getIndentation(int levels)
Deprecated.
-
getIndentationLenght
public int getIndentationLenght(int levels)
Deprecated.
-
getWrap
public java.lang.String getWrap(int levels)
Deprecated.
-
getCfg
@Pure public FormattingPreferenceValues getCfg()
Deprecated.
-
getDocument
@Pure public java.lang.String getDocument()
Deprecated.
-
getFormattings
@Pure public java.util.TreeMap<java.lang.Integer,FormattingData> getFormattings()
Deprecated.
-
getRootTrace
@Pure public java.lang.Throwable getRootTrace()
Deprecated.
-
setRootTrace
public void setRootTrace(java.lang.Throwable rootTrace)
Deprecated.
-
isConflictOccurred
@Pure public boolean isConflictOccurred()
Deprecated.
-
setConflictOccurred
public void setConflictOccurred(boolean conflictOccurred)
Deprecated.
-
-