Package net.sf.saxon.expr.accum
Class AccumulatorData
- java.lang.Object
- 
- net.sf.saxon.expr.accum.AccumulatorData
 
- 
- All Implemented Interfaces:
- IAccumulatorData
 
 public class AccumulatorData extends java.lang.Object implements IAccumulatorData Holds the values of an accumulator function for one non-streamed document
- 
- 
Constructor SummaryConstructors Constructor Description AccumulatorData(Accumulator acc)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildIndex(NodeInfo doc, XPathContext context)Build a data structure containing the values of the accumulator for each node in a document.AccumulatorgetAccumulator()Get the associated accumulatorSequencegetValue(NodeInfo node, boolean postDescent)Get the value of the accumulator for a given node
 
- 
- 
- 
Constructor Detail- 
AccumulatorDatapublic AccumulatorData(Accumulator acc) 
 
- 
 - 
Method Detail- 
getAccumulatorpublic Accumulator getAccumulator() Get the associated accumulator- Specified by:
- getAccumulatorin interface- IAccumulatorData
- Returns:
- the accumulator
 
 - 
buildIndexpublic void buildIndex(NodeInfo doc, XPathContext context) throws XPathException Build a data structure containing the values of the accumulator for each node in a document. The data structure holds the value for all nodes where the value changes; the value for other nodes is obtained by interpolation- Parameters:
- doc- the root of the tree for which the accumulator is to be evaluated
- context- the dynamic evaluation context
- Throws:
- XPathException- if a dynamic error occurs while evaluating the accumulator
 
 - 
getValuepublic Sequence getValue(NodeInfo node, boolean postDescent) Get the value of the accumulator for a given node- Specified by:
- getValuein interface- IAccumulatorData
- Parameters:
- node- the node in question
- postDescent- false if the pre-descent value of the accumulator is required; false if the post-descent value is wanted.
- Returns:
- the value of the accumulator for this node
 
 
- 
 
-