Class ConditionSimplifier

    • Constructor Detail

      • ConditionSimplifier

        public ConditionSimplifier()
    • Method Detail

      • simplify

        public void simplify​(IfCondition condition)
      • caseAndExpression

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

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

        public Expression caseNotExpression​(NotExpression object)
        Description copied from class: SimpleExpressionsSwitch
        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 SimpleExpressionsSwitch<Expression>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Not Expression'.
        See Also:
        doSwitch(EObject)
      • caseExpression

        public Expression caseExpression​(Expression object)
        Description copied from class: SimpleExpressionsSwitch
        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.
        Overrides:
        caseExpression in class SimpleExpressionsSwitch<Expression>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Expression'.
        See Also:
        doSwitch(EObject)
      • areSemanticallyEqual

        public boolean areSemanticallyEqual​(Expression left,
                                            Expression right)