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