public class Executables extends Object
ExecutableElements.| Modifier and Type | Method and Description |
|---|---|
static List<Accessor> |
getAllEnclosedAccessors(Elements elementUtils,
TypeElement element)
Finds all executable elements/variable elements within the given type element, including executable/variable
elements defined in super classes and implemented interfaces and including the fields in the .
|
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 |
isFieldAccessor(Accessor accessor)
An
Accessor is a field accessor, if it doesn't have an executable element, is public and it is not
static. |
static boolean |
isFinal(Accessor accessor) |
static boolean |
isLifecycleCallbackMethod(ExecutableElement executableElement) |
public static boolean isFieldAccessor(Accessor accessor)
Accessor is a field accessor, if it doesn't have an executable element, is public and it is not
static.accessor - the accessor to ber checkedtrue if the accessor is for a public non static field.public static boolean isFinal(Accessor accessor)
public static boolean isDefaultMethod(ExecutableElement method)
public static List<ExecutableElement> getAllEnclosedExecutableElements(Elements elementUtils, TypeElement element)
Object are ignored, as well as
implementations of Object.equals(Object).elementUtils - element helperelement - the element to inspectpublic static List<Accessor> getAllEnclosedAccessors(Elements elementUtils, TypeElement element)
Object are ignored, as well as implementations of Object.equals(Object).elementUtils - 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–2019. All rights reserved.