Package org.mapstruct.ap.internal.util
Interface ElementUtils
-
- All Superinterfaces:
Elements
- All Known Implementing Classes:
AbstractElementUtilsDecorator
,EclipseElementUtilsDecorator
,JavacElementUtilsDecorator
public interface ElementUtils extends Elements
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.lang.model.util.Elements
Elements.Origin
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ElementUtils
create(ProcessingEnvironment processingEnvironment, VersionInformation info, TypeElement mapperElement)
List<ExecutableElement>
getAllEnclosedExecutableElements(TypeElement element)
Finds all executable elements within the given type element, including executable elements defined in super classes and implemented interfaces.List<VariableElement>
getAllEnclosedFields(TypeElement element)
Finds all variable elements within the given type element, including variable elements defined in super classes and implemented interfaces and including the fields in the .-
Methods inherited from interface javax.lang.model.util.Elements
getAllAnnotationMirrors, getAllMembers, getAllModuleElements, getAllPackageElements, getAllTypeElements, getBinaryName, getConstantExpression, getDocComment, getElementValuesWithDefaults, getModuleElement, getModuleOf, getName, getOrigin, getOrigin, getOrigin, getPackageElement, getPackageElement, getPackageOf, getTypeElement, getTypeElement, hides, isBridge, isDeprecated, isFunctionalInterface, overrides, printElements
-
-
-
-
Method Detail
-
create
static ElementUtils create(ProcessingEnvironment processingEnvironment, VersionInformation info, TypeElement mapperElement)
-
getAllEnclosedExecutableElements
List<ExecutableElement> getAllEnclosedExecutableElements(TypeElement element)
Finds all executable elements within the given type element, including executable elements defined in super classes and implemented interfaces. Methods defined inObject
, implementations ofObject.equals(Object)
and private methods are ignored- Parameters:
element
- the element to inspect- Returns:
- the executable elements usable in the type
-
getAllEnclosedFields
List<VariableElement> getAllEnclosedFields(TypeElement element)
Finds all variable elements within the given type element, including variable elements defined in super classes and implemented interfaces and including the fields in the .- Parameters:
element
- the element to inspect- Returns:
- the executable elements usable in the type
-
-