Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xpath.Expression
org.apache.xpath.objects.XObject
org.apache.xpath.axes.NodeSequence
Field Summary |
Fields inherited from class org.apache.xpath.objects.XObject | |
CLASS_BOOLEAN , CLASS_NODESET , CLASS_NULL , CLASS_NUMBER , CLASS_RTREEFRAG , CLASS_STRING , CLASS_UNKNOWN , CLASS_UNRESOLVEDVARIABLE |
Fields inherited from interface org.apache.xml.dtm.DTMIterator | |
FILTER_ACCEPT , FILTER_REJECT , FILTER_SKIP |
Constructor Summary | |
| |
| |
| |
|
Method Summary | |
void |
|
Object |
|
DTMIterator |
|
void |
|
void |
|
int | |
int |
|
DTMIterator |
|
int | |
int | |
DTM |
|
DTMManager | |
boolean | |
int | |
int |
|
int | |
boolean |
|
boolean | |
boolean |
|
boolean | |
int |
|
int |
|
int | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.apache.xpath.objects.XObject | |
allowDetachToRelease , appendToFsb , bool , boolWithSideEffects , callVisitors , castToType , create , create , deepEquals , destruct , detach , dispatchCharactersEvents , equals , execute , fixupVariables , getFresh , getType , getTypeString , greaterThan , greaterThanOrEqual , iter , lessThan , lessThanOrEqual , mutableNodeset , nodelist , nodeset , notEquals , num , numWithSideEffects , object , reset , rtf , rtf , rtree , rtree , str , toString , xstr |
Methods inherited from class org.apache.xpath.Expression | |
asIterator , asIteratorRaw , asNode , assertion , bool , canTraverseOutsideSubtree , deepEquals , error , execute , execute , execute , execute , executeCharsToContentHandler , exprAddChild , exprGetChild , exprGetNumChildren , exprGetParent , exprSetParent , fixupVariables , getColumnNumber , getExpressionOwner , getLineNumber , getPublicId , getSystemId , isNodesetExpr , isStableNumber , num , warn , xstr |
public NodeSequence()
Create a new NodeSequence in an invalid (null) state.
public NodeSequence(Object nodeVector)
Create a new NodeSequence from a (already cloned) iterator.
- Parameters:
nodeVector
-
public NodeSequence(DTMIterator iter, int context, XPathContext xctxt, boolean shouldCacheNodes)
Create a new NodeSequence from a (already cloned) iterator.
- Parameters:
iter
- Cloned (not static) DTMIterator.context
- The initial context node.xctxt
- The execution context.shouldCacheNodes
- True if this sequence can random access.
public NodeSequence(DTMManager dtmMgr)
Construct an empty XNodeSet object. This is used to create a mutable nodeset to which random nodes may be added.
public void allowDetachToRelease(boolean allowRelease)
Calling this with a value of false will cause the nodeset to be cached.
- Specified by:
- allowDetachToRelease in interface DTMIterator
- Overrides:
- allowDetachToRelease in interface XObject
public Object clone() throws CloneNotSupportedException
Get a clone of this iterator, but don't reset the iteration in the process, so that it may be used from the current position. Note: Not a deep clone.
- Specified by:
- clone in interface DTMIterator
- Returns:
- A clone of this object.
public DTMIterator cloneWithReset() throws CloneNotSupportedException
Note: Not a deep clone.
- Specified by:
- cloneWithReset in interface DTMIterator
- See Also:
DTMIterator.cloneWithReset()
public void fixupVariables(Vector vars, int globalsSize)
- See Also:
org.apache.xpath.Expression.fixupVariables(Vector, int)
public int getAnalysisBits()
- Specified by:
- getAnalysisBits in interface PathComponent
- See Also:
PathComponent.getAnalysisBits()
public int getAxis()
- Specified by:
- getAxis in interface DTMIterator
- See Also:
DTMIterator.getAxis()
public final DTMIterator getContainedIter()
Get the functional iterator that fetches nodes.
- Returns:
- The contained iterator.
public int getCurrentNode()
- Specified by:
- getCurrentNode in interface DTMIterator
- See Also:
DTMIterator.getCurrentNode()
public int getCurrentPos()
- Specified by:
- getCurrentPos in interface DTMIterator
- See Also:
DTMIterator.getCurrentPos()
public DTM getDTM(int nodeHandle)
- Specified by:
- getDTM in interface DTMIterator
- See Also:
DTMIterator.getDTM(int)
public DTMManager getDTMManager()
- Specified by:
- getDTMManager in interface DTMIterator
- See Also:
DTMIterator.getDTMManager()
public boolean getExpandEntityReferences()
- Specified by:
- getExpandEntityReferences in interface DTMIterator
public int getLength()
- Specified by:
- getLength in interface DTMIterator
- See Also:
DTMIterator.getLength()
public int getRoot()
- Specified by:
- getRoot in interface DTMIterator
- See Also:
DTMIterator.getRoot()
public int getWhatToShow()
- Specified by:
- getWhatToShow in interface DTMIterator
- See Also:
DTMIterator.getWhatToShow()
public boolean hasCache()
If this iterator needs to cache nodes that are fetched, they are stored here.
public boolean isDocOrdered()
- Specified by:
- isDocOrdered in interface DTMIterator
- See Also:
DTMIterator.isDocOrdered()
public boolean isFresh()
- Specified by:
- isFresh in interface DTMIterator
- See Also:
DTMIterator.isFresh()
public boolean isMutable()
- Specified by:
- isMutable in interface DTMIterator
- See Also:
DTMIterator.isMutable()
public int item(int index)
- Specified by:
- item in interface DTMIterator
- See Also:
DTMIterator.item(int)
public int nextNode()
- Specified by:
- nextNode in interface DTMIterator
- See Also:
DTMIterator.nextNode()
public int previousNode()
- Specified by:
- previousNode in interface DTMIterator
- See Also:
DTMIterator.previousNode()
public void runTo(int index)
- Specified by:
- runTo in interface DTMIterator
- See Also:
DTMIterator.runTo(int)
public void setCurrentPos(int i)
- Specified by:
- setCurrentPos in interface DTMIterator
- See Also:
DTMIterator.setCurrentPos(int)
public void setItem(int node, int index)
- Specified by:
- setItem in interface DTMIterator
- See Also:
DTMIterator.setItem(int,int)
public final void setIter(DTMIterator iter)
Set the functional iterator that fetches nodes.
- Parameters:
iter
- The iterator that is to be contained.
public void setRoot(int nodeHandle, Object environment)
- Specified by:
- setRoot in interface DTMIterator
- See Also:
DTMIterator.setRoot(int,Object)
public void setShouldCacheNodes(boolean b)
- Specified by:
- setShouldCacheNodes in interface DTMIterator