Package org.mapstruct.ap.internal.util
Class AbstractElementUtilsDecorator
- java.lang.Object
-
- org.mapstruct.ap.internal.util.AbstractElementUtilsDecorator
-
- All Implemented Interfaces:
Elements
,ElementUtils
- Direct Known Subclasses:
EclipseElementUtilsDecorator
,JavacElementUtilsDecorator
public abstract class AbstractElementUtilsDecorator extends Object implements ElementUtils
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.lang.model.util.Elements
Elements.Origin
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.lang.model.util.Elements
getAllModuleElements, getAllPackageElements, getAllTypeElements, getModuleElement, getModuleOf, getOrigin, getOrigin, getOrigin, getPackageElement, getTypeElement, isBridge
-
-
-
-
Method Detail
-
getPackageElement
public PackageElement getPackageElement(CharSequence name)
- Specified by:
getPackageElement
in interfaceElements
-
getTypeElement
public TypeElement getTypeElement(CharSequence name)
- Specified by:
getTypeElement
in interfaceElements
-
getElementValuesWithDefaults
public Map<? extends ExecutableElement,? extends AnnotationValue> getElementValuesWithDefaults(AnnotationMirror a)
- Specified by:
getElementValuesWithDefaults
in interfaceElements
-
getDocComment
public String getDocComment(Element e)
- Specified by:
getDocComment
in interfaceElements
-
isDeprecated
public boolean isDeprecated(Element e)
- Specified by:
isDeprecated
in interfaceElements
-
getBinaryName
public Name getBinaryName(TypeElement type)
- Specified by:
getBinaryName
in interfaceElements
-
getPackageOf
public PackageElement getPackageOf(Element type)
- Specified by:
getPackageOf
in interfaceElements
-
getAllMembers
public List<? extends Element> getAllMembers(TypeElement type)
- Specified by:
getAllMembers
in interfaceElements
-
getAllAnnotationMirrors
public List<? extends AnnotationMirror> getAllAnnotationMirrors(Element e)
- Specified by:
getAllAnnotationMirrors
in interfaceElements
-
overrides
public boolean overrides(ExecutableElement overrider, ExecutableElement overridden, TypeElement type)
-
getConstantExpression
public String getConstantExpression(Object value)
- Specified by:
getConstantExpression
in interfaceElements
-
printElements
public void printElements(Writer w, Element... elements)
- Specified by:
printElements
in interfaceElements
-
getName
public Name getName(CharSequence cs)
-
isFunctionalInterface
public boolean isFunctionalInterface(TypeElement type)
- Specified by:
isFunctionalInterface
in interfaceElements
-
getAllEnclosedExecutableElements
public List<ExecutableElement> getAllEnclosedExecutableElements(TypeElement element)
Description copied from interface:ElementUtils
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- Specified by:
getAllEnclosedExecutableElements
in interfaceElementUtils
- Parameters:
element
- the element to inspect- Returns:
- the executable elements usable in the type
-
getAllEnclosedFields
public List<VariableElement> getAllEnclosedFields(TypeElement element)
Description copied from interface:ElementUtils
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 .- Specified by:
getAllEnclosedFields
in interfaceElementUtils
- Parameters:
element
- the element to inspect- Returns:
- the executable elements usable in the type
-
replaceTypeElementIfNecessary
protected abstract TypeElement replaceTypeElementIfNecessary(TypeElement element)
-
-