public class KotlinClassFlags extends java.lang.Object implements KotlinFlags
Valid common flags: - hasAnnotations - isInternal - isPrivate - isProtected - isPublic - isPrivateToThis - isLocal - isFinal - isOpen - isAbstract - isSealed
Modifier and Type | Field and Description |
---|---|
boolean |
hasAnnotations |
boolean |
hasMethodBodiesInInterface
Applied to an interface compiled with -Xjvm-default=all or all-compatibility.
|
boolean |
isAnnotationClass
A class kind flag, signifying that the corresponding class is an `annotation class`.
|
boolean |
isCompanionObject
A class kind flag, signifying that the corresponding class is a `companion object`.
|
boolean |
isCompiledInCompatibilityMode
Applied to an interface compiled with -Xjvm-default=all or all-compatibility.
|
boolean |
isData
Signifies that the corresponding class is `data`.
|
boolean |
isEnumClass
A class kind flag, signifying that the corresponding class is an `enum class`.
|
boolean |
isEnumEntry
A class kind flag, signifying that the corresponding class is an enum entry.
|
boolean |
isExpect
Signifies that the corresponding class is `expect`.
|
boolean |
isExternal
Signifies that the corresponding class is `external`.
|
boolean |
isFun
Signifies that the corresponding class is a functional interface, i.e.
|
boolean |
isInner
Signifies that the corresponding class is `inner`.
|
boolean |
isInterface
A class kind flag, signifying that the corresponding class is an `interface`.
|
boolean |
isObject
A class kind flag, signifying that the corresponding class is a non-companion `object`.
|
boolean |
isUsualClass
A class kind flag, signifying that the corresponding class is a usual `class`.
|
boolean |
isValue
Signifies that the corresponding class is `value`.
|
KotlinModalityFlags |
modality |
KotlinVisibilityFlags |
visibility |
Constructor and Description |
---|
KotlinClassFlags(KotlinVisibilityFlags visibility,
KotlinModalityFlags modality) |
public final KotlinVisibilityFlags visibility
public final KotlinModalityFlags modality
public boolean hasAnnotations
public boolean isUsualClass
public boolean isInterface
public boolean isEnumClass
public boolean isEnumEntry
public boolean isAnnotationClass
public boolean isObject
public boolean isCompanionObject
public boolean isInner
public boolean isData
public boolean isExternal
public boolean isExpect
public boolean isValue
public boolean isFun
public boolean hasMethodBodiesInInterface
Without this flag or a `@JvmDefault` annotation on individual interface methods the Kotlin compiler moves all interface method bodies into a nested `DefaultImpls` class.
public boolean isCompiledInCompatibilityMode
Without this flag or a `@JvmDefault` annotation on individual interface methods the Kotlin compiler moves all interface method bodies into a nested `DefaultImpls` class.
public KotlinClassFlags(KotlinVisibilityFlags visibility, KotlinModalityFlags modality)