Package org.mapstruct.ap.internal.util
Class Executables
- java.lang.Object
-
- org.mapstruct.ap.internal.util.Executables
-
public class Executables extends Object
Provides functionality aroundExecutableElements.- Author:
- Gunnar Morling
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisAfterMappingMethod(ExecutableElement executableElement)static booleanisBeforeMappingMethod(ExecutableElement executableElement)static booleanisDefaultMethod(ExecutableElement method)static booleanisFinal(Accessor accessor)static booleanisLifecycleCallbackMethod(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@BeforeMappingor@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
-
-