Package net.sf.saxon.expr.accum
Class AccumulatorRule
java.lang.Object
net.sf.saxon.expr.accum.AccumulatorRule
- All Implemented Interfaces:
RuleTarget
This class represents one of the rules making up the definition of an accumulator
-
Constructor Summary
ConstructorsConstructorDescriptionAccumulatorRule(Expression newValueExpression, SlotManager stackFrameMap, boolean postDescent) Create a rule -
Method Summary
Modifier and TypeMethodDescriptionvoidOutput diagnostic explanation to an ExpressionPresenterbooleanbooleanvoidregisterRule(Rule rule) Register a rule for which this is the targetvoidsetCapturing(boolean capturing)
-
Constructor Details
-
AccumulatorRule
public AccumulatorRule(Expression newValueExpression, SlotManager stackFrameMap, boolean postDescent) Create a rule- Parameters:
newValueExpression- the expression that computes a new value of the accumulator functionstackFrameMap- the stack frame used to evaluate this expression
-
-
Method Details
-
getNewValueExpression
-
export
Description copied from interface:RuleTargetOutput diagnostic explanation to an ExpressionPresenter- Specified by:
exportin interfaceRuleTarget- Parameters:
out- the destination for the explanation- Throws:
XPathException- if output fails
-
getStackFrameMap
-
registerRule
Register a rule for which this is the target- Specified by:
registerRulein interfaceRuleTarget- Parameters:
rule- a rule in which this is the target
-
setCapturing
public void setCapturing(boolean capturing) -
isCapturing
public boolean isCapturing() -
isPostDescent
public boolean isPostDescent()
-