org.eclipse.xtext.generator.formatting
Class FormatterFragment

java.lang.Object
  extended by org.eclipse.xtext.generator.DefaultGeneratorFragment
      extended by org.eclipse.xtext.generator.AbstractGeneratorFragment
          extended by org.eclipse.xtext.generator.formatting.FormatterFragment
All Implemented Interfaces:
IGeneratorFragment, NamingAware
Direct Known Subclasses:
FormatterFragment

public class FormatterFragment
extends AbstractGeneratorFragment

An IGeneratorFragment to create a formatter for an Xtext language.

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
FormatterFragment()
           
 
Method Summary
static java.lang.String getFormatterName(Grammar grammar, Naming naming)
           
 java.util.Set<Binding> getGuiceBindingsRt(Grammar grammar)
          return a map containing the contributed guice bindings created in this generator fragment
 
Methods inherited from class org.eclipse.xtext.generator.AbstractGeneratorFragment
addToPluginXmlRt, addToPluginXmlUi, addToStandaloneSetup, generate, getExportedPackagesRt, getExportedPackagesUi, getGuiceBindingsUi, getNaming, getParameters, getRequiredBundlesRt, getRequiredBundlesUi, getTemplate, registerNaming
 
Methods inherited from class org.eclipse.xtext.generator.DefaultGeneratorFragment
checkConfiguration, getImportedPackagesRt, getImportedPackagesUi
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatterFragment

public FormatterFragment()
Method Detail

getGuiceBindingsRt

public java.util.Set<Binding> getGuiceBindingsRt(Grammar grammar)
Description copied from interface: IGeneratorFragment
return a map containing the contributed guice bindings created in this generator fragment

Specified by:
getGuiceBindingsRt in interface IGeneratorFragment
Overrides:
getGuiceBindingsRt in class AbstractGeneratorFragment

getFormatterName

public static java.lang.String getFormatterName(Grammar grammar,
                                                Naming naming)