Class MethodGenUtils

java.lang.Object
io.micronaut.inject.writer.MethodGenUtils

@Internal public final class MethodGenUtils extends Object
The writer utils.
Since:
4.7
Author:
Denis Stepanov
  • Method Details

    • calculateNumberOfKotlinDefaultsMasks

      public static int calculateNumberOfKotlinDefaultsMasks(List<ParameterElement> parameters)
      The number of Kotlin defaults masks.
      Parameters:
      parameters - The parameters
      Returns:
      The number if masks
      Since:
      4.6.2
    • hasKotlinDefaultsParameters

      public static boolean hasKotlinDefaultsParameters(List<ParameterElement> arguments)
      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)