Class Type.TypeVarMatcher
- java.lang.Object
-
- javax.lang.model.util.AbstractTypeVisitor6<R,P>
-
- javax.lang.model.util.SimpleTypeVisitor6<R,P>
-
- javax.lang.model.util.SimpleTypeVisitor7<R,P>
-
- javax.lang.model.util.SimpleTypeVisitor8<Type.ResolvedPair,Type>
-
- org.mapstruct.ap.internal.model.common.Type.TypeVarMatcher
-
- All Implemented Interfaces:
javax.lang.model.type.TypeVisitor<Type.ResolvedPair,Type>
- Enclosing class:
- Type
private static class Type.TypeVarMatcher extends javax.lang.model.util.SimpleTypeVisitor8<Type.ResolvedPair,Type>
-
-
Field Summary
Fields Modifier and Type Field Description private TypeFactorytypeFactoryprivate TypeUtilstypesprivate TypetypeToMatch
-
Constructor Summary
Constructors Constructor Description TypeVarMatcher(TypeFactory typeFactory, TypeUtils types, Type typeToMatch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanisJavaLangObject(javax.lang.model.type.TypeMirror type)Type.ResolvedPairvisitArray(javax.lang.model.type.ArrayType parameterized, Type declared)Type.ResolvedPairvisitDeclared(javax.lang.model.type.DeclaredType parameterized, Type declared)Type.ResolvedPairvisitTypeVariable(javax.lang.model.type.TypeVariable parameterized, Type declared)Type.ResolvedPairvisitWildcard(javax.lang.model.type.WildcardType parameterized, Type declared)If ? extends SomeTime equals the boundary set in typeVarToMatch (NOTE: you can't compare the wildcard itself) then return a result;
-
-
-
Field Detail
-
typeFactory
private final TypeFactory typeFactory
-
typeToMatch
private final Type typeToMatch
-
types
private final TypeUtils types
-
-
Constructor Detail
-
TypeVarMatcher
TypeVarMatcher(TypeFactory typeFactory, TypeUtils types, Type typeToMatch)
- Parameters:
typeFactory- factorytypes- type utilstypeToMatch- the typeVar or wildcard with typeVar bound
-
-
Method Detail
-
visitTypeVariable
public Type.ResolvedPair visitTypeVariable(javax.lang.model.type.TypeVariable parameterized, Type declared)
- Specified by:
visitTypeVariablein interfacejavax.lang.model.type.TypeVisitor<Type.ResolvedPair,Type>- Overrides:
visitTypeVariablein classjavax.lang.model.util.SimpleTypeVisitor6<Type.ResolvedPair,Type>
-
visitWildcard
public Type.ResolvedPair visitWildcard(javax.lang.model.type.WildcardType parameterized, Type declared)
If ? extends SomeTime equals the boundary set in typeVarToMatch (NOTE: you can't compare the wildcard itself) then return a result;- Specified by:
visitWildcardin interfacejavax.lang.model.type.TypeVisitor<Type.ResolvedPair,Type>- Overrides:
visitWildcardin classjavax.lang.model.util.SimpleTypeVisitor6<Type.ResolvedPair,Type>
-
visitArray
public Type.ResolvedPair visitArray(javax.lang.model.type.ArrayType parameterized, Type declared)
- Specified by:
visitArrayin interfacejavax.lang.model.type.TypeVisitor<Type.ResolvedPair,Type>- Overrides:
visitArrayin classjavax.lang.model.util.SimpleTypeVisitor6<Type.ResolvedPair,Type>
-
visitDeclared
public Type.ResolvedPair visitDeclared(javax.lang.model.type.DeclaredType parameterized, Type declared)
- Specified by:
visitDeclaredin interfacejavax.lang.model.type.TypeVisitor<Type.ResolvedPair,Type>- Overrides:
visitDeclaredin classjavax.lang.model.util.SimpleTypeVisitor6<Type.ResolvedPair,Type>
-
isJavaLangObject
private boolean isJavaLangObject(javax.lang.model.type.TypeMirror type)
-
-