Class DefaultGeneratorModule
- java.lang.Object
-
- org.eclipse.xtext.service.AbstractGenericModule
-
- org.eclipse.xtext.xtext.generator.DefaultGeneratorModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class DefaultGeneratorModule extends org.eclipse.xtext.service.AbstractGenericModule
An instance of this module is assigned to theconfiguration
property ofXtextGenerator
. It contains theproject configuration
and thecode configuration
. If you need to configure more aspects of the generator, create a subclass and bind your custom configuration classes. For example, in order to adapt thenaming
of the generated code, use the following:class MyGeneratorModule extends DefaultGeneratorModule { def Class<? extends XtextGeneratorNaming> bindXtextGeneratorNaming() { MyGeneratorNaming } }
-
-
Constructor Summary
Constructors Constructor Description DefaultGeneratorModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkConfiguration(Issues issues)
void
configureCodeConfig(com.google.inject.Binder binder)
void
configureIEncodingProvider(com.google.inject.Binder binder)
void
configureLineSeparatorInformation(com.google.inject.Binder binder)
void
configureResourceSet(com.google.inject.Binder binder)
void
configureXtextProjectConfig(com.google.inject.Binder binder)
CodeConfig
getCode()
XtextProjectConfig
getProject()
void
setCode(CodeConfig code)
void
setProject(XtextProjectConfig project)
-
-
-
Method Detail
-
checkConfiguration
protected void checkConfiguration(Issues issues)
-
configureXtextProjectConfig
public void configureXtextProjectConfig(com.google.inject.Binder binder)
-
configureCodeConfig
public void configureCodeConfig(com.google.inject.Binder binder)
-
configureResourceSet
public void configureResourceSet(com.google.inject.Binder binder)
-
configureLineSeparatorInformation
public void configureLineSeparatorInformation(com.google.inject.Binder binder)
-
configureIEncodingProvider
public void configureIEncodingProvider(com.google.inject.Binder binder)
-
getProject
public XtextProjectConfig getProject()
-
setProject
public void setProject(XtextProjectConfig project)
-
getCode
public CodeConfig getCode()
-
setCode
public void setCode(CodeConfig code)
-
-