Class ConditionEvaluator


  • public class ConditionEvaluator
    extends XtextSwitch<java.lang.Boolean>
    • Constructor Detail

      • ConditionEvaluator

        public ConditionEvaluator​(java.util.Set<Parameter> paramValues)
    • Method Detail

      • evaluate

        public boolean evaluate​(Condition condition)
      • caseDisjunction

        public java.lang.Boolean caseDisjunction​(Disjunction object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Disjunction'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseDisjunction in class XtextSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Disjunction'.
        See Also:
        doSwitch(EObject)
      • caseConjunction

        public java.lang.Boolean caseConjunction​(Conjunction object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Conjunction'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseConjunction in class XtextSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Conjunction'.
        See Also:
        doSwitch(EObject)
      • caseNegation

        public java.lang.Boolean caseNegation​(Negation object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Negation'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseNegation in class XtextSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Negation'.
        See Also:
        doSwitch(EObject)
      • caseParameterReference

        public java.lang.Boolean caseParameterReference​(ParameterReference object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Parameter Reference'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseParameterReference in class XtextSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Parameter Reference'.
        See Also:
        doSwitch(EObject)
      • caseLiteralCondition

        public java.lang.Boolean caseLiteralCondition​(LiteralCondition object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Literal Condition'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseLiteralCondition in class XtextSwitch<java.lang.Boolean>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Literal Condition'.
        See Also:
        doSwitch(EObject)