/** */ package org.yakindu.base.expressions.expressions.util; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.util.Switch; import org.yakindu.base.expressions.expressions.*; import org.yakindu.base.expressions.expressions.AssignmentExpression; import org.yakindu.base.expressions.expressions.BitwiseAndExpression; import org.yakindu.base.expressions.expressions.BitwiseOrExpression; import org.yakindu.base.expressions.expressions.BitwiseXorExpression; import org.yakindu.base.expressions.expressions.BoolLiteral; import org.yakindu.base.expressions.expressions.ConditionalExpression; import org.yakindu.base.expressions.expressions.DoubleLiteral; import org.yakindu.base.expressions.expressions.ElementReferenceExpression; import org.yakindu.base.expressions.expressions.Expression; import org.yakindu.base.expressions.expressions.ExpressionsPackage; import org.yakindu.base.expressions.expressions.FeatureCall; import org.yakindu.base.expressions.expressions.FloatLiteral; import org.yakindu.base.expressions.expressions.HexLiteral; import org.yakindu.base.expressions.expressions.IntLiteral; import org.yakindu.base.expressions.expressions.Literal; import org.yakindu.base.expressions.expressions.LogicalAndExpression; import org.yakindu.base.expressions.expressions.LogicalNotExpression; import org.yakindu.base.expressions.expressions.LogicalOrExpression; import org.yakindu.base.expressions.expressions.LogicalRelationExpression; import org.yakindu.base.expressions.expressions.NullLiteral; import org.yakindu.base.expressions.expressions.NumericalAddSubtractExpression; import org.yakindu.base.expressions.expressions.NumericalMultiplyDivideExpression; import org.yakindu.base.expressions.expressions.NumericalUnaryExpression; import org.yakindu.base.expressions.expressions.ParenthesizedExpression; import org.yakindu.base.expressions.expressions.PrimitiveValueExpression; import org.yakindu.base.expressions.expressions.ShiftExpression; import org.yakindu.base.expressions.expressions.StringLiteral; import org.yakindu.base.expressions.expressions.TypeCastExpression; /** * <!-- begin-user-doc --> * The <b>Switch</b> for the model's inheritance hierarchy. * It supports the call {@link #doSwitch(EObject) doSwitch(object)} * to invoke the <code>caseXXX</code> method for each class of the model, * starting with the actual class of the object * and proceeding up the inheritance hierarchy * until a non-null result is returned, * which is the result of the switch. * <!-- end-user-doc --> * @see org.yakindu.base.expressions.expressions.ExpressionsPackage * @generated */ public class ExpressionsSwitch<T> extends Switch<T> { /** * The cached model package * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static ExpressionsPackage modelPackage; /** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ExpressionsSwitch() { if (modelPackage == null) { modelPackage = ExpressionsPackage.eINSTANCE; } } /** * Checks whether this is a switch for the given package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param ePackage the package in question. * @return whether this is a switch for the given package. * @generated */ @Override protected boolean isSwitchFor(EPackage ePackage) { return ePackage == modelPackage; } /** * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ @Override protected T doSwitch(int classifierID, EObject theEObject) { switch (classifierID) { case ExpressionsPackage.EXPRESSION: { Expression expression = (Expression)theEObject; T result = caseExpression(expression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.BINARY_EXPRESSION: { BinaryExpression binaryExpression = (BinaryExpression)theEObject; T result = caseBinaryExpression(binaryExpression); if (result == null) result = caseExpression(binaryExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.UNARY_EXPRESSION: { UnaryExpression unaryExpression = (UnaryExpression)theEObject; T result = caseUnaryExpression(unaryExpression); if (result == null) result = caseExpression(unaryExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.ARGUMENT_EXPRESSION: { ArgumentExpression argumentExpression = (ArgumentExpression)theEObject; T result = caseArgumentExpression(argumentExpression); if (result == null) result = caseExpression(argumentExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.LITERAL: { Literal literal = (Literal)theEObject; T result = caseLiteral(literal); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.BOOL_LITERAL: { BoolLiteral boolLiteral = (BoolLiteral)theEObject; T result = caseBoolLiteral(boolLiteral); if (result == null) result = caseLiteral(boolLiteral); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.INT_LITERAL: { IntLiteral intLiteral = (IntLiteral)theEObject; T result = caseIntLiteral(intLiteral); if (result == null) result = caseLiteral(intLiteral); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.DOUBLE_LITERAL: { DoubleLiteral doubleLiteral = (DoubleLiteral)theEObject; T result = caseDoubleLiteral(doubleLiteral); if (result == null) result = caseLiteral(doubleLiteral); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.FLOAT_LITERAL: { FloatLiteral floatLiteral = (FloatLiteral)theEObject; T result = caseFloatLiteral(floatLiteral); if (result == null) result = caseLiteral(floatLiteral); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.HEX_LITERAL: { HexLiteral hexLiteral = (HexLiteral)theEObject; T result = caseHexLiteral(hexLiteral); if (result == null) result = caseLiteral(hexLiteral); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.STRING_LITERAL: { StringLiteral stringLiteral = (StringLiteral)theEObject; T result = caseStringLiteral(stringLiteral); if (result == null) result = caseLiteral(stringLiteral); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.NULL_LITERAL: { NullLiteral nullLiteral = (NullLiteral)theEObject; T result = caseNullLiteral(nullLiteral); if (result == null) result = caseLiteral(nullLiteral); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.ASSIGNMENT_EXPRESSION: { AssignmentExpression assignmentExpression = (AssignmentExpression)theEObject; T result = caseAssignmentExpression(assignmentExpression); if (result == null) result = caseExpression(assignmentExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.CONDITIONAL_EXPRESSION: { ConditionalExpression conditionalExpression = (ConditionalExpression)theEObject; T result = caseConditionalExpression(conditionalExpression); if (result == null) result = caseExpression(conditionalExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.LOGICAL_OR_EXPRESSION: { LogicalOrExpression logicalOrExpression = (LogicalOrExpression)theEObject; T result = caseLogicalOrExpression(logicalOrExpression); if (result == null) result = caseBinaryExpression(logicalOrExpression); if (result == null) result = caseExpression(logicalOrExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.LOGICAL_AND_EXPRESSION: { LogicalAndExpression logicalAndExpression = (LogicalAndExpression)theEObject; T result = caseLogicalAndExpression(logicalAndExpression); if (result == null) result = caseBinaryExpression(logicalAndExpression); if (result == null) result = caseExpression(logicalAndExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.LOGICAL_NOT_EXPRESSION: { LogicalNotExpression logicalNotExpression = (LogicalNotExpression)theEObject; T result = caseLogicalNotExpression(logicalNotExpression); if (result == null) result = caseUnaryExpression(logicalNotExpression); if (result == null) result = caseExpression(logicalNotExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.BITWISE_XOR_EXPRESSION: { BitwiseXorExpression bitwiseXorExpression = (BitwiseXorExpression)theEObject; T result = caseBitwiseXorExpression(bitwiseXorExpression); if (result == null) result = caseBinaryExpression(bitwiseXorExpression); if (result == null) result = caseExpression(bitwiseXorExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.BITWISE_OR_EXPRESSION: { BitwiseOrExpression bitwiseOrExpression = (BitwiseOrExpression)theEObject; T result = caseBitwiseOrExpression(bitwiseOrExpression); if (result == null) result = caseBinaryExpression(bitwiseOrExpression); if (result == null) result = caseExpression(bitwiseOrExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.BITWISE_AND_EXPRESSION: { BitwiseAndExpression bitwiseAndExpression = (BitwiseAndExpression)theEObject; T result = caseBitwiseAndExpression(bitwiseAndExpression); if (result == null) result = caseBinaryExpression(bitwiseAndExpression); if (result == null) result = caseExpression(bitwiseAndExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.LOGICAL_RELATION_EXPRESSION: { LogicalRelationExpression logicalRelationExpression = (LogicalRelationExpression)theEObject; T result = caseLogicalRelationExpression(logicalRelationExpression); if (result == null) result = caseBinaryExpression(logicalRelationExpression); if (result == null) result = caseExpression(logicalRelationExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.SHIFT_EXPRESSION: { ShiftExpression shiftExpression = (ShiftExpression)theEObject; T result = caseShiftExpression(shiftExpression); if (result == null) result = caseBinaryExpression(shiftExpression); if (result == null) result = caseExpression(shiftExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.NUMERICAL_ADD_SUBTRACT_EXPRESSION: { NumericalAddSubtractExpression numericalAddSubtractExpression = (NumericalAddSubtractExpression)theEObject; T result = caseNumericalAddSubtractExpression(numericalAddSubtractExpression); if (result == null) result = caseBinaryExpression(numericalAddSubtractExpression); if (result == null) result = caseExpression(numericalAddSubtractExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.NUMERICAL_MULTIPLY_DIVIDE_EXPRESSION: { NumericalMultiplyDivideExpression numericalMultiplyDivideExpression = (NumericalMultiplyDivideExpression)theEObject; T result = caseNumericalMultiplyDivideExpression(numericalMultiplyDivideExpression); if (result == null) result = caseBinaryExpression(numericalMultiplyDivideExpression); if (result == null) result = caseExpression(numericalMultiplyDivideExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.NUMERICAL_UNARY_EXPRESSION: { NumericalUnaryExpression numericalUnaryExpression = (NumericalUnaryExpression)theEObject; T result = caseNumericalUnaryExpression(numericalUnaryExpression); if (result == null) result = caseUnaryExpression(numericalUnaryExpression); if (result == null) result = caseExpression(numericalUnaryExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.PRIMITIVE_VALUE_EXPRESSION: { PrimitiveValueExpression primitiveValueExpression = (PrimitiveValueExpression)theEObject; T result = casePrimitiveValueExpression(primitiveValueExpression); if (result == null) result = caseExpression(primitiveValueExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.FEATURE_CALL: { FeatureCall featureCall = (FeatureCall)theEObject; T result = caseFeatureCall(featureCall); if (result == null) result = caseArgumentExpression(featureCall); if (result == null) result = caseExpression(featureCall); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.ELEMENT_REFERENCE_EXPRESSION: { ElementReferenceExpression elementReferenceExpression = (ElementReferenceExpression)theEObject; T result = caseElementReferenceExpression(elementReferenceExpression); if (result == null) result = caseArgumentExpression(elementReferenceExpression); if (result == null) result = caseExpression(elementReferenceExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.PARENTHESIZED_EXPRESSION: { ParenthesizedExpression parenthesizedExpression = (ParenthesizedExpression)theEObject; T result = caseParenthesizedExpression(parenthesizedExpression); if (result == null) result = caseExpression(parenthesizedExpression); if (result == null) result = defaultCase(theEObject); return result; } case ExpressionsPackage.TYPE_CAST_EXPRESSION: { TypeCastExpression typeCastExpression = (TypeCastExpression)theEObject; T result = caseTypeCastExpression(typeCastExpression); if (result == null) result = caseExpression(typeCastExpression); if (result == null) result = defaultCase(theEObject); return result; } default: return defaultCase(theEObject); } } /** * Returns the result of interpreting the object as an instance of '<em>Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseExpression(Expression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Literal</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Literal</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseLiteral(Literal object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Bool Literal</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Bool Literal</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseBoolLiteral(BoolLiteral object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Int Literal</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Int Literal</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseIntLiteral(IntLiteral object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Double Literal</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Double Literal</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseDoubleLiteral(DoubleLiteral object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Float Literal</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Float Literal</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseFloatLiteral(FloatLiteral object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Hex Literal</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Hex Literal</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseHexLiteral(HexLiteral object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>String Literal</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>String Literal</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseStringLiteral(StringLiteral object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Null Literal</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Null Literal</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseNullLiteral(NullLiteral object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Assignment Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Assignment Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseAssignmentExpression(AssignmentExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Conditional Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Conditional Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseConditionalExpression(ConditionalExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Logical Or Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Logical Or Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseLogicalOrExpression(LogicalOrExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Logical And Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Logical And Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseLogicalAndExpression(LogicalAndExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Logical Not Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Logical Not Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseLogicalNotExpression(LogicalNotExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Bitwise Xor Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Bitwise Xor Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseBitwiseXorExpression(BitwiseXorExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Bitwise Or Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Bitwise Or Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseBitwiseOrExpression(BitwiseOrExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Bitwise And Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Bitwise And Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseBitwiseAndExpression(BitwiseAndExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Logical Relation Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Logical Relation Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseLogicalRelationExpression(LogicalRelationExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Shift Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Shift Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseShiftExpression(ShiftExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Numerical Add Subtract Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Numerical Add Subtract Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseNumericalAddSubtractExpression(NumericalAddSubtractExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Numerical Multiply Divide Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Numerical Multiply Divide Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseNumericalMultiplyDivideExpression(NumericalMultiplyDivideExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Numerical Unary Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Numerical Unary Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseNumericalUnaryExpression(NumericalUnaryExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Primitive Value Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Primitive Value Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T casePrimitiveValueExpression(PrimitiveValueExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Feature Call</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Feature Call</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseFeatureCall(FeatureCall object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Element Reference Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Element Reference Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseElementReferenceExpression(ElementReferenceExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Parenthesized Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Parenthesized Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseParenthesizedExpression(ParenthesizedExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Type Cast Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Type Cast Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseTypeCastExpression(TypeCastExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Argument Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Argument Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseArgumentExpression(ArgumentExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Binary Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Binary Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseBinaryExpression(BinaryExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Unary Expression</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Unary Expression</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseUnaryExpression(UnaryExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch, but this is the last case anyway. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>EObject</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) * @generated */ @Override public T defaultCase(EObject object) { return null; } } //ExpressionsSwitch