Skip to content

KotlinFileType

open class KotlinFileType : LanguageFileType

Companion properties

DOT_DEFAULT_EXTENSION

DOT_SCRIPT_EXTENSION

EMPTY_ARRAY

val EMPTY_ARRAY: Array<FileType>

EXTENSION

val EXTENSION: String = "kt"

INSTANCE

SCRIPT_EXTENSION

val SCRIPT_EXTENSION: String = "kts"

Functions

extractCharsetFromFileContent

open fun extractCharsetFromFileContent(
    project: @Nullable Project, 
    file: @Nullable VirtualFile, 
    content: @NotNull String
): Charset

getCharset

open fun getCharset(file: @NotNull VirtualFile, content: @NotNull Array<Byte>): @NonNls @Nullable String

getDefaultExtension

@NotNull
open fun getDefaultExtension(): String

getDescription

@NotNull
open fun getDescription(): String

getDisplayName

open fun getDisplayName(): @Nls @NotNull String

getIcon

open fun getIcon(): Icon

getLanguage

fun getLanguage(): @NotNull Language

getName

@NotNull
open fun getName(): String

isBinary

fun isBinary(): Boolean

isCharsetHardcoded

isJVMDebuggingSupported

isReadOnly

open fun isReadOnly(): Boolean

isSecondary

open fun isSecondary(): Boolean