org.eclipse.ocl.examples.xtext.base.formatting
Class AbstractBaseFormatter
java.lang.Object
org.eclipse.xtext.formatting.impl.AbstractFormatter
org.eclipse.xtext.formatting.impl.BaseFormatter
org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
org.eclipse.ocl.examples.xtext.base.formatting.AbstractBaseFormatter
- All Implemented Interfaces:
- org.eclipse.xtext.formatting.IFormatter, org.eclipse.xtext.formatting.IFormatterExtension
- Direct Known Subclasses:
- AbstractEssentialOCLFormatter
public abstract class AbstractBaseFormatter
- extends org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
This class contains custom formatting description.
see : http://www.eclipse.org/Xtext/documentation/latest/xtext.html#formatting
on how and when to use it
Also see org.eclipse.xtext.xtext.XtextFormattingTokenSerializer
as an example
Nested classes/interfaces inherited from class org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter |
org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter.ConfigStore |
Fields inherited from class org.eclipse.xtext.formatting.impl.BaseFormatter |
grammar |
Method Summary |
void |
setBraces(org.eclipse.xtext.formatting.impl.FormattingConfig c,
org.eclipse.xtext.Keyword leftBrace,
org.eclipse.xtext.Keyword rightBrace)
|
void |
setNoSpaceLineWrap(org.eclipse.xtext.formatting.impl.FormattingConfig c,
org.eclipse.xtext.Keyword semicolon)
|
Methods inherited from class org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter |
configureFormatting, createFormatterStream, createFormatterStream, createFormattingConfig, createMatcher, getConfig, getGrammarAccess, getHiddenTokenHelper, getIndentInfo, getLineSeparatorInfo, getMatcherProvider, saveDebugGraphvizDiagram, setGrammarAccess |
Methods inherited from class org.eclipse.xtext.formatting.impl.BaseFormatter |
getWSRule |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBaseFormatter
public AbstractBaseFormatter()
setBraces
public void setBraces(org.eclipse.xtext.formatting.impl.FormattingConfig c,
org.eclipse.xtext.Keyword leftBrace,
org.eclipse.xtext.Keyword rightBrace)
setNoSpaceLineWrap
public void setNoSpaceLineWrap(org.eclipse.xtext.formatting.impl.FormattingConfig c,
org.eclipse.xtext.Keyword semicolon)