/******************************************************************************* * Copyright (c) 2010, 2015 Willink Transformations and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * E.D.Willink - Initial API and implementation *******************************************************************************/ package org.eclipse.ocl.pivot.internal.evaluation; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.ocl.pivot.evaluation.EvaluationVisitor; /** * A visitor that decorates another {@link EvaluationVisitor}, to intercept * invocations of the <code>visitXxx(...)</code> methods. By default, every * visitation is simply delegated to the decorated visitor. Subclasses may * extend these delegations with any additional behaviour that is required, * even replacing calls to the delegate where necessary. * <p> * This class works together with the {@link AbstractEvaluationVisitor} to * ensure that recursive <code>visitXxx()</code> calls are correctly intercepted * by me (and not just implemented within the decorated visitor). Moreover, * this works with decorators nested to any depth. */ public abstract class EvaluationVisitorDecorator extends AbstractEvaluationVisitorDecorator<EvaluationVisitor> { protected EvaluationVisitorDecorator(@NonNull EvaluationVisitor decorated) { super(decorated); } }