com.dbobjekts.codegen.metadata.ReservedKeywords.kt Maven / Gradle / Ivy
package com.dbobjekts.codegen.metadata
object ReservedKeywords {
private val KEYWORDS = setOf(
"String",
"Int","Integer",
"Long",
"Double",
"Float",
"Boolean",
"Char",
"Byte",
"Short",
"Unit",
"Any",
"Nothing",
"Array",
"Enum",
"Annotation",
"Throwable",
"Comparable",
"CharSequence",
"Number",
"CharIterator",
"Iterator",
"Collection",
"List",
"Set",
"Map",
"ListIterator",
"Map.Entry",
"MutableCollection",
"MutableList",
"MutableSet",
"MutableMap",
"MutableIterator",
"MutableListIterator",
"MutableMap.MutableEntry",
"BooleanArray",
"ByteArray",
"CharArray",
"DoubleArray",
"FloatArray",
"IntArray",
"LongArray",
"ShortArray",
"UByteArray",
"UCharArray",
"UIntArray",
"ULongArray",
"UShortArray",
"Array",
"as",
"break",
"class",
"continue",
"do",
"else",
"false",
"for",
"fun",
"if",
"it",
"in",
"interface",
"is",
"null",
"object",
"package",
"return",
"super",
"this",
"throw",
"true",
"try",
"typealias",
"typeof",
"val",
"var",
"when",
"while",
"by",
"catch",
"constructor",
"delegate",
"field",
"file",
"finally",
"get",
"import",
"init",
"param",
"property",
"receiver",
"set",
"setparam",
"where"
)
fun isKeyword(str: String): Boolean = KEYWORDS.contains(str)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy