Interface Language

All Known Implementing Classes:
AbstractLanguage, GroovyLanguage, JavaLanguage, KotlinLanguage

public interface Language
A language in which a generated project can be written.
Author:
Andy Wilkinson
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The default JVM version to use if none is specified.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Language
    forId(String id, String jvmVersion)
     
    id()
    Return the language identifier.
    Return the JVM version level to use.
    Return the file extension to use for source file of this language.
  • Field Details

    • DEFAULT_JVM_VERSION

      static final String DEFAULT_JVM_VERSION
      The default JVM version to use if none is specified.
      See Also:
  • Method Details

    • id

      String id()
      Return the language identifier.
      Returns:
      the language id
    • jvmVersion

      String jvmVersion()
      Return the JVM version level to use.
      Returns:
      the JVM version or "1.8" if not set
    • sourceFileExtension

      String sourceFileExtension()
      Return the file extension to use for source file of this language.
      Returns:
      the source file extension
    • forId

      static Language forId(String id, String jvmVersion)