Package com.vaadin.copilot
Class KotlinUtil
java.lang.Object
com.vaadin.copilot.KotlinUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks file extension is kotlin extensions .e.g kt, ktsstatic voidthrowIfKotlin(File file) Checks file extension is kotlin extensions .e.g kt, kts and throwsKotlinNotSupportedExceptionwhen file has one of the extensions
-
Method Details
-
throwIfKotlin
Checks file extension is kotlin extensions .e.g kt, kts and throwsKotlinNotSupportedExceptionwhen file has one of the extensions- Parameters:
file- File to check
-
isKotlin
Checks file extension is kotlin extensions .e.g kt, kts- Parameters:
file- File to check- Returns:
- true if kotlin file, false otherwise.
-