Class XbaseSwitch<T>

  • Direct Known Subclasses:
    ThrownExceptionSwitch

    public class XbaseSwitch<T>
    extends org.eclipse.emf.ecore.util.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.
    Since:
    2.7
    See Also:
    XbasePackage
    Generated:
    • Field Detail

      • modelPackage

        protected static XbasePackage modelPackage
        The cached model package
        Generated:
    • Constructor Detail

      • XbaseSwitch

        public XbaseSwitch()
        Creates an instance of the switch.
        Generated:
    • Method Detail

      • isSwitchFor

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

        protected T doSwitch​(int classifierID,
                             org.eclipse.emf.ecore.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 org.eclipse.emf.ecore.util.Switch<T>
        Returns:
        the first non-null result returned by a caseXXX call.
        Generated:
      • caseXExpression

        public T caseXExpression​(XExpression object)
        Returns the result of interpreting the object as an instance of 'XExpression'. 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 'XExpression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXIfExpression

        public T caseXIfExpression​(XIfExpression object)
        Returns the result of interpreting the object as an instance of 'XIf 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 'XIf Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXSwitchExpression

        public T caseXSwitchExpression​(XSwitchExpression object)
        Returns the result of interpreting the object as an instance of 'XSwitch 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 'XSwitch Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXCasePart

        public T caseXCasePart​(XCasePart object)
        Returns the result of interpreting the object as an instance of 'XCase Part'. 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 'XCase Part'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXBlockExpression

        public T caseXBlockExpression​(XBlockExpression object)
        Returns the result of interpreting the object as an instance of 'XBlock 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 'XBlock Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXVariableDeclaration

        public T caseXVariableDeclaration​(XVariableDeclaration object)
        Returns the result of interpreting the object as an instance of 'XVariable Declaration'. 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 'XVariable Declaration'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXAbstractFeatureCall

        public T caseXAbstractFeatureCall​(XAbstractFeatureCall object)
        Returns the result of interpreting the object as an instance of 'XAbstract Feature 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 'XAbstract Feature Call'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXMemberFeatureCall

        public T caseXMemberFeatureCall​(XMemberFeatureCall object)
        Returns the result of interpreting the object as an instance of 'XMember Feature 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 'XMember Feature Call'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXFeatureCall

        public T caseXFeatureCall​(XFeatureCall object)
        Returns the result of interpreting the object as an instance of 'XFeature 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 'XFeature Call'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXConstructorCall

        public T caseXConstructorCall​(XConstructorCall object)
        Returns the result of interpreting the object as an instance of 'XConstructor 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 'XConstructor Call'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXBooleanLiteral

        public T caseXBooleanLiteral​(XBooleanLiteral object)
        Returns the result of interpreting the object as an instance of 'XBoolean Literal'. 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 'XBoolean Literal'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXNullLiteral

        public T caseXNullLiteral​(XNullLiteral object)
        Returns the result of interpreting the object as an instance of 'XNull Literal'. 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 'XNull Literal'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXNumberLiteral

        public T caseXNumberLiteral​(XNumberLiteral object)
        Returns the result of interpreting the object as an instance of 'XNumber Literal'. 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 'XNumber Literal'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXStringLiteral

        public T caseXStringLiteral​(XStringLiteral object)
        Returns the result of interpreting the object as an instance of 'XString Literal'. 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 'XString Literal'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXCollectionLiteral

        public T caseXCollectionLiteral​(XCollectionLiteral object)
        Returns the result of interpreting the object as an instance of 'XCollection Literal'. 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 'XCollection Literal'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXListLiteral

        public T caseXListLiteral​(XListLiteral object)
        Returns the result of interpreting the object as an instance of 'XList Literal'. 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 'XList Literal'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXSetLiteral

        public T caseXSetLiteral​(XSetLiteral object)
        Returns the result of interpreting the object as an instance of 'XSet Literal'. 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 'XSet Literal'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXClosure

        public T caseXClosure​(XClosure object)
        Returns the result of interpreting the object as an instance of 'XClosure'. 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 'XClosure'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXCastedExpression

        public T caseXCastedExpression​(XCastedExpression object)
        Returns the result of interpreting the object as an instance of 'XCasted 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 'XCasted Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXBinaryOperation

        public T caseXBinaryOperation​(XBinaryOperation object)
        Returns the result of interpreting the object as an instance of 'XBinary Operation'. 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 'XBinary Operation'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXUnaryOperation

        public T caseXUnaryOperation​(XUnaryOperation object)
        Returns the result of interpreting the object as an instance of 'XUnary Operation'. 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 'XUnary Operation'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXPostfixOperation

        public T caseXPostfixOperation​(XPostfixOperation object)
        Returns the result of interpreting the object as an instance of 'XPostfix Operation'. 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 'XPostfix Operation'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXForLoopExpression

        public T caseXForLoopExpression​(XForLoopExpression object)
        Returns the result of interpreting the object as an instance of 'XFor Loop 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 'XFor Loop Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXBasicForLoopExpression

        public T caseXBasicForLoopExpression​(XBasicForLoopExpression object)
        Returns the result of interpreting the object as an instance of 'XBasic For Loop 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 'XBasic For Loop Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXAbstractWhileExpression

        public T caseXAbstractWhileExpression​(XAbstractWhileExpression object)
        Returns the result of interpreting the object as an instance of 'XAbstract While 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 'XAbstract While Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXDoWhileExpression

        public T caseXDoWhileExpression​(XDoWhileExpression object)
        Returns the result of interpreting the object as an instance of 'XDo While 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 'XDo While Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXWhileExpression

        public T caseXWhileExpression​(XWhileExpression object)
        Returns the result of interpreting the object as an instance of 'XWhile 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 'XWhile Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXTypeLiteral

        public T caseXTypeLiteral​(XTypeLiteral object)
        Returns the result of interpreting the object as an instance of 'XType Literal'. 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 'XType Literal'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXInstanceOfExpression

        public T caseXInstanceOfExpression​(XInstanceOfExpression object)
        Returns the result of interpreting the object as an instance of 'XInstance 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 'XInstance Of Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXThrowExpression

        public T caseXThrowExpression​(XThrowExpression object)
        Returns the result of interpreting the object as an instance of 'XThrow 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 'XThrow Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXTryCatchFinallyExpression

        public T caseXTryCatchFinallyExpression​(XTryCatchFinallyExpression object)
        Returns the result of interpreting the object as an instance of 'XTry Catch Finally 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 'XTry Catch Finally Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXCatchClause

        public T caseXCatchClause​(XCatchClause object)
        Returns the result of interpreting the object as an instance of 'XCatch Clause'. 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 'XCatch Clause'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXAssignment

        public T caseXAssignment​(XAssignment object)
        Returns the result of interpreting the object as an instance of 'XAssignment'. 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 'XAssignment'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXReturnExpression

        public T caseXReturnExpression​(XReturnExpression object)
        Returns the result of interpreting the object as an instance of 'XReturn 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 'XReturn Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXSynchronizedExpression

        public T caseXSynchronizedExpression​(XSynchronizedExpression object)
        Returns the result of interpreting the object as an instance of 'XSynchronized 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 'XSynchronized Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseJvmIdentifiableElement

        public T caseJvmIdentifiableElement​(org.eclipse.xtext.common.types.JvmIdentifiableElement object)
        Returns the result of interpreting the object as an instance of 'Jvm Identifiable Element'. 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 'Jvm Identifiable Element'.
        See Also:
        doSwitch(EObject)
        Generated:
      • defaultCase

        public T defaultCase​(org.eclipse.emf.ecore.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 org.eclipse.emf.ecore.util.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: