Class TypeMirrorPairVisitor<R>
java.lang.Object
javax.lang.model.util.AbstractTypeVisitor6<R,TypeMirror>
javax.lang.model.util.SimpleTypeVisitor6<R,TypeMirror>
javax.lang.model.util.SimpleTypeVisitor7<R,TypeMirror>
org.revapi.java.spi.TypeMirrorPairVisitor<R>
- All Implemented Interfaces:
TypeVisitor<R,
TypeMirror>
Similar to
ElementPairVisitor
but 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:
-
Field Summary
Fields inherited from class javax.lang.model.util.SimpleTypeVisitor6
DEFAULT_VALUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected R
defaultMatchAction
(TypeMirror type, TypeMirror otherType) protected R
unmatchedAction
(TypeMirror type, TypeMirror otherType) protected R
visitArray
(ArrayType type, ArrayType otherType) final R
visitArray
(ArrayType type, TypeMirror otherType) protected R
visitDeclared
(DeclaredType type, DeclaredType otherType) final R
visitDeclared
(DeclaredType type, TypeMirror otherType) protected R
visitError
(ErrorType type, ErrorType otherType) final R
visitError
(ErrorType type, TypeMirror otherType) protected R
visitExecutable
(ExecutableType type, ExecutableType otherType) final R
visitExecutable
(ExecutableType type, TypeMirror otherType) protected R
visitIntersection
(IntersectionType type, IntersectionType otherType) final R
visitIntersection
(IntersectionType type, TypeMirror otherType) protected R
visitNoType
(NoType type, NoType otherType) final R
visitNoType
(NoType type, TypeMirror otherType) protected R
final R
visitNull
(NullType type, TypeMirror otherType) protected R
visitPrimitive
(PrimitiveType type, PrimitiveType otherType) final R
visitPrimitive
(PrimitiveType type, TypeMirror otherType) final R
visitTypeVariable
(TypeVariable type, TypeMirror otherType) protected R
visitTypeVariable
(TypeVariable type, TypeVariable otherType) final R
visitUnion
(UnionType type, TypeMirror otherType) protected R
visitUnion
(UnionType type, UnionType otherType) visitUnknown
(TypeMirror type, TypeMirror otherType) final R
visitWildcard
(WildcardType type, TypeMirror otherType) protected R
visitWildcard
(WildcardType type, WildcardType otherType) Methods inherited from class javax.lang.model.util.SimpleTypeVisitor6
defaultAction
Methods inherited from class javax.lang.model.util.AbstractTypeVisitor6
visit, visit
-
Constructor Details
-
TypeMirrorPairVisitor
public TypeMirrorPairVisitor()
-
-
Method Details
-
unmatchedAction
-
defaultMatchAction
-
visitPrimitive
- Specified by:
visitPrimitive
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitPrimitive
in classSimpleTypeVisitor6<R,
TypeMirror>
-
visitPrimitive
-
visitNull
- Specified by:
visitNull
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitNull
in classSimpleTypeVisitor6<R,
TypeMirror>
-
visitNull
-
visitArray
- Specified by:
visitArray
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitArray
in classSimpleTypeVisitor6<R,
TypeMirror>
-
visitArray
-
visitDeclared
- Specified by:
visitDeclared
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitDeclared
in classSimpleTypeVisitor6<R,
TypeMirror>
-
visitDeclared
-
visitError
- Specified by:
visitError
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitError
in classSimpleTypeVisitor6<R,
TypeMirror>
-
visitError
-
visitTypeVariable
- Specified by:
visitTypeVariable
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitTypeVariable
in classSimpleTypeVisitor6<R,
TypeMirror>
-
visitTypeVariable
-
visitWildcard
- Specified by:
visitWildcard
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitWildcard
in classSimpleTypeVisitor6<R,
TypeMirror>
-
visitWildcard
-
visitExecutable
- Specified by:
visitExecutable
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitExecutable
in classSimpleTypeVisitor6<R,
TypeMirror>
-
visitExecutable
-
visitNoType
- Specified by:
visitNoType
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitNoType
in classSimpleTypeVisitor6<R,
TypeMirror>
-
visitNoType
-
visitIntersection
- Specified by:
visitIntersection
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitIntersection
in classAbstractTypeVisitor6<R,
TypeMirror>
-
visitIntersection
-
visitUnion
- Specified by:
visitUnion
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitUnion
in classSimpleTypeVisitor7<R,
TypeMirror>
-
visitUnion
-
visitUnknown
- Specified by:
visitUnknown
in interfaceTypeVisitor<R,
TypeMirror> - Overrides:
visitUnknown
in classAbstractTypeVisitor6<R,
TypeMirror>
-