blob: b768e57b5a1939dd793ce6896d8092246b779763 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* E.D.Willink - initial API and implementation
*******************************************************************************/
package org.eclipse.ocl.examples.build.xtend
import org.eclipse.emf.ecore.EPackage
import org.eclipse.emf.codegen.ecore.genmodel.GenPackage
class GenerateCGVisitors extends GenerateVisitorsXtend
{
override void generateVisitors(/*@NonNull*/ GenPackage genPackage) {
var EPackage ePackage = genPackage.getEcorePackage();
ePackage.generateAbstractExtendingVisitor();
ePackage.generateAbstractNonNullExtendingVisitor();
genPackage.generateVisitorInterface();
/* ePackage.generateDecorableVisitorInterface("org.eclipse.ocl.xtext.base.util.BaseCSVisitor"); */
ePackage.generateAbstractVisitor();
ePackage.generateAbstractNullVisitor();
}
}