public class AccumulatorRule extends java.lang.Object implements RuleTarget
Constructor and Description |
---|
AccumulatorRule(Expression newValueExpression,
SlotManager stackFrameMap,
boolean postDescent)
Create a rule
|
Modifier and Type | Method and Description |
---|---|
void |
export(ExpressionPresenter out)
Output diagnostic explanation to an ExpressionPresenter
|
Expression |
getNewValueExpression() |
SlotManager |
getStackFrameMap() |
boolean |
isCapturing() |
boolean |
isPostDescent() |
void |
registerRule(Rule rule)
Register a rule for which this is the target
|
void |
setCapturing(boolean capturing) |
public AccumulatorRule(Expression newValueExpression, SlotManager stackFrameMap, boolean postDescent)
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
RuleTarget
export
in interface RuleTarget
out
- the destination for the explanationXPathException
public SlotManager getStackFrameMap()
public void registerRule(Rule rule)
registerRule
in interface RuleTarget
rule
- a rule in which this is the targetpublic void setCapturing(boolean capturing)
public boolean isCapturing()
public boolean isPostDescent()
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.