Class TypeMirrorPairVisitor<R>

  • All Implemented Interfaces:
    TypeVisitor<R,​TypeMirror>

    public class TypeMirrorPairVisitor<R>
    extends SimpleTypeVisitor7<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:
    ElementPairVisitor