Class Executables

java.lang.Object
org.mapstruct.ap.internal.util.Executables

public class Executables extends Object
Provides functionality around ExecutableElements.
Author:
Gunnar Morling
  • Method Details

    • isFinal

      public static boolean isFinal(Accessor accessor)
    • isDefaultMethod

      public static boolean isDefaultMethod(ExecutableElement method)
    • isLifecycleCallbackMethod

      public static boolean isLifecycleCallbackMethod(ExecutableElement executableElement)
      Parameters:
      executableElement - the element to check
      Returns:
      true, if the executable element is a method annotated with @BeforeMapping or @AfterMapping
    • isAfterMappingMethod

      public static boolean isAfterMappingMethod(ExecutableElement executableElement)
      Parameters:
      executableElement - the element to check
      Returns:
      true, if the executable element is a method annotated with @AfterMapping
    • isBeforeMappingMethod

      public static boolean isBeforeMappingMethod(ExecutableElement executableElement)
      Parameters:
      executableElement - the element to check
      Returns:
      true, if the executable element is a method annotated with @BeforeMapping