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:
getPackageElementin interfaceElements
-
getTypeElement
public TypeElement getTypeElement(CharSequence name)
- Specified by:
getTypeElementin interfaceElements
-
getElementValuesWithDefaults
public Map<? extends ExecutableElement,? extends AnnotationValue> getElementValuesWithDefaults(AnnotationMirror a)
- Specified by:
getElementValuesWithDefaultsin interfaceElements
-
getDocComment
public String getDocComment(Element e)
- Specified by:
getDocCommentin interfaceElements
-
isDeprecated
public boolean isDeprecated(Element e)
- Specified by:
isDeprecatedin interfaceElements
-
getBinaryName
public Name getBinaryName(TypeElement type)
- Specified by:
getBinaryNamein interfaceElements
-
getPackageOf
public PackageElement getPackageOf(Element type)
- Specified by:
getPackageOfin interfaceElements
-
getAllMembers
public List<? extends Element> getAllMembers(TypeElement type)
- Specified by:
getAllMembersin interfaceElements
-
getAllAnnotationMirrors
public List<? extends AnnotationMirror> getAllAnnotationMirrors(Element e)
- Specified by:
getAllAnnotationMirrorsin interfaceElements
-
overrides
public boolean overrides(ExecutableElement overrider, ExecutableElement overridden, TypeElement type)
-
getConstantExpression
public String getConstantExpression(Object value)
- Specified by:
getConstantExpressionin interfaceElements
-
printElements
public void printElements(Writer w, Element... elements)
- Specified by:
printElementsin interfaceElements
-
getName
public Name getName(CharSequence cs)
-
isFunctionalInterface
public boolean isFunctionalInterface(TypeElement type)
- Specified by:
isFunctionalInterfacein interfaceElements
-
getAllEnclosedExecutableElements
public List<ExecutableElement> getAllEnclosedExecutableElements(TypeElement element)
Description copied from interface:ElementUtilsFinds 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:
getAllEnclosedExecutableElementsin 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:ElementUtilsFinds 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:
getAllEnclosedFieldsin interfaceElementUtils- Parameters:
element- the element to inspect- Returns:
- the executable elements usable in the type
-
replaceTypeElementIfNecessary
protected abstract TypeElement replaceTypeElementIfNecessary(TypeElement element)
-
-