Package proguard.classfile.kotlin.flags
Class KotlinValueParameterFlags
java.lang.Object
proguard.classfile.kotlin.flags.KotlinValueParameterFlags
- All Implemented Interfaces:
KotlinFlags
Flags for Kotlin value parameters.
No valid visibility or modality flags.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanDeprecated.booleanIndicates that the corresponding value parameter has at least one annotation in the JVM bytecode.booleanSignifies that the corresponding value parameter declares a default value.booleanSignifies that the corresponding value parameter is `crossinline`.booleanSignifies that the corresponding value parameter is `noinline`. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
hasDefaultValue
public boolean hasDefaultValueSignifies that the corresponding value parameter declares a default value. Note that the default value itself can be a complex expression and is not available via metadata. Also note that in case of an override of a parameter with default value, the parameter in the derived method does _not_ declare the default value ([DECLARES_DEFAULT_VALUE] == false), but the parameter is still optional at the call site because the default value from the base method is used. -
isCrossInline
public boolean isCrossInlineSignifies that the corresponding value parameter is `crossinline`. -
isNoInline
public boolean isNoInlineSignifies that the corresponding value parameter is `noinline`. -
hasAnnotationsInBytecode
public boolean hasAnnotationsInBytecodeIndicates that the corresponding value parameter 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
-
KotlinValueParameterFlags
public KotlinValueParameterFlags()
-