Class GroovyLanguage
java.lang.Object
io.spring.initializr.generator.language.AbstractLanguage
io.spring.initializr.generator.language.groovy.GroovyLanguage
- All Implemented Interfaces:
Language
Groovy
Language
.- Author:
- Stephane Nicoll, Moritz Halbritter
-
Field Summary
FieldsFields inherited from interface io.spring.initializr.generator.language.Language
DEFAULT_JVM_VERSION
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance with the JVM version "1.8".GroovyLanguage
(String jvmVersion) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the giveninput
is a keyword.boolean
Whether the language supports escaping keywords in package declarations.Methods inherited from class io.spring.initializr.generator.language.AbstractLanguage
id, jvmVersion, sourceFileExtension, toString
-
Field Details
-
ID
GroovyLanguage
identifier.- See Also:
-
-
Constructor Details
-
GroovyLanguage
public GroovyLanguage()Creates a new instance with the JVM version "1.8". -
GroovyLanguage
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
Description copied from interface:Language
Whether the giveninput
is a keyword.- Parameters:
input
- the input- Returns:
- whether the input is a keyword
-