Class Types.TypeVisitor

  • Enclosing class:
    Types

    private abstract static class Types.TypeVisitor
    extends java.lang.Object
    Visitor pattern to evaluate Type.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set<java.lang.reflect.Type> visited  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TypeVisitor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void visit​(java.lang.reflect.Type... types)
      Visits the given types.
      (package private) void visitClass​(java.lang.Class<?> t)  
      (package private) void visitGenericArrayType​(java.lang.reflect.GenericArrayType t)  
      (package private) void visitParameterizedType​(java.lang.reflect.ParameterizedType t)  
      (package private) void visitTypeVariable​(java.lang.reflect.TypeVariable<?> t)  
      (package private) void visitWildcardType​(java.lang.reflect.WildcardType t)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • visited

        private final java.util.Set<java.lang.reflect.Type> visited
    • Constructor Detail

      • TypeVisitor

        private TypeVisitor()
    • Method Detail

      • visit

        public final void visit​(java.lang.reflect.Type... types)
        Visits the given types. Null types are ignored. This allows subclasses to call visit(parameterizedType.getOwnerType()) safely without having to check nulls.
      • visitClass

        void visitClass​(java.lang.Class<?> t)
      • visitGenericArrayType

        void visitGenericArrayType​(java.lang.reflect.GenericArrayType t)
      • visitParameterizedType

        void visitParameterizedType​(java.lang.reflect.ParameterizedType t)
      • visitTypeVariable

        void visitTypeVariable​(java.lang.reflect.TypeVariable<?> t)
      • visitWildcardType

        void visitWildcardType​(java.lang.reflect.WildcardType t)