Modifier | Constructor and Description |
---|---|
protected |
Tester()
The constructor
|
Modifier and Type | Method and Description |
---|---|
void |
caseOf(IExpr patternMatchingRule)
Method called in order to add a new pattern-matching rule to this
rule-set.
|
boolean |
test(IExpr expression)
Main method performing the pattern matching.
|
public void caseOf(IExpr patternMatchingRule)
patternMatchingRule
- the pattern-matching rulepublic boolean test(IExpr expression)
test
in interface java.util.function.Predicate<IExpr>
expression
- the object to be matchedtrue
if the expression could be matched with one of
the pattern-matching rules; false
otherwise.