public class AccumulatorRule extends java.lang.Object implements RuleTarget
| Constructor and Description |
|---|
AccumulatorRule(Expression newValueExpression,
SlotManager stackFrameMap)
Create a rule
|
| Modifier and Type | Method and Description |
|---|---|
void |
export(ExpressionPresenter out)
Output diagnostic explanation to an ExpressionPresenter
|
Expression |
getNewValueExpression() |
SlotManager |
getStackFrameMap() |
void |
registerRule(Rule rule)
Register a rule for which this is the target
|
public AccumulatorRule(Expression newValueExpression, SlotManager stackFrameMap)
newValueExpression - the expression that computes a new value of the accumulator functionstackFrameMap - the stack frame used to evaluate this expressionpublic Expression getNewValueExpression()
public void export(ExpressionPresenter out) throws XPathException
RuleTargetexport in interface RuleTargetout - the destination for the explanationXPathExceptionpublic SlotManager getStackFrameMap()
public void registerRule(Rule rule)
registerRule in interface RuleTargetrule - a rule in which this is the targetCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.