org.eclipse.xtext.xbase.formatting
Class XbaseFormatter

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.XbaseFormatter
All Implemented Interfaces:
IFormatter

public class XbaseFormatter
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
XbaseFormatter()
           
 
Method Summary
 void configure(FormattingConfig c, XbaseGrammarAccess ga)
           
 void configure(FormattingConfig c, XbaseWithAnnotationsGrammarAccess ga)
           
protected  void configureFormatting(FormattingConfig c)
           
 void configureXBlockExpression(FormattingConfig c, XbaseGrammarAccess.XBlockExpressionElements ele)
           
 void configureXCasePart(FormattingConfig c, XbaseGrammarAccess.XCasePartElements ele)
           
 void configureXCatchClause(FormattingConfig c, XbaseGrammarAccess.XCatchClauseElements ele)
           
 void configureXClosure(FormattingConfig c, XbaseGrammarAccess.XClosureElements ele)
           
 void configureXConstructorCall(FormattingConfig c, XbaseGrammarAccess.XConstructorCallElements ele)
           
 void configureXDoWhileExpression(FormattingConfig c, XbaseGrammarAccess.XDoWhileExpressionElements ele)
           
 void configureXFeatureCall(FormattingConfig c, XbaseGrammarAccess.XFeatureCallElements ele)
           
 void configureXForLoopExpression(FormattingConfig c, XbaseGrammarAccess.XForLoopExpressionElements ele)
           
 void configureXIfExpression(FormattingConfig c, XbaseGrammarAccess.XIfExpressionElements ele)
           
 void configureXMemberFeatureCall(FormattingConfig c, XbaseGrammarAccess.XMemberFeatureCallElements ele)
           
 void configureXParenthesizedExpression(FormattingConfig c, XbaseGrammarAccess.XParenthesizedExpressionElements ele)
           
 void configureXShortClosure(FormattingConfig c, XbaseGrammarAccess.XShortClosureElements ele)
           
 void configureXSwitchExpression(FormattingConfig c, XbaseGrammarAccess.XSwitchExpressionElements ele)
           
 void configureXTryCatchFinallyExpression(FormattingConfig c, XbaseGrammarAccess.XTryCatchFinallyExpressionElements ele)
           
 void configureXTypeLiteral(FormattingConfig c, XbaseGrammarAccess.XTypeLiteralElements ele)
           
 void configureXUnaryOperation(FormattingConfig c, XbaseGrammarAccess.XUnaryOperationElements ele)
           
 void configureXWhileExpression(FormattingConfig c, XbaseGrammarAccess.XWhileExpressionElements 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

XbaseFormatter

public XbaseFormatter()
Method Detail

configureFormatting

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

configure

public void configure(FormattingConfig c,
                      XbaseGrammarAccess ga)

configure

public void configure(FormattingConfig c,
                      XbaseWithAnnotationsGrammarAccess ga)

configureXUnaryOperation

public void configureXUnaryOperation(FormattingConfig c,
                                     XbaseGrammarAccess.XUnaryOperationElements ele)

configureXMemberFeatureCall

public void configureXMemberFeatureCall(FormattingConfig c,
                                        XbaseGrammarAccess.XMemberFeatureCallElements ele)

configureXClosure

public void configureXClosure(FormattingConfig c,
                              XbaseGrammarAccess.XClosureElements ele)

configureXShortClosure

public void configureXShortClosure(FormattingConfig c,
                                   XbaseGrammarAccess.XShortClosureElements ele)

configureXParenthesizedExpression

public void configureXParenthesizedExpression(FormattingConfig c,
                                              XbaseGrammarAccess.XParenthesizedExpressionElements ele)

configureXIfExpression

public void configureXIfExpression(FormattingConfig c,
                                   XbaseGrammarAccess.XIfExpressionElements ele)

configureXSwitchExpression

public void configureXSwitchExpression(FormattingConfig c,
                                       XbaseGrammarAccess.XSwitchExpressionElements ele)

configureXCasePart

public void configureXCasePart(FormattingConfig c,
                               XbaseGrammarAccess.XCasePartElements ele)

configureXForLoopExpression

public void configureXForLoopExpression(FormattingConfig c,
                                        XbaseGrammarAccess.XForLoopExpressionElements ele)

configureXWhileExpression

public void configureXWhileExpression(FormattingConfig c,
                                      XbaseGrammarAccess.XWhileExpressionElements ele)

configureXBlockExpression

public void configureXBlockExpression(FormattingConfig c,
                                      XbaseGrammarAccess.XBlockExpressionElements ele)

configureXDoWhileExpression

public void configureXDoWhileExpression(FormattingConfig c,
                                        XbaseGrammarAccess.XDoWhileExpressionElements ele)

configureXFeatureCall

public void configureXFeatureCall(FormattingConfig c,
                                  XbaseGrammarAccess.XFeatureCallElements ele)

configureXConstructorCall

public void configureXConstructorCall(FormattingConfig c,
                                      XbaseGrammarAccess.XConstructorCallElements ele)

configureXTypeLiteral

public void configureXTypeLiteral(FormattingConfig c,
                                  XbaseGrammarAccess.XTypeLiteralElements ele)

configureXTryCatchFinallyExpression

public void configureXTryCatchFinallyExpression(FormattingConfig c,
                                                XbaseGrammarAccess.XTryCatchFinallyExpressionElements ele)

configureXCatchClause

public void configureXCatchClause(FormattingConfig c,
                                  XbaseGrammarAccess.XCatchClauseElements ele)