Class AbstractDeclarativeFormatter
- java.lang.Object
-
- org.eclipse.xtext.formatting.impl.AbstractFormatter
-
- org.eclipse.xtext.formatting.impl.BaseFormatter
-
- org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
-
- All Implemented Interfaces:
IFormatter
,IFormatterExtension
- Direct Known Subclasses:
XtextFormatter
public abstract class AbstractDeclarativeFormatter extends BaseFormatter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractDeclarativeFormatter.ConfigStore
-
Field Summary
-
Fields inherited from class org.eclipse.xtext.formatting.impl.BaseFormatter
grammar
-
-
Constructor Summary
Constructors Constructor Description AbstractDeclarativeFormatter()
-
Method Summary
-
Methods inherited from class org.eclipse.xtext.formatting.impl.BaseFormatter
getWSRule
-
-
-
-
Method Detail
-
configureFormatting
protected abstract void configureFormatting(FormattingConfig config)
-
createFormatterStream
public ITokenStream createFormatterStream(java.lang.String indent, ITokenStream out, boolean preserveWhitespaces)
- Specified by:
createFormatterStream
in interfaceIFormatter
- Overrides:
createFormatterStream
in classAbstractFormatter
-
createFormatterStream
public ITokenStream createFormatterStream(org.eclipse.emf.ecore.EObject context, java.lang.String indent, ITokenStream out, boolean preserveWhitespaces)
- Specified by:
createFormatterStream
in interfaceIFormatterExtension
- Overrides:
createFormatterStream
in classAbstractFormatter
- Since:
- 2.3
-
createFormattingConfig
protected FormattingConfig createFormattingConfig()
-
createMatcher
protected IElementMatcherProvider.IElementMatcher<AbstractFormattingConfig.ElementPattern> createMatcher()
-
getConfig
protected FormattingConfig getConfig()
-
getGrammarAccess
protected IGrammarAccess getGrammarAccess()
-
getHiddenTokenHelper
protected IHiddenTokenHelper getHiddenTokenHelper()
-
getIndentInfo
protected IIndentationInformation getIndentInfo()
-
getLineSeparatorInfo
protected ILineSeparatorInformation getLineSeparatorInfo()
- Since:
- 2.3
-
getMatcherProvider
protected IElementMatcherProvider getMatcherProvider()
-
saveDebugGraphvizDiagram
protected void saveDebugGraphvizDiagram(java.lang.String filename)
-
setGrammarAccess
@Deprecated public void setGrammarAccess(IGrammarAccess grammarAccess)
Deprecated.
-
-