/**
*/
package core.util;
import core.*;
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 core.CorePackage
* @generated
*/
public class CoreAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static CorePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CoreAdapterFactory() {
if (modelPackage == null) {
modelPackage = CorePackage.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 CoreSwitch<Adapter> modelSwitch =
new CoreSwitch<Adapter>() {
@Override
public Adapter caseRule(Rule object) {
return createRuleAdapter();
}
@Override
public Adapter caseAdd(Add object) {
return createAddAdapter();
}
@Override
public Adapter caseIntegerExpression(IntegerExpression object) {
return createIntegerExpressionAdapter();
}
@Override
public Adapter caseUnaryExpression(UnaryExpression object) {
return createUnaryExpressionAdapter();
}
@Override
public Adapter caseAnd(And object) {
return createAndAdapter();
}
@Override
public Adapter caseOr(Or object) {
return createOrAdapter();
}
@Override
public Adapter caseNot(Not object) {
return createNotAdapter();
}
@Override
public Adapter caseGreater(Greater object) {
return createGreaterAdapter();
}
@Override
public Adapter caseLower(Lower object) {
return createLowerAdapter();
}
@Override
public Adapter caseIntegerLiteral(IntegerLiteral object) {
return createIntegerLiteralAdapter();
}
@Override
public Adapter caseConditional(Conditional object) {
return createConditionalAdapter();
}
@Override
public Adapter caseBinaryExpression(BinaryExpression object) {
return createBinaryExpressionAdapter();
}
@Override
public Adapter caseMult(Mult object) {
return createMultAdapter();
}
@Override
public Adapter caseDiv(Div object) {
return createDivAdapter();
}
@Override
public Adapter caseFilter(Filter object) {
return createFilterAdapter();
}
@Override
public Adapter caseMod(Mod object) {
return createModAdapter();
}
@Override
public Adapter caseUMinus(UMinus object) {
return createUMinusAdapter();
}
@Override
public Adapter caseMinus(Minus object) {
return createMinusAdapter();
}
@Override
public Adapter caseEqual(Equal object) {
return createEqualAdapter();
}
@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 core.Rule <em>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 core.Rule
* @generated
*/
public Adapter createRuleAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Add <em>Add</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 core.Add
* @generated
*/
public Adapter createAddAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.IntegerExpression <em>Integer Expression</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 core.IntegerExpression
* @generated
*/
public Adapter createIntegerExpressionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.UnaryExpression <em>Unary Expression</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 core.UnaryExpression
* @generated
*/
public Adapter createUnaryExpressionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.And <em>And</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 core.And
* @generated
*/
public Adapter createAndAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Or <em>Or</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 core.Or
* @generated
*/
public Adapter createOrAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Not <em>Not</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 core.Not
* @generated
*/
public Adapter createNotAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Greater <em>Greater</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 core.Greater
* @generated
*/
public Adapter createGreaterAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Lower <em>Lower</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 core.Lower
* @generated
*/
public Adapter createLowerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.IntegerLiteral <em>Integer Literal</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 core.IntegerLiteral
* @generated
*/
public Adapter createIntegerLiteralAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Conditional <em>Conditional</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 core.Conditional
* @generated
*/
public Adapter createConditionalAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.BinaryExpression <em>Binary Expression</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 core.BinaryExpression
* @generated
*/
public Adapter createBinaryExpressionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Mult <em>Mult</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 core.Mult
* @generated
*/
public Adapter createMultAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Div <em>Div</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 core.Div
* @generated
*/
public Adapter createDivAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Filter <em>Filter</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 core.Filter
* @generated
*/
public Adapter createFilterAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Mod <em>Mod</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 core.Mod
* @generated
*/
public Adapter createModAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.UMinus <em>UMinus</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 core.UMinus
* @generated
*/
public Adapter createUMinusAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Minus <em>Minus</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 core.Minus
* @generated
*/
public Adapter createMinusAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link core.Equal <em>Equal</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 core.Equal
* @generated
*/
public Adapter createEqualAdapter() {
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;
}
} //CoreAdapterFactory