Package org.mapstruct.ap.internal.util
Class AbstractTypeUtilsDecorator
java.lang.Object
org.mapstruct.ap.internal.util.AbstractTypeUtilsDecorator
- Direct Known Subclasses:
EclipseTypeUtilsDecorator,JavacTypeUtilsDecorator
Replaces the usage of
TypeUtils within MapStruct by delegating to the original implementation or to our
specific workarounds if necessary.- Author:
- Andreas Gudian
-
Method Summary
Modifier and TypeMethodDescriptionasMemberOf(DeclaredType containing, Element element) booleancontains(TypeMirror t1, TypeMirror t2) List<? extends TypeMirror> getArrayType(TypeMirror componentType) getDeclaredType(TypeElement typeElem, TypeMirror... typeArgs) getDeclaredType(DeclaredType containing, TypeElement typeElem, TypeMirror... typeArgs) getPrimitiveType(TypeKind kind) getWildcardType(TypeMirror extendsBound, TypeMirror superBound) booleanisAssignable(TypeMirror t1, TypeMirror t2) booleanisSameType(TypeMirror t1, TypeMirror t2) booleanbooleanisSubtype(TypeMirror t1, TypeMirror t2) booleanisSubtypeErased(TypeMirror t1, TypeMirror t2)
-
Method Details
-
asElement
-
isSameType
- Specified by:
isSameTypein interfaceTypes
-
isSubtype
-
isAssignable
- Specified by:
isAssignablein interfaceTypes
-
contains
-
isSubsignature
- Specified by:
isSubsignaturein interfaceTypes
-
directSupertypes
- Specified by:
directSupertypesin interfaceTypes
-
erasure
-
boxedClass
- Specified by:
boxedClassin interfaceTypes
-
unboxedType
- Specified by:
unboxedTypein interfaceTypes
-
capture
-
getPrimitiveType
- Specified by:
getPrimitiveTypein interfaceTypes
-
getNullType
- Specified by:
getNullTypein interfaceTypes
-
getNoType
-
getArrayType
- Specified by:
getArrayTypein interfaceTypes
-
getWildcardType
- Specified by:
getWildcardTypein interfaceTypes
-
getDeclaredType
- Specified by:
getDeclaredTypein interfaceTypes
-
getDeclaredType
public DeclaredType getDeclaredType(DeclaredType containing, TypeElement typeElem, TypeMirror... typeArgs) - Specified by:
getDeclaredTypein interfaceTypes
-
asMemberOf
- Specified by:
asMemberOfin interfaceTypes
-
isSubtypeErased
- Specified by:
isSubtypeErasedin interfaceTypeUtils
-