Package proguard.classfile.kotlin.flags
Class KotlinFunctionFlags
java.lang.Object
proguard.classfile.kotlin.flags.KotlinFunctionFlags
- All Implemented Interfaces:
KotlinFlags
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanDeprecated.booleanIndicates that the corresponding function has at least one annotation in the JVM bytecode.booleanA member kind flag, signifying that the corresponding function is explicitly declared in the containing class.booleanA member kind flag, signifying that the corresponding function exists in the containing class because it has been produced by interface delegation (delegation "by").booleanSignifies that the corresponding function is `expect`.booleanSignifies that the corresponding function is `external`.booleanA member kind flag, signifying that the corresponding function exists in the containing class because a function with a suitable signature exists in a supertype.booleanSignifies that the corresponding function is `infix`.booleanSignifies that the corresponding function is `inline`.booleanSignifies that the corresponding function is `operator`.booleanSignifies that the corresponding function is `suspend`.booleanA member kind flag, signifying that the corresponding function exists in the containing class because it has been synthesized by the compiler and has no declaration in the source code.booleanSignifies that the corresponding function is `tailrec`.final KotlinModalityFlagsfinal KotlinVisibilityFlags -
Constructor Summary
ConstructorsConstructorDescriptionKotlinFunctionFlags(KotlinVisibilityFlags visibility, KotlinModalityFlags modality) -
Method Summary
-
Field Details
-
visibility
-
modality
-
isDeclaration
public boolean isDeclarationA member kind flag, signifying that the corresponding function is explicitly declared in the containing class. -
isFakeOverride
public boolean isFakeOverrideA member kind flag, signifying that the corresponding function exists in the containing class because a function with a suitable signature exists in a supertype. This flag is not written by the Kotlin compiler and its effects are unspecified. -
isDelegation
public boolean isDelegationA member kind flag, signifying that the corresponding function exists in the containing class because it has been produced by interface delegation (delegation "by"). -
isSynthesized
public boolean isSynthesizedA member kind flag, signifying that the corresponding function exists in the containing class because it has been synthesized by the compiler and has no declaration in the source code. -
isOperator
public boolean isOperatorSignifies that the corresponding function is `operator`. -
isInfix
public boolean isInfixSignifies that the corresponding function is `infix`. -
isInline
public boolean isInlineSignifies that the corresponding function is `inline`. -
isTailrec
public boolean isTailrecSignifies that the corresponding function is `tailrec`. -
isExternal
public boolean isExternalSignifies that the corresponding function is `external`. -
isSuspend
public boolean isSuspendSignifies that the corresponding function is `suspend`. -
isExpect
public boolean isExpectSignifies that the corresponding function is `expect`. -
hasAnnotationsInBytecode
public boolean hasAnnotationsInBytecodeIndicates that the corresponding function has at least one annotation in the JVM bytecode.Before annotations in metadata are enabled by default in the Kotlin compiler (https://youtrack.jetbrains.com/issue/KT-75736), annotations are only generated in the JVM bytecode. The compiler writes and reads this flag to metadata as an optimization, to avoid parsing class file one additional time when it's not needed.
Only annotations with [AnnotationRetention.BINARY] and [AnnotationRetention.RUNTIME] are written to the class files.
-
hasAnnotations
Deprecated.
-
-
Constructor Details
-
KotlinFunctionFlags
-