Class ThrownExceptionSwitch


  • public class ThrownExceptionSwitch
    extends XbaseSwitch<java.lang.Boolean>
    • Method Detail

      • defaultCase

        public java.lang.Boolean defaultCase​(org.eclipse.emf.ecore.EObject object)
        Description copied from class: XbaseSwitch
        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 XbaseSwitch<java.lang.Boolean>
        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)
      • caseXExpression

        public java.lang.Boolean caseXExpression​(XExpression object)
        Description copied from class: XbaseSwitch
        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.
        Overrides:
        caseXExpression in class XbaseSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'XExpression'.
        See Also:
        doSwitch(EObject)
      • caseXClosure

        public java.lang.Boolean caseXClosure​(XClosure object)
        Description copied from class: XbaseSwitch
        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.
        Overrides:
        caseXClosure in class XbaseSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'XClosure'.
        See Also:
        doSwitch(EObject)
      • caseXCasePart

        public java.lang.Boolean caseXCasePart​(XCasePart object)
        Description copied from class: XbaseSwitch
        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.
        Overrides:
        caseXCasePart in class XbaseSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'XCase Part'.
        See Also:
        doSwitch(EObject)
      • caseXThrowExpression

        public java.lang.Boolean caseXThrowExpression​(XThrowExpression object)
        Description copied from class: XbaseSwitch
        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.
        Overrides:
        caseXThrowExpression in class XbaseSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'XThrow Expression'.
        See Also:
        doSwitch(EObject)
      • caseXCatchClause

        public java.lang.Boolean caseXCatchClause​(XCatchClause object)
        Description copied from class: XbaseSwitch
        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.
        Overrides:
        caseXCatchClause in class XbaseSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'XCatch Clause'.
        See Also:
        doSwitch(EObject)
      • caseXTryCatchFinallyExpression

        public java.lang.Boolean caseXTryCatchFinallyExpression​(XTryCatchFinallyExpression object)
        Description copied from class: XbaseSwitch
        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.
        Overrides:
        caseXTryCatchFinallyExpression in class XbaseSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'XTry Catch Finally Expression'.
        See Also:
        doSwitch(EObject)
      • processExceptionsFromAutoclosable

        protected void processExceptionsFromAutoclosable​(java.util.List<XVariableDeclaration> resources,
                                                         IThrownExceptionDelegate thrownExceptionDelegate)
        Checks if the automatically called close method of resources in try block (implementing AutoCloseable) throws exceptions. Add those those exceptions to the list of the thrownExceptionDelegate.
        Parameters:
        resources - the resources of the try statement
        thrownExceptionDelegate - the (filtered) delegate holding the utilities
        Since:
        2.18
      • findCloseMethod

        protected org.eclipse.xtext.common.types.JvmOperation findCloseMethod​(LightweightTypeReference resourceType)
        Since:
        2.18
      • caseXAbstractFeatureCall

        public java.lang.Boolean caseXAbstractFeatureCall​(XAbstractFeatureCall object)
        Description copied from class: XbaseSwitch
        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.
        Overrides:
        caseXAbstractFeatureCall in class XbaseSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'XAbstract Feature Call'.
        See Also:
        doSwitch(EObject)
      • caseXConstructorCall

        public java.lang.Boolean caseXConstructorCall​(XConstructorCall object)
        Description copied from class: XbaseSwitch
        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.
        Overrides:
        caseXConstructorCall in class XbaseSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'XConstructor Call'.
        See Also:
        doSwitch(EObject)
      • accept

        protected void accept​(org.eclipse.xtext.common.types.JvmExecutable executable)