Class SubclassValidator
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.SubclassValidator
-
public class SubclassValidator extends java.lang.ObjectHandles the validation of multiple @SubclassMapping annotations on the same method.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<javax.lang.model.type.TypeMirror>handledSubclassesprivate FormattingMessagermessagerprivate TypeUtilstypeUtils
-
Constructor Summary
Constructors Constructor Description SubclassValidator(FormattingMessager messager, TypeUtils typeUtils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValidUsage(javax.lang.model.element.Element e, javax.lang.model.element.AnnotationMirror annotation, javax.lang.model.type.TypeMirror sourceType)
-
-
-
Field Detail
-
messager
private final FormattingMessager messager
-
handledSubclasses
private final java.util.List<javax.lang.model.type.TypeMirror> handledSubclasses
-
typeUtils
private final TypeUtils typeUtils
-
-
Constructor Detail
-
SubclassValidator
public SubclassValidator(FormattingMessager messager, TypeUtils typeUtils)
-
-