Package org.faktorips.runtime.model.type
Class TypeHierarchyVisitor
java.lang.Object
org.faktorips.runtime.model.type.TypeHierarchyVisitor
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvisitHierarchy(Type type) Visits the given type and all it's super types.abstract booleanVisits the given type.
-
Constructor Details
-
TypeHierarchyVisitor
public TypeHierarchyVisitor()
-
-
Method Details
-
visitHierarchy
Visits the given type and all it's super types. Does nothing if the type isnull. -
visitType
Visits the given type.- Parameters:
type- The type to visit.- Returns:
trueif the visitor should continue to visit the supertypes,falseif not.
-