Class ExpressionsSwitch<T>


  • public class ExpressionsSwitch<T>
    extends Switch<T>
    The Switch for the model's inheritance hierarchy. It supports the call doSwitch(object) to invoke the caseXXX 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.
    See Also:
    ExpressionsPackage
    Generated class or method.
    • Field Detail

      • modelPackage

        protected static ExpressionsPackage modelPackage
        The cached model package
        Generated class or method.
    • Constructor Detail

      • ExpressionsSwitch

        public ExpressionsSwitch()
        Creates an instance of the switch.
        Generated class or method.
    • Method Detail

      • isSwitchFor

        protected boolean isSwitchFor​(EPackage ePackage)
        Checks whether this is a switch for the given package.
        Specified by:
        isSwitchFor in class Switch<T>
        Parameters:
        ePackage - the package in question.
        Returns:
        whether this is a switch for the given package.
        Generated class or method.
      • doSwitch

        protected T doSwitch​(int classifierID,
                             EObject theEObject)
        Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
        Overrides:
        doSwitch in class Switch<T>
        Returns:
        the first non-null result returned by a caseXXX call.
        Generated class or method.
      • caseExpression

        public T caseExpression​(Expression object)
        Returns the result of interpreting the object as an instance of 'Expression'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Expression'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseUnaryExpression

        public T caseUnaryExpression​(UnaryExpression object)
        Returns the result of interpreting the object as an instance of 'Unary Expression'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Unary Expression'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseBinaryExpression

        public T caseBinaryExpression​(BinaryExpression object)
        Returns the result of interpreting the object as an instance of 'Binary Expression'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Binary Expression'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLogicalOr

        public T caseLogicalOr​(LogicalOr object)
        Returns the result of interpreting the object as an instance of 'Logical Or'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Logical Or'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCondition

        public T caseCondition​(Condition object)
        Returns the result of interpreting the object as an instance of 'Condition'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Condition'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseSoftCut

        public T caseSoftCut​(SoftCut object)
        Returns the result of interpreting the object as an instance of 'Soft Cut'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Soft Cut'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLogicalAnd

        public T caseLogicalAnd​(LogicalAnd object)
        Returns the result of interpreting the object as an instance of 'Logical And'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Logical And'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNotProvable

        public T caseNotProvable​(NotProvable object)
        Returns the result of interpreting the object as an instance of 'Not Provable'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Not Provable'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLessThan

        public T caseLessThan​(LessThan object)
        Returns the result of interpreting the object as an instance of 'Less Than'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Less Than'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseUnification

        public T caseUnification​(Unification object)
        Returns the result of interpreting the object as an instance of 'Unification'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Unification'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseUniv

        public T caseUniv​(Univ object)
        Returns the result of interpreting the object as an instance of 'Univ'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Univ'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseStructuralEquivalence

        public T caseStructuralEquivalence​(StructuralEquivalence object)
        Returns the result of interpreting the object as an instance of 'Structural Equivalence'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Structural Equivalence'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseStructuralEquivalenceNotProvable

        public T caseStructuralEquivalenceNotProvable​(StructuralEquivalenceNotProvable object)
        Returns the result of interpreting the object as an instance of 'Structural Equivalence Not Provable'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Structural Equivalence Not Provable'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNumberEqual

        public T caseNumberEqual​(NumberEqual object)
        Returns the result of interpreting the object as an instance of 'Number Equal'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Number Equal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLessOrEqual

        public T caseLessOrEqual​(LessOrEqual object)
        Returns the result of interpreting the object as an instance of 'Less Or Equal'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Less Or Equal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseEquivalence

        public T caseEquivalence​(Equivalence object)
        Returns the result of interpreting the object as an instance of 'Equivalence'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Equivalence'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNonEqualNumber

        public T caseNonEqualNumber​(NonEqualNumber object)
        Returns the result of interpreting the object as an instance of 'Non Equal Number'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Non Equal Number'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseGreaterThan

        public T caseGreaterThan​(GreaterThan object)
        Returns the result of interpreting the object as an instance of 'Greater Than'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Greater Than'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseGreaterOrEqual

        public T caseGreaterOrEqual​(GreaterOrEqual object)
        Returns the result of interpreting the object as an instance of 'Greater Or Equal'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Greater Or Equal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseStandardOrderBefore

        public T caseStandardOrderBefore​(StandardOrderBefore object)
        Returns the result of interpreting the object as an instance of 'Standard Order Before'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Standard Order Before'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseEqualOrStandardOrderBefore

        public T caseEqualOrStandardOrderBefore​(EqualOrStandardOrderBefore object)
        Returns the result of interpreting the object as an instance of 'Equal Or Standard Order Before'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Equal Or Standard Order Before'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseStandardOrderAfter

        public T caseStandardOrderAfter​(StandardOrderAfter object)
        Returns the result of interpreting the object as an instance of 'Standard Order After'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Standard Order After'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseEqualOrStandardOrderAfter

        public T caseEqualOrStandardOrderAfter​(EqualOrStandardOrderAfter object)
        Returns the result of interpreting the object as an instance of 'Equal Or Standard Order After'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Equal Or Standard Order After'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNotUnifiable

        public T caseNotUnifiable​(NotUnifiable object)
        Returns the result of interpreting the object as an instance of 'Not Unifiable'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Not Unifiable'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseDisequality

        public T caseDisequality​(Disequality object)
        Returns the result of interpreting the object as an instance of 'Disequality'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Disequality'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAs

        public T caseAs​(As object)
        Returns the result of interpreting the object as an instance of 'As'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'As'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseIs

        public T caseIs​(Is object)
        Returns the result of interpreting the object as an instance of 'Is'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Is'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseParticalUnification

        public T caseParticalUnification​(ParticalUnification object)
        Returns the result of interpreting the object as an instance of 'Partical Unification'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Partical Unification'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseSubDict

        public T caseSubDict​(SubDict object)
        Returns the result of interpreting the object as an instance of 'Sub Dict'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Sub Dict'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseModuleCall

        public T caseModuleCall​(ModuleCall object)
        Returns the result of interpreting the object as an instance of 'Module Call'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Module Call'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • casePlus

        public T casePlus​(Plus object)
        Returns the result of interpreting the object as an instance of 'Plus'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Plus'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseMinus

        public T caseMinus​(Minus object)
        Returns the result of interpreting the object as an instance of 'Minus'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Minus'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseBinaryAnd

        public T caseBinaryAnd​(BinaryAnd object)
        Returns the result of interpreting the object as an instance of 'Binary And'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Binary And'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseBinaryOr

        public T caseBinaryOr​(BinaryOr object)
        Returns the result of interpreting the object as an instance of 'Binary Or'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Binary Or'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseXor

        public T caseXor​(Xor object)
        Returns the result of interpreting the object as an instance of 'Xor'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Xor'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseMultiplication

        public T caseMultiplication​(Multiplication object)
        Returns the result of interpreting the object as an instance of 'Multiplication'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Multiplication'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseDivision

        public T caseDivision​(Division object)
        Returns the result of interpreting the object as an instance of 'Division'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Division'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseIntegerDivision

        public T caseIntegerDivision​(IntegerDivision object)
        Returns the result of interpreting the object as an instance of 'Integer Division'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Integer Division'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseDiv

        public T caseDiv​(Div object)
        Returns the result of interpreting the object as an instance of 'Div'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Div'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseRdiv

        public T caseRdiv​(Rdiv object)
        Returns the result of interpreting the object as an instance of 'Rdiv'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Rdiv'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseBitwiseShiftLeft

        public T caseBitwiseShiftLeft​(BitwiseShiftLeft object)
        Returns the result of interpreting the object as an instance of 'Bitwise Shift Left'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Bitwise Shift Left'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseMod

        public T caseMod​(Mod object)
        Returns the result of interpreting the object as an instance of 'Mod'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Mod'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseRem

        public T caseRem​(Rem object)
        Returns the result of interpreting the object as an instance of 'Rem'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Rem'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • casePower

        public T casePower​(Power object)
        Returns the result of interpreting the object as an instance of 'Power'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Power'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • casePositiveNumber

        public T casePositiveNumber​(PositiveNumber object)
        Returns the result of interpreting the object as an instance of 'Positive Number'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Positive Number'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNegativeNumber

        public T caseNegativeNumber​(NegativeNumber object)
        Returns the result of interpreting the object as an instance of 'Negative Number'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Negative Number'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseBitwiseNegation

        public T caseBitwiseNegation​(BitwiseNegation object)
        Returns the result of interpreting the object as an instance of 'Bitwise Negation'. This implementation returns null; returning a non-null result will terminate the switch.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Bitwise Negation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • defaultCase

        public T defaultCase​(EObject object)
        Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.
        Overrides:
        defaultCase in class Switch<T>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'EObject'.
        See Also:
        Switch.doSwitch(org.eclipse.emf.ecore.EObject)
        Generated class or method.