Class AbstractLanguage

java.lang.Object
io.spring.initializr.generator.language.AbstractLanguage
All Implemented Interfaces:
Language
Direct Known Subclasses:
GroovyLanguage, JavaLanguage, KotlinLanguage

public abstract class AbstractLanguage extends Object implements Language
Base Language implementation.
Author:
Stephane Nicoll
  • Constructor Details

    • AbstractLanguage

      protected AbstractLanguage(String id, String jvmVersion, String sourceFileExtension)
  • Method Details

    • id

      public String id()
      Description copied from interface: Language
      Return the language identifier.
      Specified by:
      id in interface Language
      Returns:
      the language id
    • jvmVersion

      public String jvmVersion()
      Description copied from interface: Language
      Return the JVM version level to use.
      Specified by:
      jvmVersion in interface Language
      Returns:
      the JVM version or "1.8" if not set
    • sourceFileExtension

      public String sourceFileExtension()
      Description copied from interface: Language
      Return the file extension to use for source file of this language.
      Specified by:
      sourceFileExtension in interface Language
      Returns:
      the source file extension
    • toString

      public String toString()
      Overrides:
      toString in class Object