类 KotlinFunctionFlags
- java.lang.Object
-
- proguard.classfile.kotlin.flags.KotlinFunctionFlags
-
- 所有已实现的接口:
KotlinFlags
public class KotlinFunctionFlags extends java.lang.Object implements KotlinFlags
-
-
字段概要
字段 修饰符和类型 字段 说明 booleanhasAnnotations已过时。booleanhasAnnotationsInBytecodeIndicates that the corresponding function has at least one annotation in the JVM bytecode.booleanisDeclarationA member kind flag, signifying that the corresponding function is explicitly declared in the containing class.booleanisDelegationA member kind flag, signifying that the corresponding function exists in the containing class because it has been produced by interface delegation (delegation "by").booleanisExpectSignifies that the corresponding function is `expect`.booleanisExternalSignifies that the corresponding function is `external`.booleanisFakeOverrideA member kind flag, signifying that the corresponding function exists in the containing class because a function with a suitable signature exists in a supertype.booleanisInfixSignifies that the corresponding function is `infix`.booleanisInlineSignifies that the corresponding function is `inline`.booleanisOperatorSignifies that the corresponding function is `operator`.booleanisSuspendSignifies that the corresponding function is `suspend`.booleanisSynthesizedA 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.booleanisTailrecSignifies that the corresponding function is `tailrec`.KotlinModalityFlagsmodalityKotlinVisibilityFlagsvisibility
-
构造器概要
构造器 构造器 说明 KotlinFunctionFlags(KotlinVisibilityFlags visibility, KotlinModalityFlags modality)
-
-
-
字段详细资料
-
visibility
public final KotlinVisibilityFlags visibility
-
modality
public final KotlinModalityFlags modality
-
isDeclaration
public boolean isDeclaration
A member kind flag, signifying that the corresponding function is explicitly declared in the containing class.
-
isFakeOverride
public boolean isFakeOverride
A 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 isDelegation
A 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 isSynthesized
A 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 isOperator
Signifies that the corresponding function is `operator`.
-
isInfix
public boolean isInfix
Signifies that the corresponding function is `infix`.
-
isInline
public boolean isInline
Signifies that the corresponding function is `inline`.
-
isTailrec
public boolean isTailrec
Signifies that the corresponding function is `tailrec`.
-
isExternal
public boolean isExternal
Signifies that the corresponding function is `external`.
-
isSuspend
public boolean isSuspend
Signifies that the corresponding function is `suspend`.
-
isExpect
public boolean isExpect
Signifies that the corresponding function is `expect`.
-
hasAnnotationsInBytecode
public boolean hasAnnotationsInBytecode
Indicates 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 public boolean hasAnnotations
已过时。
-
-
构造器详细资料
-
KotlinFunctionFlags
public KotlinFunctionFlags(KotlinVisibilityFlags visibility, KotlinModalityFlags modality)
-
-