|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.transformer.Counter
public class Counter
A class that does incremental counting for support of xsl:number. This class stores a cache of counted nodes (m_countNodes). It tries to cache the counted nodes in document order... the node count is based on its position in the cache list
Field Summary | |
---|---|
(package private) NodeSetDTM |
m_countNodes
A vector of all nodes counted so far. |
(package private) int |
m_countNodesStartCount
The start count from where m_countNodes counts from. |
(package private) int |
m_countResult
Value to store result of last getCount call, for benifit of returning val from CountersTable.getCounterByCounted, who calls getCount. |
(package private) int |
m_fromNode
The node from where the counting starts. |
(package private) ElemNumber |
m_numberElem
The owning xsl:number element. |
(package private) static int |
MAXCOUNTNODES
Set the maximum ammount the m_countNodes list can grow to. |
Constructor Summary | |
---|---|
Counter(ElemNumber numberElem,
NodeSetDTM countNodes)
Construct a counter object. |
Method Summary | |
---|---|
(package private) int |
getLast()
Get the last node in the list. |
(package private) int |
getPreviouslyCounted(XPathContext support,
int node)
Try and find a node that was previously counted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int MAXCOUNTNODES
int m_countNodesStartCount
NodeSetDTM m_countNodes
int m_fromNode
ElemNumber m_numberElem
int m_countResult
Constructor Detail |
---|
Counter(ElemNumber numberElem, NodeSetDTM countNodes) throws javax.xml.transform.TransformerException
numberElem
- The owning xsl:number element.countNodes
- A vector of all nodes counted so far.
javax.xml.transform.TransformerException
Method Detail |
---|
int getPreviouslyCounted(XPathContext support, int node)
support
- The XPath context to usenode
- The node to be counted.
int getLast()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |