org.faktorips.runtime.modeltype
Class TypeHierarchyVisitor
java.lang.Object
org.faktorips.runtime.modeltype.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 explizit
type hierarchy class, not the typicall implementation with accept/visit methods, but still a
visitor.
- Author:
- Jan Ortmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeHierarchyVisitor
public TypeHierarchyVisitor()
visitHierarchy
public void visitHierarchy(IModelType type)
- Visits the given type and all it's super types. Does nothing if the type is
null
.
visitType
public abstract boolean visitType(IModelType 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.
Copyright © 2015. All rights reserved.