Package org.mapstruct.ap.internal.util
Class Executables
- java.lang.Object
-
- org.mapstruct.ap.internal.util.Executables
-
public class Executables extends Object
Provides functionality aroundExecutableElement
s.- Author:
- Gunnar Morling
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isAfterMappingMethod(ExecutableElement executableElement)
static boolean
isBeforeMappingMethod(ExecutableElement executableElement)
static boolean
isDefaultMethod(ExecutableElement method)
static boolean
isFinal(Accessor accessor)
static boolean
isLifecycleCallbackMethod(ExecutableElement executableElement)
-
-
-
Method Detail
-
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
-
-