| /** |
| * <copyright> |
| * |
| * Copyright (c) 2010 E.D.Willink 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> |
| * |
| * $Id: OCLinEcoreCS2MonikerVisitor.java,v 1.4 2011/02/19 12:00:39 ewillink Exp $ |
| */ |
| package org.eclipse.ocl.examples.xtext.oclinecore.utilities; |
| |
| import org.eclipse.ocl.examples.pivot.utilities.PivotConstants; |
| import org.eclipse.ocl.examples.xtext.base.util.BaseCSVisitor; |
| import org.eclipse.ocl.examples.xtext.base.utilities.CS2Moniker; |
| import org.eclipse.ocl.examples.xtext.essentialocl.essentialOCLCST.EssentialOCLCSTPackage; |
| import org.eclipse.ocl.examples.xtext.essentialocl.util.EssentialOCLCSVisitor; |
| import org.eclipse.ocl.examples.xtext.essentialocl.utilities.EssentialOCLCS2MonikerVisitor; |
| import org.eclipse.ocl.examples.xtext.oclinecore.oclinEcoreCST.OCLinEcoreCSTPackage; |
| import org.eclipse.ocl.examples.xtext.oclinecore.util.AbstractExtendingDelegatingOCLinEcoreCSVisitor; |
| |
| public class OCLinEcoreCS2MonikerVisitor |
| extends AbstractExtendingDelegatingOCLinEcoreCSVisitor<Boolean, CS2Moniker, EssentialOCLCSVisitor<Boolean, CS2Moniker>> |
| implements PivotConstants |
| { |
| private static final class Factory implements CS2Moniker.Factory |
| { |
| private Factory() { |
| EssentialOCLCS2MonikerVisitor.FACTORY.getClass(); |
| CS2Moniker.addFactory(OCLinEcoreCSTPackage.eINSTANCE, this); |
| // roleNames.put(OCLinEcoreCSTPackage.Literals.LIB_CONSTRAINT_CS__OWNED_EXPRESSION, "z"); |
| } |
| |
| public BaseCSVisitor<?, ?> create(CS2Moniker context) { |
| return new OCLinEcoreCS2MonikerVisitor(context); |
| } |
| } |
| |
| public static CS2Moniker.Factory FACTORY = new Factory(); |
| |
| @SuppressWarnings("unchecked") |
| public OCLinEcoreCS2MonikerVisitor(CS2Moniker context) { |
| super((EssentialOCLCSVisitor<Boolean, CS2Moniker>) context.getVisitor(EssentialOCLCSTPackage.eINSTANCE), context); |
| } |
| } |