Package io.micronaut.inject.writer
Class MethodGenUtils
java.lang.Object
io.micronaut.inject.writer.MethodGenUtils
The writer utils.
- Since:
- 4.7
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
calculateNumberOfKotlinDefaultsMasks
(List<ParameterElement> parameters) The number of Kotlin defaults masks.static boolean
hasKotlinDefaultsParameters
(List<ParameterElement> arguments) Checks if parameter include Kotlin defaults.static io.micronaut.sourcegen.model.ExpressionDef
invokeBeanConstructor
(MethodElement constructor, boolean requiresReflection, boolean allowKotlinDefaults, @Nullable List<? extends io.micronaut.sourcegen.model.ExpressionDef> values, @Nullable List<? extends io.micronaut.sourcegen.model.ExpressionDef> hasValuesExpressions) static io.micronaut.sourcegen.model.ExpressionDef
invokeBeanConstructor
(MethodElement constructor, boolean allowKotlinDefaults, @Nullable List<? extends io.micronaut.sourcegen.model.ExpressionDef> values) static io.micronaut.sourcegen.model.ExpressionDef
invokeKotlinDefaultMethod
(ClassElement declaringType, MethodElement methodElement, io.micronaut.sourcegen.model.ExpressionDef target, List<? extends io.micronaut.sourcegen.model.ExpressionDef> values)
-
Method Details
-
calculateNumberOfKotlinDefaultsMasks
The number of Kotlin defaults masks.- Parameters:
parameters
- The parameters- Returns:
- The number if masks
- Since:
- 4.6.2
-
hasKotlinDefaultsParameters
Checks if parameter include Kotlin defaults.- Parameters:
arguments
- The arguments- Returns:
- true if include
- Since:
- 4.6.2
-
invokeKotlinDefaultMethod
public static io.micronaut.sourcegen.model.ExpressionDef invokeKotlinDefaultMethod(ClassElement declaringType, MethodElement methodElement, io.micronaut.sourcegen.model.ExpressionDef target, List<? extends io.micronaut.sourcegen.model.ExpressionDef> values) -
invokeBeanConstructor
public static io.micronaut.sourcegen.model.ExpressionDef invokeBeanConstructor(MethodElement constructor, boolean allowKotlinDefaults, @Nullable @Nullable List<? extends io.micronaut.sourcegen.model.ExpressionDef> values) -
invokeBeanConstructor
public static io.micronaut.sourcegen.model.ExpressionDef invokeBeanConstructor(MethodElement constructor, boolean requiresReflection, boolean allowKotlinDefaults, @Nullable @Nullable List<? extends io.micronaut.sourcegen.model.ExpressionDef> values, @Nullable @Nullable List<? extends io.micronaut.sourcegen.model.ExpressionDef> hasValuesExpressions)
-