org.eclipse.xtext.xbase.formatting
Class XtypeFormatter

java.lang.Object
  extended by org.eclipse.xtext.formatting.impl.AbstractFormatter
      extended by org.eclipse.xtext.formatting.impl.BaseFormatter
          extended by org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
              extended by org.eclipse.xtext.xbase.formatting.XtypeFormatter
All Implemented Interfaces:
IFormatter

public class XtypeFormatter
extends 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 Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
AbstractDeclarativeFormatter.ConfigStore
 
Field Summary
 
Fields inherited from class org.eclipse.xtext.formatting.impl.BaseFormatter
grammar
 
Constructor Summary
XtypeFormatter()
           
 
Method Summary
 void configure(FormattingConfig c, XtypeGrammarAccess ga)
           
protected  void configureFormatting(FormattingConfig c)
           
 void configureJvmParameterizedTypeReference(FormattingConfig c, XtypeGrammarAccess.JvmParameterizedTypeReferenceElements ele)
           
 void configureXFunctionTypeRef(FormattingConfig c, XtypeGrammarAccess.XFunctionTypeRefElements ele)
           
 
Methods inherited from class org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
createFormatterStream, createFormattingConfig, createMatcher, getConfig, getGrammarAccess, getHiddenTokenHelper, getIndentInfo, 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
 

Constructor Detail

XtypeFormatter

public XtypeFormatter()
Method Detail

configureFormatting

protected void configureFormatting(FormattingConfig c)
Specified by:
configureFormatting in class AbstractDeclarativeFormatter

configure

public void configure(FormattingConfig c,
                      XtypeGrammarAccess ga)

configureXFunctionTypeRef

public void configureXFunctionTypeRef(FormattingConfig c,
                                      XtypeGrammarAccess.XFunctionTypeRefElements ele)

configureJvmParameterizedTypeReference

public void configureJvmParameterizedTypeReference(FormattingConfig c,
                                                   XtypeGrammarAccess.JvmParameterizedTypeReferenceElements ele)