public class Matcher extends RuleSearchState
A new Matcher should be created at the start of each check through a rule set.
This can be achieved through ModeEE.makeRuleSearchState().
calls, mode, startTime| Constructor and Description |
|---|
Matcher(RealPreconditions p,
SimpleMode mode)
Make a precondition matcher for the given set of preconditions.
|
Matcher(SimpleMode mode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(int[] exprIndexes,
Item item,
XPathContext context)
Check a set of preconditions described by their indices into the expression array.
|
String |
getFailure() |
String |
getStats()
Produce statistics for the use of this matcher.
|
String |
getSuccess() |
void |
otherProperties(ExpressionPresenter d)
Add any other required properties to an output
|
void |
reset() |
void |
resetBasic() |
count, getCallspublic Matcher(SimpleMode mode)
public Matcher(RealPreconditions p, SimpleMode mode)
p - the precondition data structuremode - the mode this matcher is going to be used inpublic void reset()
public void resetBasic()
resetBasic in class RuleSearchStatepublic String getStats()
public String getSuccess()
public String getFailure()
public boolean check(int[] exprIndexes,
Item item,
XPathContext context)
throws XPathException
exprIndexes - Indexes of the preconditions to be testeditem - The context itemcontext - The evaluation contextXPathExceptionpublic void otherProperties(ExpressionPresenter d)
RuleSearchStateotherProperties in class RuleSearchStateCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.