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.
|
getWSRule
protected abstract void configureFormatting(FormattingConfig config)
public ITokenStream createFormatterStream(java.lang.String indent, ITokenStream out, boolean preserveWhitespaces)
createFormatterStream
in interface IFormatter
createFormatterStream
in class AbstractFormatter
public ITokenStream createFormatterStream(org.eclipse.emf.ecore.EObject context, java.lang.String indent, ITokenStream out, boolean preserveWhitespaces)
createFormatterStream
in interface IFormatterExtension
createFormatterStream
in class AbstractFormatter
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)
@Deprecated public void setGrammarAccess(IGrammarAccess grammarAccess)