public abstract class AbstractDeclarativeFormatter extends BaseFormatter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractDeclarativeFormatter.ConfigStore |
grammar| Constructor and Description |
|---|
AbstractDeclarativeFormatter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
configureFormatting(FormattingConfig config) |
ITokenStream |
createFormatterStream(org.eclipse.emf.ecore.EObject context,
java.lang.String indent,
ITokenStream out,
boolean preserveWhitespaces) |
ITokenStream |
createFormatterStream(java.lang.String indent,
ITokenStream out,
boolean preserveWhitespaces) |
protected FormattingConfig |
createFormattingConfig() |
protected IElementMatcherProvider.IElementMatcher<AbstractFormattingConfig.ElementPattern> |
createMatcher() |
protected FormattingConfig |
getConfig() |
protected IGrammarAccess |
getGrammarAccess() |
protected IHiddenTokenHelper |
getHiddenTokenHelper() |
protected IIndentationInformation |
getIndentInfo() |
protected ILineSeparatorInformation |
getLineSeparatorInfo() |
protected IElementMatcherProvider |
getMatcherProvider() |
protected void |
saveDebugGraphvizDiagram(java.lang.String filename) |
void |
setGrammarAccess(IGrammarAccess grammarAccess)
Deprecated.
|
getWSRuleprotected abstract void configureFormatting(FormattingConfig config)
public ITokenStream createFormatterStream(java.lang.String indent, ITokenStream out, boolean preserveWhitespaces)
createFormatterStream in interface IFormattercreateFormatterStream in class AbstractFormatterpublic ITokenStream createFormatterStream(org.eclipse.emf.ecore.EObject context, java.lang.String indent, ITokenStream out, boolean preserveWhitespaces)
createFormatterStream in interface IFormatterExtensioncreateFormatterStream in class AbstractFormatterprotected FormattingConfig createFormattingConfig()
protected IElementMatcherProvider.IElementMatcher<AbstractFormattingConfig.ElementPattern> createMatcher()
protected FormattingConfig getConfig()
protected IGrammarAccess getGrammarAccess()
protected IHiddenTokenHelper getHiddenTokenHelper()
protected IIndentationInformation getIndentInfo()
protected ILineSeparatorInformation getLineSeparatorInfo()
protected IElementMatcherProvider getMatcherProvider()
protected void saveDebugGraphvizDiagram(java.lang.String filename)
@Deprecated public void setGrammarAccess(IGrammarAccess grammarAccess)