Interface MatchConditionFactory
- All Known Implementing Classes:
DefaultMatchConditionFactory
public interface MatchConditionFactory
A
MatchConditionFactory abstracts the preparation step of a MatchCondition.- Author:
- Karl Eilebrecht
-
Method Summary
Modifier and TypeMethodDescriptioncreateInClauseCondition(List<de.calamanari.adl.irl.SimpleExpression> expressions) default MatchConditioncreateMatchCondition(de.calamanari.adl.irl.CoreExpression expression) Auto-detects the form of match-condition from the given expression which can either be aMatchExpression, aNegationExpressionor aCombinedExpressionrepresenting an IN (OR or matches) resp. a NOT IN (AND of negations)createSimpleCondition(de.calamanari.adl.irl.SimpleExpression expression)
-
Method Details
-
createSimpleCondition
- Parameters:
expression-- Returns:
- condition
- See Also:
-
createInClauseCondition
- Parameters:
expressions- list with expressions, all related to the same argName, either all matches or all negations- Returns:
- condition
- Throws:
IllegalArgumentException- if there are multiple argNames involved, multiple operands reference matches was detected.ClassCastException- if expressions are not all of the same type- See Also:
-
createMatchCondition
Auto-detects the form of match-condition from the given expression which can either be aMatchExpression, aNegationExpressionor aCombinedExpressionrepresenting an IN (OR or matches) resp. a NOT IN (AND of negations)- Parameters:
expression-- Returns:
- condition
- Throws:
IllegalArgumentException- if there are multiple argNames involved, multiple operands reference matches was detected.ClassCastException- if the expression is structured in an unexpected way and contains unsupported children
-