Package org.revapi.java.spi
Class TypeMirrorPairVisitor<R>
- java.lang.Object
-
- javax.lang.model.util.AbstractTypeVisitor6<R,P>
-
- javax.lang.model.util.SimpleTypeVisitor6<R,P>
-
- javax.lang.model.util.SimpleTypeVisitor7<R,TypeMirror>
-
- org.revapi.java.spi.TypeMirrorPairVisitor<R>
-
- All Implemented Interfaces:
TypeVisitor<R,TypeMirror>
public class TypeMirrorPairVisitor<R> extends SimpleTypeVisitor7<R,TypeMirror>
Similar toElementPairVisitorbut provides a visitor to visit two type mirrors of the same type.Typical usage:
javax.lang.model.type.TypeMirror t1 = ...; javax.lang.model.type.TypeMirror t2 = ...; t1.accept(new TypeMirrorPairVisitor<Void>() { protected Void visitArray(ArrayType t1, ArrayType t2) { ... } }, t2);- Since:
- 0.1
- Author:
- Lukas Krejci
- See Also:
ElementPairVisitor
-
-
Field Summary
-
Fields inherited from class javax.lang.model.util.SimpleTypeVisitor6
DEFAULT_VALUE
-
-
Constructor Summary
Constructors Constructor Description TypeMirrorPairVisitor()
-
Method Summary
-
Methods inherited from class javax.lang.model.util.SimpleTypeVisitor6
defaultAction
-
Methods inherited from class javax.lang.model.util.AbstractTypeVisitor6
visit, visit
-
-
-
-
Method Detail
-
unmatchedAction
protected R unmatchedAction(@Nonnull TypeMirror type, @Nullable TypeMirror otherType)
-
defaultMatchAction
protected R defaultMatchAction(@Nonnull TypeMirror type, @Nullable TypeMirror otherType)
-
visitPrimitive
public final R visitPrimitive(PrimitiveType type, TypeMirror otherType)
- Specified by:
visitPrimitivein interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitPrimitivein classSimpleTypeVisitor6<R,TypeMirror>
-
visitPrimitive
protected R visitPrimitive(PrimitiveType type, PrimitiveType otherType)
-
visitNull
public final R visitNull(NullType type, TypeMirror otherType)
- Specified by:
visitNullin interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitNullin classSimpleTypeVisitor6<R,TypeMirror>
-
visitArray
public final R visitArray(ArrayType type, TypeMirror otherType)
- Specified by:
visitArrayin interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitArrayin classSimpleTypeVisitor6<R,TypeMirror>
-
visitDeclared
public final R visitDeclared(DeclaredType type, TypeMirror otherType)
- Specified by:
visitDeclaredin interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitDeclaredin classSimpleTypeVisitor6<R,TypeMirror>
-
visitDeclared
protected R visitDeclared(DeclaredType type, DeclaredType otherType)
-
visitError
public final R visitError(ErrorType type, TypeMirror otherType)
- Specified by:
visitErrorin interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitErrorin classSimpleTypeVisitor6<R,TypeMirror>
-
visitTypeVariable
public final R visitTypeVariable(TypeVariable type, TypeMirror otherType)
- Specified by:
visitTypeVariablein interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitTypeVariablein classSimpleTypeVisitor6<R,TypeMirror>
-
visitTypeVariable
protected R visitTypeVariable(TypeVariable type, TypeVariable otherType)
-
visitWildcard
public final R visitWildcard(WildcardType type, TypeMirror otherType)
- Specified by:
visitWildcardin interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitWildcardin classSimpleTypeVisitor6<R,TypeMirror>
-
visitWildcard
protected R visitWildcard(WildcardType type, WildcardType otherType)
-
visitExecutable
public final R visitExecutable(ExecutableType type, TypeMirror otherType)
- Specified by:
visitExecutablein interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitExecutablein classSimpleTypeVisitor6<R,TypeMirror>
-
visitExecutable
protected R visitExecutable(ExecutableType type, ExecutableType otherType)
-
visitNoType
public final R visitNoType(NoType type, TypeMirror otherType)
- Specified by:
visitNoTypein interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitNoTypein classSimpleTypeVisitor6<R,TypeMirror>
-
visitIntersection
public final R visitIntersection(IntersectionType type, TypeMirror otherType)
- Specified by:
visitIntersectionin interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitIntersectionin classAbstractTypeVisitor6<R,TypeMirror>
-
visitIntersection
protected R visitIntersection(IntersectionType type, IntersectionType otherType)
-
visitUnion
public final R visitUnion(UnionType type, TypeMirror otherType)
- Specified by:
visitUnionin interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitUnionin classSimpleTypeVisitor7<R,TypeMirror>
-
visitUnknown
public R visitUnknown(TypeMirror type, TypeMirror otherType)
- Specified by:
visitUnknownin interfaceTypeVisitor<R,TypeMirror>- Overrides:
visitUnknownin classAbstractTypeVisitor6<R,TypeMirror>
-
-