Class TypeHierarchyVisitor


  • public abstract class TypeHierarchyVisitor
    extends java.lang.Object
    A visitor that allows to implement functions on a type's hierarchy. As we don't have an explicit type hierarchy class, not the typical implementation with accept/visit methods, but still a visitor.
    Author:
    Jan Ortmann
    • Constructor Detail

      • TypeHierarchyVisitor

        public TypeHierarchyVisitor()
    • Method Detail

      • visitHierarchy

        public void visitHierarchy​(Type type)
        Visits the given type and all it's super types. Does nothing if the type is null .
      • visitType

        public abstract boolean visitType​(Type type)
        Visits the given type.
        Parameters:
        type - The type to visit.
        Returns:
        true if the visitor should continue to visit the supertypes, false if not.