com.saxonica.xslt3.instruct

## Class AccumulatorRule

- java.lang.Object
- - com.saxonica.xslt3.instruct.AccumulatorRule

- All Implemented Interfaces:
    Serializable, RuleTarget

      public class AccumulatorRule
      extends Object
      implements RuleTarget

  This class represents one of the rules making up the definition of an accumulator
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AccumulatorRule(Expression newValueExpression, SlotManager stackFrameMap)` Create a rule

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `explain(ExpressionPresenter presenter)` Output diagnostic explanation to an ExpressionPresenter
    `Expression` | `getNewValueExpression()`
    `SlotManager` | `getStackFrameMap()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AccumulatorRule

          public AccumulatorRule(Expression newValueExpression,
                         SlotManager stackFrameMap)

      Create a rule
      Parameters:
        `newValueExpression` - the expression that computes a new value of the accumulator function
        `stackFrameMap` - the stack frame used to evaluate this expression

  - ### Method Detail

    - #### getNewValueExpression

          public Expression getNewValueExpression()

    - #### explain

          public void explain(ExpressionPresenter presenter)

      Description copied from interface: `RuleTarget`
      Output diagnostic explanation to an ExpressionPresenter
      Specified by:
        `explain` in interface `RuleTarget`

    - #### getStackFrameMap

          public SlotManager getStackFrameMap()

Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.