Class CodeConfig

    • Constructor Detail

      • CodeConfig

        public CodeConfig()
    • Method Detail

      • setFileHeader

        public void setFileHeader​(java.lang.String fileHeaderTemplate)
        Configure a template for file headers. The template can contain variables:
        • ${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 bundle version
      • addClassAnnotation

        public void addClassAnnotation​(IClassAnnotation annotation)
        Class annotations are used to configure specific Java annotations to be added to each generated class.
      • getClassAnnotationsAsString

        public java.lang.String getClassAnnotationsAsString()
      • getAnnotationImportsAsString

        public java.lang.String getAnnotationImportsAsString()
      • getEncoding

        public java.lang.String getEncoding()
      • setEncoding

        public void setEncoding​(java.lang.String encoding)
      • getLineDelimiter

        public java.lang.String getLineDelimiter()
      • setLineDelimiter

        public void setLineDelimiter​(java.lang.String lineDelimiter)
      • getFileHeader

        public java.lang.String getFileHeader()
      • getClassAnnotations

        public java.util.List<IClassAnnotation> getClassAnnotations()
      • isPreferXtendStubs

        public boolean isPreferXtendStubs()
      • setPreferXtendStubs

        public void setPreferXtendStubs​(boolean preferXtendStubs)
      • getXtextVersion

        public org.eclipse.xtext.util.XtextVersion getXtextVersion()