/*******************************************************************************
* Copyright (c) 2008 xored software, Inc.
*
* 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:
* xored software, Inc. - initial API and Implementation (Andrei Sobolev)
*******************************************************************************/
package org.eclipse.dltk.tcl.ast.util;
import org.eclipse.dltk.tcl.ast.*;
import org.eclipse.dltk.tcl.ast.AstPackage;
import org.eclipse.dltk.tcl.ast.Node;
import org.eclipse.dltk.tcl.ast.Script;
import org.eclipse.dltk.tcl.ast.StringArgument;
import org.eclipse.dltk.tcl.ast.Substitution;
import org.eclipse.dltk.tcl.ast.TclArgument;
import org.eclipse.dltk.tcl.ast.TclCommand;
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;
/**
* <!-- 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.dltk.tcl.ast.AstPackage
* @generated
*/
public class AstAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static AstPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AstAdapterFactory() {
if (modelPackage == null) {
modelPackage = AstPackage.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 AstSwitch<Adapter> modelSwitch = new AstSwitch<Adapter>() {
@Override
public Adapter caseNode(Node object) {
return createNodeAdapter();
}
@Override
public Adapter caseScript(Script object) {
return createScriptAdapter();
}
@Override
public Adapter caseStringArgument(StringArgument object) {
return createStringArgumentAdapter();
}
@Override
public Adapter caseSubstitution(Substitution object) {
return createSubstitutionAdapter();
}
@Override
public Adapter caseTclArgument(TclArgument object) {
return createTclArgumentAdapter();
}
@Override
public Adapter caseTclCommand(TclCommand object) {
return createTclCommandAdapter();
}
@Override
public Adapter caseTclArgumentList(TclArgumentList object) {
return createTclArgumentListAdapter();
}
@Override
public Adapter caseArgumentMatch(ArgumentMatch object) {
return createArgumentMatchAdapter();
}
@Override
public Adapter caseComplexString(ComplexString object) {
return createComplexStringAdapter();
}
@Override
public Adapter caseVariableReference(VariableReference object) {
return createVariableReferenceAdapter();
}
@Override
public Adapter caseISubstitution(ISubstitution object) {
return createISubstitutionAdapter();
}
@Override
public Adapter caseTclModule(TclModule object) {
return createTclModuleAdapter();
}
@Override
public Adapter caseTclCodeModel(TclCodeModel object) {
return createTclCodeModelAdapter();
}
@Override
public Adapter caseTclProblemModel(TclProblemModel object) {
return createTclProblemModelAdapter();
}
@Override
public Adapter caseTclProblem(TclProblem object) {
return createTclProblemAdapter();
}
@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.dltk.tcl.ast.Node <em>Node</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.dltk.tcl.ast.Node
* @generated
*/
public Adapter createNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.Script <em>Script</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.dltk.tcl.ast.Script
* @generated
*/
public Adapter createScriptAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.StringArgument <em>String Argument</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.dltk.tcl.ast.StringArgument
* @generated
*/
public Adapter createStringArgumentAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.Substitution <em>Substitution</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.dltk.tcl.ast.Substitution
* @generated
*/
public Adapter createSubstitutionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.TclArgument <em>Tcl Argument</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.dltk.tcl.ast.TclArgument
* @generated
*/
public Adapter createTclArgumentAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.TclCommand <em>Tcl Command</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.dltk.tcl.ast.TclCommand
* @generated
*/
public Adapter createTclCommandAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.TclArgumentList <em>Tcl Argument List</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.dltk.tcl.ast.TclArgumentList
* @generated
*/
public Adapter createTclArgumentListAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.ArgumentMatch <em>Argument Match</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.dltk.tcl.ast.ArgumentMatch
* @generated
*/
public Adapter createArgumentMatchAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.ComplexString <em>Complex String</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.dltk.tcl.ast.ComplexString
* @generated
*/
public Adapter createComplexStringAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.VariableReference <em>Variable Reference</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.dltk.tcl.ast.VariableReference
* @generated
*/
public Adapter createVariableReferenceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.ISubstitution <em>ISubstitution</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.dltk.tcl.ast.ISubstitution
* @generated
*/
public Adapter createISubstitutionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.TclModule <em>Tcl Module</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.dltk.tcl.ast.TclModule
* @generated
*/
public Adapter createTclModuleAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.TclCodeModel <em>Tcl Code Model</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.dltk.tcl.ast.TclCodeModel
* @generated
*/
public Adapter createTclCodeModelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.TclProblemModel <em>Tcl Problem Model</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.dltk.tcl.ast.TclProblemModel
* @generated
*/
public Adapter createTclProblemModelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.dltk.tcl.ast.TclProblem <em>Tcl Problem</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.dltk.tcl.ast.TclProblem
* @generated
*/
public Adapter createTclProblemAdapter() {
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;
}
} //AstAdapterFactory