org.eclipse.xtext.generator.parser.antlr.splitting
Class ConditionSimplifier
java.lang.Object
org.eclipse.xtext.generator.parser.antlr.splitting.simpleExpressions.util.SimpleExpressionsSwitch<Expression>
org.eclipse.xtext.generator.parser.antlr.splitting.ConditionSimplifier
public class ConditionSimplifier
- extends SimpleExpressionsSwitch<Expression>
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConditionSimplifier
public ConditionSimplifier()
simplify
public void simplify(IfCondition condition)
simplifyRecursive
public Expression simplifyRecursive(Expression expression)
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)