Package com.vaadin.copilot
Class KotlinUtil
java.lang.Object
com.vaadin.copilot.KotlinUtil
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDeprecated.Checks file extension is kotlin extensions .e.g kt, ktsstatic booleanisKotlinProject(ProjectFileManager projectFileManager) Deprecated.Checks whether project source folders include Kotlin sources.static voidthrowIfKotlin(File file) Deprecated.Checks file extension is kotlin extensions .e.g kt, kts and throwsKotlinNotSupportedExceptionwhen file has one of the extensions
-
Method Details
-
throwIfKotlin
Deprecated.Checks file extension is kotlin extensions .e.g kt, kts and throwsKotlinNotSupportedExceptionwhen file has one of the extensions- Parameters:
file- File to check
-
isKotlin
Deprecated.Checks file extension is kotlin extensions .e.g kt, kts- Parameters:
file- File to check- Returns:
- true if kotlin file, false otherwise.
-
isKotlinProject
Deprecated.Checks whether project source folders include Kotlin sources.- Parameters:
projectFileManager- Project file manager to inspect- Returns:
- true if Kotlin sources are detected, false otherwise.
-
SourceLanguage, which can name a file's language rather than only answering "is this Kotlin?". Kept while callers are migrated; the methods here delegate so behaviour is identical.