public class FormattingConfig extends AbstractFormattingConfig
Modifier and Type | Class and Description |
---|---|
class |
FormattingConfig.IndentationLocatorEnd |
class |
FormattingConfig.IndentationLocatorStart |
class |
FormattingConfig.LinewrapLocator |
class |
FormattingConfig.NoLinewrapLocator |
class |
FormattingConfig.NoSpaceLocator |
class |
FormattingConfig.SpaceLocator |
AbstractFormattingConfig.ElementBeforeAfterPattern, AbstractFormattingConfig.ElementBetweenPattern, AbstractFormattingConfig.ElementLocator, AbstractFormattingConfig.ElementPattern, AbstractFormattingConfig.LocatorType
Modifier and Type | Field and Description |
---|---|
protected int |
charsPerLine |
protected IIndentationInformation |
indentInfo |
protected TerminalRule |
whitespaceRule
Deprecated.
|
protected int |
wrappedLineIndentation |
grammarAccess, hiddenTokenHelper, locatorsCommentAfter, locatorsCommentBefore, locatorsSemantic
Constructor and Description |
---|
FormattingConfig(IGrammarAccess grammarAccess,
IHiddenTokenHelper hiddenTokenHelper,
IIndentationInformation indentInfo)
Deprecated.
use
FormattingConfig2 instead |
Modifier and Type | Method and Description |
---|---|
int |
getCharsPerLine() |
java.lang.String |
getIndentationSpace() |
TerminalRule |
getWhitespaceRule()
Deprecated.
|
int |
getWrappedLineIndentation() |
void |
setAutoLinewrap(int charsPerLine) |
void |
setIndentation(AbstractElement beginElement,
AbstractElement endElement) |
FormattingConfig.IndentationLocatorEnd |
setIndentationDecrement() |
FormattingConfig.IndentationLocatorStart |
setIndentationIncrement() |
FormattingConfig.LinewrapLocator |
setLinewrap() |
FormattingConfig.LinewrapLocator |
setLinewrap(int lines) |
FormattingConfig.LinewrapLocator |
setLinewrap(int minWraps,
int defaultWraps,
int maxWraps) |
FormattingConfig.NoLinewrapLocator |
setNoLinewrap() |
FormattingConfig.NoSpaceLocator |
setNoSpace() |
FormattingConfig.SpaceLocator |
setSpace(java.lang.String space) |
void |
setWhitespaceRule(TerminalRule rule)
Deprecated.
|
void |
setWrappedLineIndentation(int wrapIndent) |
addLocator, addLocatorComment, addLocatorSemantic, addLocatorSemantic, getAbstractElements, getLocatorsForCommentTokensAfter, getLocatorsForCommentTokensBefore, getLocatorsForSemanticTokens
protected int charsPerLine
protected IIndentationInformation indentInfo
protected int wrappedLineIndentation
@Deprecated protected TerminalRule whitespaceRule
@Deprecated public FormattingConfig(IGrammarAccess grammarAccess, IHiddenTokenHelper hiddenTokenHelper, IIndentationInformation indentInfo)
FormattingConfig2
insteadpublic int getWrappedLineIndentation()
public void setWrappedLineIndentation(int wrapIndent)
@Deprecated public TerminalRule getWhitespaceRule()
@Deprecated public void setWhitespaceRule(TerminalRule rule)
public int getCharsPerLine()
public java.lang.String getIndentationSpace()
public void setAutoLinewrap(int charsPerLine)
public void setIndentation(AbstractElement beginElement, AbstractElement endElement)
public FormattingConfig.IndentationLocatorStart setIndentationIncrement()
public FormattingConfig.IndentationLocatorEnd setIndentationDecrement()
public FormattingConfig.LinewrapLocator setLinewrap()
public FormattingConfig.LinewrapLocator setLinewrap(int lines)
public FormattingConfig.LinewrapLocator setLinewrap(int minWraps, int defaultWraps, int maxWraps)
public FormattingConfig.NoLinewrapLocator setNoLinewrap()
public FormattingConfig.NoSpaceLocator setNoSpace()
public FormattingConfig.SpaceLocator setSpace(java.lang.String space)