Interface ExecutableMethod<T,​R>

  • Type Parameters:
    T - The declaring type
    R - The result of the method call
    All Superinterfaces:
    io.micronaut.core.annotation.AnnotatedElement, io.micronaut.core.annotation.AnnotationMetadata, io.micronaut.core.annotation.AnnotationMetadataDelegate, io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.naming.Described, io.micronaut.core.type.Executable<T,​R>, MethodReference<T,​R>, io.micronaut.core.naming.Named
    All Known Subinterfaces:
    BeanDefinitionMethodReference<T,​R>, DelegatingExecutableMethod<T,​R>
    All Known Implementing Classes:
    AbstractExecutableBeanMethod, AbstractExecutableMethod

    public interface ExecutableMethod<T,​R>
    extends io.micronaut.core.type.Executable<T,​R>, MethodReference<T,​R>, io.micronaut.core.naming.Described

    An executable method is a compile time produced invocation of a method call. Avoiding the use of reflection and allowing the JIT to optimize the call

    Since:
    1.0
    • Field Summary

      • Fields inherited from interface io.micronaut.core.annotation.AnnotationMetadata

        CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBER
      • Fields inherited from interface io.micronaut.core.annotation.AnnotationSource

        EMPTY
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.String getDescription()  
      default java.lang.String getDescription​(boolean simple)
      Get the method description.
      default boolean isAbstract()
      Defines whether the method is abstract.
      default boolean isSuspend()
      Defines whether the method is Kotlin suspend function.
      • Methods inherited from interface io.micronaut.core.annotation.AnnotatedElement

        isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullable
      • Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadata

        getAnnotationValuesByName, getAnnotationValuesByStereotype, getDeclaredAnnotationValuesByName, getValues, hasDeclaredStereotype, isAnnotationPresent, isDeclaredAnnotationPresent
      • Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataDelegate

        booleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByType, getDeclaredMetadata, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getStereotypeAnnotationNames, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues, stringValues, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
      • Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider

        getAnnotationMetadata
      • Methods inherited from interface io.micronaut.core.type.Executable

        getArguments, getDeclaringType, invoke
    • Method Detail

      • isAbstract

        default boolean isAbstract()
        Defines whether the method is abstract.
        Returns:
        Is the method abstract.
        Since:
        1.2.3
      • isSuspend

        default boolean isSuspend()
        Defines whether the method is Kotlin suspend function.
        Returns:
        Is the method Kotlin suspend function.
        Since:
        1.3.0
      • getDescription

        default java.lang.String getDescription​(boolean simple)
        Get the method description.
        Specified by:
        getDescription in interface io.micronaut.core.naming.Described
        Parameters:
        simple - If simple type names are to be used
        Returns:
        The method description
      • getDescription

        default java.lang.String getDescription()
        Specified by:
        getDescription in interface io.micronaut.core.naming.Described