| /******************************************************************************* |
| * Copyright (c) 2013, 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 |
| * |
| * </copyright> |
| * |
| * This code is auto-generated |
| * from: org.eclipse.qvtd.pivot.qvtbase/model/QVTbase.genmodel |
| * |
| * Only the copyright statement is editable. |
| *******************************************************************************/ |
| package org.eclipse.qvtd.pivot.qvtbase.util; |
| |
| import java.lang.Boolean; |
| import org.eclipse.jdt.annotation.NonNull; |
| import org.eclipse.jdt.annotation.Nullable; |
| import org.eclipse.ocl.pivot.internal.utilities.AS2XMIid; |
| import org.eclipse.ocl.pivot.utilities.AS2XMIidVisitor; |
| |
| /** |
| * An AbstractQVTbaseAS2XMIidVisitor provides a default implementation for each |
| * visitXxx method that delegates to the visitYyy method of the first |
| * super class, (or transitively its first super class' first super class |
| * until a non-interface super-class is found). In the absence of any |
| * suitable first super class, the method delegates to visiting(). |
| */ |
| public abstract class AbstractQVTbaseAS2XMIidVisitor |
| extends AS2XMIidVisitor |
| implements QVTbaseVisitor<Boolean> |
| { |
| /** |
| * Initializes me with an initial value for my result. |
| * |
| * @param context my initial result value |
| */ |
| protected AbstractQVTbaseAS2XMIidVisitor(@NonNull AS2XMIid context) { |
| super(context); |
| } |
| |
| @Override |
| public @Nullable Boolean visitBaseModel(@NonNull org.eclipse.qvtd.pivot.qvtbase.BaseModel object) { |
| return visitModel(object); |
| } |
| |
| @Override |
| public @Nullable Boolean visitDomain(@NonNull org.eclipse.qvtd.pivot.qvtbase.Domain object) { |
| return visitNamedElement(object); |
| } |
| |
| @Override |
| public @Nullable Boolean visitFunction(@NonNull org.eclipse.qvtd.pivot.qvtbase.Function object) { |
| return visitOperation(object); |
| } |
| |
| @Override |
| public @Nullable Boolean visitFunctionParameter(@NonNull org.eclipse.qvtd.pivot.qvtbase.FunctionParameter object) { |
| return visitParameter(object); |
| } |
| |
| @Override |
| public @Nullable Boolean visitPattern(@NonNull org.eclipse.qvtd.pivot.qvtbase.Pattern object) { |
| return visitElement(object); |
| } |
| |
| @Override |
| public @Nullable Boolean visitPredicate(@NonNull org.eclipse.qvtd.pivot.qvtbase.Predicate object) { |
| return visitElement(object); |
| } |
| |
| @Override |
| public @Nullable Boolean visitRule(@NonNull org.eclipse.qvtd.pivot.qvtbase.Rule object) { |
| return visitNamedElement(object); |
| } |
| |
| @Override |
| public @Nullable Boolean visitTransformation(@NonNull org.eclipse.qvtd.pivot.qvtbase.Transformation object) { |
| return visitClass(object); |
| } |
| |
| @Override |
| public @Nullable Boolean visitTypedModel(@NonNull org.eclipse.qvtd.pivot.qvtbase.TypedModel object) { |
| return visitNamedElement(object); |
| } |
| } |