
public class Executables extends Object
ExecutableElements.| Modifier and Type | Method and Description |
|---|---|
static List<ExecutableElement> |
getAllEnclosedExecutableElements(Elements elementUtils,
TypeElement element)
Finds all executable elements within the given type element, including executable elements defined in super
classes and implemented interfaces.
|
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) |
public static boolean isFinal(Accessor accessor)
public static boolean isDefaultMethod(ExecutableElement method)
public static List<ExecutableElement> getAllEnclosedExecutableElements(Elements elementUtils, TypeElement element)
Object,
implementations of Object.equals(Object) and private methods are ignoredelementUtils - element helperelement - the element to inspectpublic static boolean isLifecycleCallbackMethod(ExecutableElement executableElement)
executableElement - the element to checktrue, if the executable element is a method annotated with @BeforeMapping or
@AfterMappingpublic static boolean isAfterMappingMethod(ExecutableElement executableElement)
executableElement - the element to checktrue, if the executable element is a method annotated with @AfterMappingpublic static boolean isBeforeMappingMethod(ExecutableElement executableElement)
executableElement - the element to checktrue, if the executable element is a method annotated with @BeforeMappingCopyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.