/**
*/
package kmlogo.asm.util;
import kmlogo.asm.*;
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 kmlogo.asm.AsmPackage
* @generated
*/
public class AsmAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static AsmPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AsmAdapterFactory() {
if (modelPackage == null) {
modelPackage = AsmPackage.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 AsmSwitch<Adapter> modelSwitch =
new AsmSwitch<Adapter>() {
@Override
public Adapter caseInstruction(Instruction object) {
return createInstructionAdapter();
}
@Override
public Adapter casePrimitive(Primitive object) {
return createPrimitiveAdapter();
}
@Override
public Adapter caseBack(Back object) {
return createBackAdapter();
}
@Override
public Adapter caseForward(Forward object) {
return createForwardAdapter();
}
@Override
public Adapter caseLeft(Left object) {
return createLeftAdapter();
}
@Override
public Adapter caseRight(Right object) {
return createRightAdapter();
}
@Override
public Adapter casePenDown(PenDown object) {
return createPenDownAdapter();
}
@Override
public Adapter casePenUp(PenUp object) {
return createPenUpAdapter();
}
@Override
public Adapter caseClear(Clear object) {
return createClearAdapter();
}
@Override
public Adapter caseExpression(Expression object) {
return createExpressionAdapter();
}
@Override
public Adapter caseBinaryExp(BinaryExp object) {
return createBinaryExpAdapter();
}
@Override
public Adapter caseConstant(Constant object) {
return createConstantAdapter();
}
@Override
public Adapter caseProcCall(ProcCall object) {
return createProcCallAdapter();
}
@Override
public Adapter caseProcDeclaration(ProcDeclaration object) {
return createProcDeclarationAdapter();
}
@Override
public Adapter caseBlock(Block object) {
return createBlockAdapter();
}
@Override
public Adapter caseIf(If object) {
return createIfAdapter();
}
@Override
public Adapter caseControlStructure(ControlStructure object) {
return createControlStructureAdapter();
}
@Override
public Adapter caseRepeat(Repeat object) {
return createRepeatAdapter();
}
@Override
public Adapter caseWhile(While object) {
return createWhileAdapter();
}
@Override
public Adapter caseParameter(Parameter object) {
return createParameterAdapter();
}
@Override
public Adapter caseParameterCall(ParameterCall object) {
return createParameterCallAdapter();
}
@Override
public Adapter casePlus(Plus object) {
return createPlusAdapter();
}
@Override
public Adapter caseMinus(Minus object) {
return createMinusAdapter();
}
@Override
public Adapter caseMult(Mult object) {
return createMultAdapter();
}
@Override
public Adapter caseDiv(Div object) {
return createDivAdapter();
}
@Override
public Adapter caseEquals(Equals object) {
return createEqualsAdapter();
}
@Override
public Adapter caseGreater(Greater object) {
return createGreaterAdapter();
}
@Override
public Adapter caseLower(Lower object) {
return createLowerAdapter();
}
@Override
public Adapter caseLogoProgram(LogoProgram object) {
return createLogoProgramAdapter();
}
@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 kmlogo.asm.Instruction <em>Instruction</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 kmlogo.asm.Instruction
* @generated
*/
public Adapter createInstructionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Primitive <em>Primitive</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 kmlogo.asm.Primitive
* @generated
*/
public Adapter createPrimitiveAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Back <em>Back</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 kmlogo.asm.Back
* @generated
*/
public Adapter createBackAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Forward <em>Forward</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 kmlogo.asm.Forward
* @generated
*/
public Adapter createForwardAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Left <em>Left</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 kmlogo.asm.Left
* @generated
*/
public Adapter createLeftAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Right <em>Right</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 kmlogo.asm.Right
* @generated
*/
public Adapter createRightAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.PenDown <em>Pen Down</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 kmlogo.asm.PenDown
* @generated
*/
public Adapter createPenDownAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.PenUp <em>Pen Up</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 kmlogo.asm.PenUp
* @generated
*/
public Adapter createPenUpAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Clear <em>Clear</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 kmlogo.asm.Clear
* @generated
*/
public Adapter createClearAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Expression <em>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 kmlogo.asm.Expression
* @generated
*/
public Adapter createExpressionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.BinaryExp <em>Binary Exp</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 kmlogo.asm.BinaryExp
* @generated
*/
public Adapter createBinaryExpAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Constant <em>Constant</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 kmlogo.asm.Constant
* @generated
*/
public Adapter createConstantAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.ProcCall <em>Proc 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 kmlogo.asm.ProcCall
* @generated
*/
public Adapter createProcCallAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.ProcDeclaration <em>Proc Declaration</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 kmlogo.asm.ProcDeclaration
* @generated
*/
public Adapter createProcDeclarationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Block <em>Block</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 kmlogo.asm.Block
* @generated
*/
public Adapter createBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.If <em>If</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 kmlogo.asm.If
* @generated
*/
public Adapter createIfAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.ControlStructure <em>Control Structure</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 kmlogo.asm.ControlStructure
* @generated
*/
public Adapter createControlStructureAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Repeat <em>Repeat</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 kmlogo.asm.Repeat
* @generated
*/
public Adapter createRepeatAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.While <em>While</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 kmlogo.asm.While
* @generated
*/
public Adapter createWhileAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Parameter <em>Parameter</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 kmlogo.asm.Parameter
* @generated
*/
public Adapter createParameterAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.ParameterCall <em>Parameter 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 kmlogo.asm.ParameterCall
* @generated
*/
public Adapter createParameterCallAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Plus <em>Plus</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 kmlogo.asm.Plus
* @generated
*/
public Adapter createPlusAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.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 kmlogo.asm.Minus
* @generated
*/
public Adapter createMinusAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.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 kmlogo.asm.Mult
* @generated
*/
public Adapter createMultAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.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 kmlogo.asm.Div
* @generated
*/
public Adapter createDivAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.Equals <em>Equals</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 kmlogo.asm.Equals
* @generated
*/
public Adapter createEqualsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.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 kmlogo.asm.Greater
* @generated
*/
public Adapter createGreaterAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.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 kmlogo.asm.Lower
* @generated
*/
public Adapter createLowerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link kmlogo.asm.LogoProgram <em>Logo Program</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 kmlogo.asm.LogoProgram
* @generated
*/
public Adapter createLogoProgramAdapter() {
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;
}
} //AsmAdapterFactory