Class TypeCheckVisitor

    • Method Detail

      • caseNegativeExpression

        public Object caseNegativeExpression​(NegativeExpression object)
        Description copied from class: StoexSwitch
        Returns the result of interpreting the object as an instance of 'Negative Expression'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseNegativeExpression in class StoexSwitch<Object>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Negative Expression'.
        See Also:
        doSwitch(EObject)
      • caseBooleanOperatorExpression

        public Object caseBooleanOperatorExpression​(BooleanOperatorExpression object)
        Description copied from class: StoexSwitch
        Returns the result of interpreting the object as an instance of 'Boolean Operator Expression'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseBooleanOperatorExpression in class StoexSwitch<Object>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Boolean Operator Expression'.
        See Also:
        doSwitch(EObject)
      • caseIfElseExpression

        public Object caseIfElseExpression​(IfElseExpression object)
        Description copied from class: StoexSwitch
        Returns the result of interpreting the object as an instance of 'If Else Expression'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseIfElseExpression in class StoexSwitch<Object>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'If Else Expression'.
        See Also:
        doSwitch(EObject)
      • caseNotExpression

        public Object caseNotExpression​(NotExpression object)
        Description copied from class: StoexSwitch
        Returns the result of interpreting the object as an instance of 'Not Expression'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseNotExpression in class StoexSwitch<Object>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Not Expression'.
        See Also:
        doSwitch(EObject)
      • caseProductExpression

        public Object caseProductExpression​(ProductExpression object)
        Description copied from class: StoexSwitch
        Returns the result of interpreting the object as an instance of 'Product Expression'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseProductExpression in class StoexSwitch<Object>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Product Expression'.
        See Also:
        doSwitch(EObject)
      • caseTermExpression

        public Object caseTermExpression​(TermExpression object)
        Description copied from class: StoexSwitch
        Returns the result of interpreting the object as an instance of 'Term Expression'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseTermExpression in class StoexSwitch<Object>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Term Expression'.
        See Also:
        doSwitch(EObject)
      • typesCompatible

        public static boolean typesCompatible​(TypeEnum expectedType,
                                              TypeEnum foundType)