Class GroovyLanguage

java.lang.Object
io.spring.initializr.generator.language.AbstractLanguage
io.spring.initializr.generator.language.groovy.GroovyLanguage
All Implemented Interfaces:
Language

public final class GroovyLanguage extends AbstractLanguage
Groovy Language.
Author:
Stephane Nicoll, Moritz Halbritter
  • Field Details

  • Constructor Details

    • GroovyLanguage

      public GroovyLanguage()
      Creates a new instance with the JVM version "1.8".
    • GroovyLanguage

      public GroovyLanguage(String jvmVersion)
      Creates a new instance.
      Parameters:
      jvmVersion - the JVM version
  • Method Details

    • supportsEscapingKeywordsInPackage

      public boolean supportsEscapingKeywordsInPackage()
      Description copied from interface: Language
      Whether the language supports escaping keywords in package declarations.
      Returns:
      whether the language supports escaping keywords in package declarations.
    • isKeyword

      public boolean isKeyword(String input)
      Description copied from interface: Language
      Whether the given input is a keyword.
      Parameters:
      input - the input
      Returns:
      whether the input is a keyword