Package ru.ispras.fortress.esexpr
Class EsExprMatcher
- java.lang.Object
-
- ru.ispras.fortress.esexpr.EsExprMatcher
-
public final class EsExprMatcher extends java.lang.Object
TheEsExprMatcher
is expression structure matcher forEsExpr
. Matches expressions with patterns as-is, i.e. without normalization, respecting expression structure. Uses same Lisp-syntax notation for pattern specification, supports several wildcards:%a
matches any atom includingNIL
,%s
matches any S-expression.
-
-
Constructor Summary
Constructors Constructor Description EsExprMatcher(java.lang.String pattern)
Create new matcher for given pattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(EsExpr expr)
Returnstrue
if given expression matches this matcher.
-
-
-
Method Detail
-
matches
public boolean matches(EsExpr expr)
Returnstrue
if given expression matches this matcher.- Parameters:
expr
- S-expression to be checked for match- Returns:
true
if given expression matches- Throws:
java.lang.IllegalArgumentException
- ife
isnull
-
-