/******************************************************************************* * Copyright (c) 2014 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.examples.xtext2lpg.XBNF.util; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notifier; import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; import org.eclipse.emf.ecore.EObject; import org.eclipse.ocl.examples.xtext2lpg.XBNF.*; /** * <!-- begin-user-doc --> * The <b>Adapter Factory</b> for the model. * It provides an adapter <code>createXXX</code> method for each class of the model. * <!-- end-user-doc --> * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.XBNFPackage * @generated */ public class XBNFAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static XBNFPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XBNFAdapterFactory() { if (modelPackage == null) { modelPackage = XBNFPackage.eINSTANCE; } } /** * Returns whether this factory is applicable for the type of the object. * <!-- begin-user-doc --> * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. * <!-- end-user-doc --> * @return whether this factory is applicable for the type of the object. * @generated */ @Override public boolean isFactoryForType(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; } /** * The switch that delegates to the <code>createXXX</code> methods. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected XBNFSwitch<Adapter> modelSwitch = new XBNFSwitch<Adapter>() { @Override public Adapter caseAbstractElement(AbstractElement object) { return createAbstractElementAdapter(); } @Override public Adapter caseAbstractRule(AbstractRule object) { return createAbstractRuleAdapter(); } @Override public Adapter caseActionAssignment(ActionAssignment object) { return createActionAssignmentAdapter(); } @Override public Adapter caseAssignment(Assignment object) { return createAssignmentAdapter(); } @Override public Adapter caseCharacterRange(CharacterRange object) { return createCharacterRangeAdapter(); } @Override public Adapter caseConjunction(Conjunction object) { return createConjunctionAdapter(); } @Override public Adapter caseDisjunction(Disjunction object) { return createDisjunctionAdapter(); } @Override public Adapter caseEOF(EOF object) { return createEOFAdapter(); } @Override public Adapter caseEpsilon(Epsilon object) { return createEpsilonAdapter(); } @Override public Adapter caseGrammar(Grammar object) { return createGrammarAdapter(); } @Override public Adapter caseKeyword(Keyword object) { return createKeywordAdapter(); } @Override public Adapter caseKeywordAssignment(KeywordAssignment object) { return createKeywordAssignmentAdapter(); } @Override public Adapter caseLexerGrammar(LexerGrammar object) { return createLexerGrammarAdapter(); } @Override public Adapter caseNegatedToken(NegatedToken object) { return createNegatedTokenAdapter(); } @Override public Adapter caseParserGrammar(ParserGrammar object) { return createParserGrammarAdapter(); } @Override public Adapter caseParserRule(ParserRule object) { return createParserRuleAdapter(); } @Override public Adapter caseRuleCall(RuleCall object) { return createRuleCallAdapter(); } @Override public Adapter caseRuleCallAssignment(RuleCallAssignment object) { return createRuleCallAssignmentAdapter(); } @Override public Adapter caseSyntax(Syntax object) { return createSyntaxAdapter(); } @Override public Adapter caseTerminalRule(TerminalRule object) { return createTerminalRuleAdapter(); } @Override public Adapter caseTypedRule(TypedRule object) { return createTypedRuleAdapter(); } @Override public Adapter caseUntilToken(UntilToken object) { return createUntilTokenAdapter(); } @Override public Adapter caseUntypedRule(UntypedRule object) { return createUntypedRuleAdapter(); } @Override public Adapter caseWildcard(Wildcard object) { return createWildcardAdapter(); } @Override public Adapter defaultCase(EObject object) { return createEObjectAdapter(); } }; /** * Creates an adapter for the <code>target</code>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param target the object to adapt. * @return the adapter for the <code>target</code>. * @generated */ @Override public Adapter createAdapter(Notifier target) { return modelSwitch.doSwitch((EObject)target); } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.AbstractElement <em>Abstract Element</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.AbstractElement * @generated */ public Adapter createAbstractElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.AbstractRule <em>Abstract Rule</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.AbstractRule * @generated */ public Adapter createAbstractRuleAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.ActionAssignment <em>Action Assignment</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.ActionAssignment * @generated */ public Adapter createActionAssignmentAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.Assignment <em>Assignment</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.Assignment * @generated */ public Adapter createAssignmentAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.CharacterRange <em>Character Range</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.CharacterRange * @generated */ public Adapter createCharacterRangeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.Conjunction <em>Conjunction</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.Conjunction * @generated */ public Adapter createConjunctionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.Disjunction <em>Disjunction</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.Disjunction * @generated */ public Adapter createDisjunctionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.EOF <em>EOF</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.EOF * @generated */ public Adapter createEOFAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.Epsilon <em>Epsilon</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.Epsilon * @generated */ public Adapter createEpsilonAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.Grammar <em>Grammar</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.Grammar * @generated */ public Adapter createGrammarAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.Keyword <em>Keyword</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.Keyword * @generated */ public Adapter createKeywordAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.KeywordAssignment <em>Keyword Assignment</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.KeywordAssignment * @generated */ public Adapter createKeywordAssignmentAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.LexerGrammar <em>Lexer Grammar</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.LexerGrammar * @generated */ public Adapter createLexerGrammarAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.NegatedToken <em>Negated Token</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.NegatedToken * @generated */ public Adapter createNegatedTokenAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.ParserGrammar <em>Parser Grammar</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.ParserGrammar * @generated */ public Adapter createParserGrammarAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.ParserRule <em>Parser Rule</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.ParserRule * @generated */ public Adapter createParserRuleAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.RuleCall <em>Rule Call</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.RuleCall * @generated */ public Adapter createRuleCallAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.RuleCallAssignment <em>Rule Call Assignment</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.RuleCallAssignment * @generated */ public Adapter createRuleCallAssignmentAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.Syntax <em>Syntax</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.Syntax * @generated */ public Adapter createSyntaxAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.TerminalRule <em>Terminal Rule</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.TerminalRule * @generated */ public Adapter createTerminalRuleAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.TypedRule <em>Typed Rule</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.TypedRule * @generated */ public Adapter createTypedRuleAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.UntilToken <em>Until Token</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.UntilToken * @generated */ public Adapter createUntilTokenAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.UntypedRule <em>Untyped Rule</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.UntypedRule * @generated */ public Adapter createUntypedRuleAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.ocl.examples.xtext2lpg.XBNF.Wildcard <em>Wildcard</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.eclipse.ocl.examples.xtext2lpg.XBNF.Wildcard * @generated */ public Adapter createWildcardAdapter() { return null; } /** * Creates a new adapter for the default case. * <!-- begin-user-doc --> * This default implementation returns null. * <!-- end-user-doc --> * @return the new adapter. * @generated */ public Adapter createEObjectAdapter() { return null; } } //XBNFAdapterFactory