public class CodeConfig extends java.lang.Object implements IGuiceAwareGeneratorComponent
Constructor and Description |
---|
CodeConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addClassAnnotation(IClassAnnotation annotation)
Class annotations are used to configure specific Java annotations to be added to each generated class.
|
java.lang.String |
getAnnotationImportsAsString() |
java.util.List<IClassAnnotation> |
getClassAnnotations() |
java.lang.String |
getClassAnnotationsAsString() |
java.lang.String |
getEncoding() |
java.lang.String |
getFileHeader() |
java.lang.String |
getLineDelimiter() |
XtextVersion |
getXtextVersion() |
void |
initialize(com.google.inject.Injector injector) |
boolean |
isPreferXtendStubs() |
void |
setEncoding(java.lang.String encoding) |
void |
setFileHeader(java.lang.String fileHeaderTemplate)
Configure a template for file headers.
|
void |
setLineDelimiter(java.lang.String lineDelimiter) |
void |
setPreferXtendStubs(boolean preferXtendStubs) |
public void setFileHeader(java.lang.String fileHeaderTemplate)
${time}
- the current time of the day (hour:minute:second)${date}
- the current date (month day, year)${year}
- the current year${user}
- the content of the 'user.name' system property${version}
- the generator plug-in versionpublic void addClassAnnotation(IClassAnnotation annotation)
public void initialize(com.google.inject.Injector injector)
initialize
in interface IGuiceAwareGeneratorComponent
public java.lang.String getClassAnnotationsAsString()
public java.lang.String getAnnotationImportsAsString()
@Pure public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
@Pure public java.lang.String getLineDelimiter()
public void setLineDelimiter(java.lang.String lineDelimiter)
@Pure public java.lang.String getFileHeader()
@Pure public java.util.List<IClassAnnotation> getClassAnnotations()
@Pure public boolean isPreferXtendStubs()
public void setPreferXtendStubs(boolean preferXtendStubs)
@Pure public XtextVersion getXtextVersion()