Class OperatorsSwitch<T>


  • public class OperatorsSwitch<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:
    OperatorsPackage
    Generated class or method.
    • Field Detail

      • modelPackage

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

      • OperatorsSwitch

        public OperatorsSwitch()
        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.
      • caseOperator

        public T caseOperator​(Operator object)
        Returns the result of interpreting the object as an instance of 'Operator'. 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 'Operator'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAdditiveOperator

        public T caseAdditiveOperator​(AdditiveOperator object)
        Returns the result of interpreting the object as an instance of 'Additive Operator'. 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 'Additive Operator'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentOperator

        public T caseAssignmentOperator​(AssignmentOperator object)
        Returns the result of interpreting the object as an instance of 'Assignment Operator'. 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 'Assignment Operator'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseEqualityOperator

        public T caseEqualityOperator​(EqualityOperator object)
        Returns the result of interpreting the object as an instance of 'Equality Operator'. 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 'Equality Operator'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseMultiplicativeOperator

        public T caseMultiplicativeOperator​(MultiplicativeOperator object)
        Returns the result of interpreting the object as an instance of 'Multiplicative Operator'. 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 'Multiplicative Operator'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseRelationOperator

        public T caseRelationOperator​(RelationOperator object)
        Returns the result of interpreting the object as an instance of 'Relation Operator'. 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 'Relation Operator'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseShiftOperator

        public T caseShiftOperator​(ShiftOperator object)
        Returns the result of interpreting the object as an instance of 'Shift Operator'. 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 'Shift Operator'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseUnaryOperator

        public T caseUnaryOperator​(UnaryOperator object)
        Returns the result of interpreting the object as an instance of 'Unary Operator'. 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 Operator'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseUnaryModificationOperator

        public T caseUnaryModificationOperator​(UnaryModificationOperator object)
        Returns the result of interpreting the object as an instance of 'Unary Modification Operator'. 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 Modification Operator'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignment

        public T caseAssignment​(Assignment object)
        Returns the result of interpreting the object as an instance of 'Assignment'. 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 'Assignment'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentAnd

        public T caseAssignmentAnd​(AssignmentAnd object)
        Returns the result of interpreting the object as an instance of 'Assignment 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 'Assignment And'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentDivision

        public T caseAssignmentDivision​(AssignmentDivision object)
        Returns the result of interpreting the object as an instance of 'Assignment 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 'Assignment Division'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentExclusiveOr

        public T caseAssignmentExclusiveOr​(AssignmentExclusiveOr object)
        Returns the result of interpreting the object as an instance of 'Assignment Exclusive 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 'Assignment Exclusive Or'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentMinus

        public T caseAssignmentMinus​(AssignmentMinus object)
        Returns the result of interpreting the object as an instance of 'Assignment 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 'Assignment Minus'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentModulo

        public T caseAssignmentModulo​(AssignmentModulo object)
        Returns the result of interpreting the object as an instance of 'Assignment Modulo'. 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 'Assignment Modulo'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentMultiplication

        public T caseAssignmentMultiplication​(AssignmentMultiplication object)
        Returns the result of interpreting the object as an instance of 'Assignment 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 'Assignment Multiplication'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentLeftShift

        public T caseAssignmentLeftShift​(AssignmentLeftShift object)
        Returns the result of interpreting the object as an instance of 'Assignment Left Shift'. 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 'Assignment Left Shift'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentOr

        public T caseAssignmentOr​(AssignmentOr object)
        Returns the result of interpreting the object as an instance of 'Assignment 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 'Assignment Or'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentPlus

        public T caseAssignmentPlus​(AssignmentPlus object)
        Returns the result of interpreting the object as an instance of 'Assignment 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 'Assignment Plus'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentRightShift

        public T caseAssignmentRightShift​(AssignmentRightShift object)
        Returns the result of interpreting the object as an instance of 'Assignment Right Shift'. 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 'Assignment Right Shift'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAssignmentUnsignedRightShift

        public T caseAssignmentUnsignedRightShift​(AssignmentUnsignedRightShift object)
        Returns the result of interpreting the object as an instance of 'Assignment Unsigned Right Shift'. 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 'Assignment Unsigned Right Shift'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseEqual

        public T caseEqual​(Equal object)
        Returns the result of interpreting the object as an instance of '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 'Equal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNotEqual

        public T caseNotEqual​(NotEqual object)
        Returns the result of interpreting the object as an instance of 'Not 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 'Not Equal'.
        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.
      • caseGreaterThanOrEqual

        public T caseGreaterThanOrEqual​(GreaterThanOrEqual object)
        Returns the result of interpreting the object as an instance of 'Greater Than 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 Than Or Equal'.
        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.
      • caseLessThanOrEqual

        public T caseLessThanOrEqual​(LessThanOrEqual object)
        Returns the result of interpreting the object as an instance of 'Less Than 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 Than Or Equal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAddition

        public T caseAddition​(Addition object)
        Returns the result of interpreting the object as an instance of 'Addition'. 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 'Addition'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseSubtraction

        public T caseSubtraction​(Subtraction object)
        Returns the result of interpreting the object as an instance of 'Subtraction'. 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 'Subtraction'.
        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.
      • 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.
      • caseRemainder

        public T caseRemainder​(Remainder object)
        Returns the result of interpreting the object as an instance of 'Remainder'. 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 'Remainder'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseComplement

        public T caseComplement​(Complement object)
        Returns the result of interpreting the object as an instance of 'Complement'. 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 'Complement'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseMinusMinus

        public T caseMinusMinus​(MinusMinus object)
        Returns the result of interpreting the object as an instance of 'Minus 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 Minus'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNegate

        public T caseNegate​(Negate object)
        Returns the result of interpreting the object as an instance of 'Negate'. 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 'Negate'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • casePlusPlus

        public T casePlusPlus​(PlusPlus object)
        Returns the result of interpreting the object as an instance of 'Plus 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 Plus'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLeftShift

        public T caseLeftShift​(LeftShift object)
        Returns the result of interpreting the object as an instance of 'Left Shift'. 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 'Left Shift'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseRightShift

        public T caseRightShift​(RightShift object)
        Returns the result of interpreting the object as an instance of 'Right Shift'. 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 'Right Shift'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseUnsignedRightShift

        public T caseUnsignedRightShift​(UnsignedRightShift object)
        Returns the result of interpreting the object as an instance of 'Unsigned Right Shift'. 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 'Unsigned Right Shift'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCommentable

        public T caseCommentable​(Commentable object)
        Returns the result of interpreting the object as an instance of 'Commentable'. 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 'Commentable'.
        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.