Class TypeHierarchyVisitor

java.lang.Object
org.faktorips.runtime.model.type.TypeHierarchyVisitor

public abstract class TypeHierarchyVisitor extends 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 Details

    • TypeHierarchyVisitor

      public TypeHierarchyVisitor()
  • Method Details

    • 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.