public class KotlinPropertyFlags 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 |
hasConstant
Signifies that the corresponding property has a constant value.
|
boolean |
isConst
Signifies that the corresponding property is `const`.
|
boolean |
isDeclared
A member kind flag, signifying that the corresponding property is explicitly declared in the
containing class.
|
boolean |
isDelegated
Signifies that the corresponding property is a delegated property.
|
boolean |
isDelegation
A member kind flag, signifying that the corresponding property exists in the containing class
because it has been produced by interface delegation (delegation "by").
|
boolean |
isExpect
Signifies that the corresponding property is `expect`.
|
boolean |
isExternal
Signifies that the corresponding property is `external`.
|
boolean |
isFakeOverride
A member kind flag, signifying that the corresponding property exists in the containing class
because a property with a suitable signature exists in a supertype.
|
boolean |
isLateinit
Signifies that the corresponding property is `lateinit`.
|
boolean |
isMovedFromInterfaceCompanion
Signifies that its backing field is declared as a static field in an interface, usually happens
when @JvmField annotation is used e.g.
|
boolean |
isSynthesized
A member kind flag, signifying that the corresponding property exists in the containing class
because it has been synthesized by the compiler and has no declaration in the source code.
|
boolean |
isVar
Signifies that the corresponding property is `var`.
|
KotlinModalityFlags |
modality |
KotlinVisibilityFlags |
visibility |
Constructor and Description |
---|
KotlinPropertyFlags(KotlinVisibilityFlags visibility,
KotlinModalityFlags modality) |
public final KotlinVisibilityFlags visibility
public final KotlinModalityFlags modality
public boolean hasAnnotations
public boolean isDeclared
public boolean isFakeOverride
public boolean isDelegation
public boolean isSynthesized
public boolean isVar
public boolean isConst
public boolean isLateinit
public boolean hasConstant
public boolean isExternal
public boolean isDelegated
public boolean isExpect
public boolean isMovedFromInterfaceCompanion
interface A { companion object { @JvmField val s:String = "string" } }
public KotlinPropertyFlags(KotlinVisibilityFlags visibility, KotlinModalityFlags modality)