Package org.faktorips.runtime.model.type
Class TypeHierarchyVisitor
- java.lang.Object
-
- org.faktorips.runtime.model.type.TypeHierarchyVisitor
-
public abstract class TypeHierarchyVisitor extends java.lang.ObjectA 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 Constructor Description TypeHierarchyVisitor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidvisitHierarchy(Type type)Visits the given type and all it's super types.abstract booleanvisitType(Type type)Visits the given type.
-
-
-
Method Detail
-
visitHierarchy
public void visitHierarchy(Type type)
Visits the given type and all it's super types. Does nothing if the type isnull.
-
visitType
public abstract boolean visitType(Type type)
Visits the given type.- Parameters:
type- The type to visit.- Returns:
trueif the visitor should continue to visit the supertypes,falseif not.
-
-