public class ReplacingAppendable extends DocumentSourceAppender
IAppendable
to insert text into an Xtend document. Takes imports and
existing variable names into account.Modifier and Type | Class and Description |
---|---|
static class |
ReplacingAppendable.Factory |
Modifier | Constructor and Description |
---|---|
protected |
ReplacingAppendable(IXtextDocument document,
RewritableImportSection importSection,
WhitespaceHelper whitespaceHelper,
java.lang.String indentString,
java.lang.String lineSeparator,
int baseIndentationLevel,
boolean isJava,
ReplaceConverter replaceConverter) |
Modifier and Type | Method and Description |
---|---|
int |
commitChanges() |
int |
commitChanges(int offset,
int length) |
protected int |
commitChanges(ReplaceRegion change) |
int |
insertNewImports() |
append, append, append, append, appendType, createLightweightTypeReferenceSerializer, decreaseIndentation, getBaseIndentLevel, getChange, getChange, getCode, getCurrentIndentLevel, getDocument, getImportedType, getImportSection, getIndentationString, getInnerTypeSeparator, getLineSeparator, getTotalLength, getTotalOffset, increaseIndentation, indentString, isJava, length, newLine, toString
protected ReplacingAppendable(IXtextDocument document, RewritableImportSection importSection, WhitespaceHelper whitespaceHelper, java.lang.String indentString, java.lang.String lineSeparator, int baseIndentationLevel, boolean isJava, ReplaceConverter replaceConverter)
public int commitChanges() throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
public int commitChanges(int offset, int length) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
protected int commitChanges(ReplaceRegion change) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
public int insertNewImports() throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException