|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.xsltc.dom.KeyIndex
Constructor Summary | |
KeyIndex(int size)
Creates an index for a key defined by xsl:key |
Method Summary | |
void |
add(java.lang.String value,
int node)
Adds a node to the node list for a given value. |
NodeIterator |
cloneIterator()
Returns a deep copy of this iterator. |
int |
containsID(int node,
java.lang.String value)
|
int |
containsKey(int node,
java.lang.String value)
|
int |
getLast()
Returns the number of elements in this iterator. |
int |
getPosition()
Returns the position of the current node in the set. |
void |
gotoMark()
Restores the current node remembered by setMark(). |
boolean |
isReverse()
True if this iterator has a reversed axis. |
void |
lookupId(java.lang.String value)
This method must be called by the code generated by the id() function prior to returning the node iterator. |
void |
lookupKey(java.lang.String value)
This method must be called by the code generated by the key() function prior to returning the node iterator. |
void |
merge(KeyIndex other)
Merge this node set with nodes from another index |
int |
next()
Callers should not call next() after it returns END. |
NodeIterator |
reset()
Resets the iterator to the last start node. |
void |
setMark()
Remembers the current node for the next call to gotoMark(). |
NodeIterator |
setStartNode(int start)
Set start to END should 'close' the iterator, i.e. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public KeyIndex(int size)
Method Detail |
public void add(java.lang.String value, int node)
public void merge(KeyIndex other)
public void lookupId(java.lang.String value)
public void lookupKey(java.lang.String value)
public int next()
public int containsID(int node, java.lang.String value)
public int containsKey(int node, java.lang.String value)
public NodeIterator reset()
public int getLast()
public int getPosition()
public void setMark()
public void gotoMark()
public NodeIterator setStartNode(int start)
public boolean isReverse()
public NodeIterator cloneIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |