Package org.faktorips.runtime
Class GenericVisitorSupport
- java.lang.Object
-
- org.faktorips.runtime.GenericVisitorSupport
-
- All Implemented Interfaces:
IVisitorSupport
public class GenericVisitorSupport extends java.lang.Object implements IVisitorSupport
- Since:
- 21.6
- Implementation Note:
- This implementation uses generic access via the
IpsModel, so generating your classes with visitor support will be more efficient if you have access to the project's generator settings.
-
-
Constructor Summary
Constructors Constructor Description GenericVisitorSupport(IModelObject modelObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(IModelObjectVisitor visitor)Accepts the given visitor.
-
-
-
Constructor Detail
-
GenericVisitorSupport
public GenericVisitorSupport(IModelObject modelObject)
-
-
Method Detail
-
accept
public boolean accept(IModelObjectVisitor visitor)
Description copied from interface:IVisitorSupportAccepts the given visitor. This results in a call to the visitor's visit method for this object and, if it returnstrue, to all its children recursively.- Specified by:
acceptin interfaceIVisitorSupport- Parameters:
visitor- the visitor to accept- Returns:
- the result of the visitor's visit method
- See Also:
IModelObjectVisitor.visit(IModelObject)
-
-