|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xpath.Expression | +--org.apache.xpath.objects.XObject | +--org.apache.xpath.axes.NodeSequence
This class is the dynamic wrapper for a Xalan DTMIterator instance, and provides random access capabilities.
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 |
Constructor Summary | |
NodeSequence()
Create a new NodeSequence in an invalid (null) state. |
|
NodeSequence(DTMIterator iter,
int context,
XPathContext xctxt,
boolean shouldCacheNodes)
Create a new NodeSequence from a (already cloned) iterator. |
|
NodeSequence(DTMManager dtmMgr)
Construct an empty XNodeSet object. |
|
NodeSequence(java.lang.Object nodeVector)
Create a new NodeSequence from a (already cloned) iterator. |
Method Summary | |
void |
allowDetachToRelease(boolean allowRelease)
Calling this with a value of false will cause the nodeset to be cached. |
java.lang.Object |
clone()
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. |
DTMIterator |
cloneWithReset()
Note: Not a deep clone. |
void |
detach()
|
void |
fixupVariables(java.util.Vector vars,
int globalsSize)
|
int |
getAnalysisBits()
|
int |
getAxis()
|
DTMIterator |
getContainedIter()
Get the functional iterator that fetches nodes. |
int |
getCurrentNode()
|
int |
getCurrentPos()
|
DTM |
getDTM(int nodeHandle)
|
DTMManager |
getDTMManager()
|
boolean |
getExpandEntityReferences()
|
int |
getLength()
|
int |
getRoot()
|
int |
getWhatToShow()
|
boolean |
hasCache()
If this iterator needs to cache nodes that are fetched, they are stored here. |
boolean |
isDocOrdered()
|
boolean |
isFresh()
|
boolean |
isMutable()
|
int |
item(int index)
|
int |
nextNode()
|
int |
previousNode()
|
void |
reset()
|
void |
runTo(int index)
|
void |
setCurrentPos(int i)
|
void |
setItem(int node,
int index)
|
void |
setIter(DTMIterator iter)
Set the functional iterator that fetches nodes. |
void |
setRoot(int nodeHandle,
java.lang.Object environment)
|
void |
setShouldCacheNodes(boolean b)
|
Methods inherited from class org.apache.xpath.objects.XObject |
appendToFsb,
bool,
boolWithSideEffects,
callVisitors,
castToType,
create,
create,
deepEquals,
destruct,
dispatchCharactersEvents,
equals,
execute,
getFresh,
getType,
getTypeString,
greaterThan,
greaterThanOrEqual,
iter,
lessThan,
lessThanOrEqual,
mutableNodeset,
nodelist,
nodeset,
notEquals,
num,
numWithSideEffects,
object,
rtf,
rtf,
rtree,
rtree,
str,
toString,
xstr |
Methods inherited from class org.apache.xpath.Expression |
asIterator,
asIteratorRaw,
asNode,
assertion,
bool,
canTraverseOutsideSubtree,
error,
execute,
execute,
execute,
executeCharsToContentHandler,
exprAddChild,
exprGetChild,
exprGetNumChildren,
exprGetParent,
exprSetParent,
getColumnNumber,
getExpressionOwner,
getLineNumber,
getPublicId,
getSystemId,
isNodesetExpr,
isStableNumber,
num,
warn,
xstr |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public NodeSequence(DTMIterator iter, int context, XPathContext xctxt, boolean shouldCacheNodes)
iter
- Cloned (not static) DTMIterator.context
- The initial context node.xctxt
- The execution context.shouldCacheNodes
- True if this sequence can random access.public NodeSequence(java.lang.Object nodeVector)
nodeVector
- public NodeSequence(DTMManager dtmMgr)
public NodeSequence()
Method Detail |
public boolean hasCache()
public final void setIter(DTMIterator iter)
iter
- The iterator that is to be contained.public final DTMIterator getContainedIter()
public DTM getDTM(int nodeHandle)
DTMIterator.getDTM(int)
public DTMManager getDTMManager()
DTMIterator.getDTMManager()
public int getRoot()
DTMIterator.getRoot()
public void setRoot(int nodeHandle, java.lang.Object environment)
DTMIterator.setRoot(int, Object)
public void reset()
DTMIterator.reset()
public int getWhatToShow()
DTMIterator.getWhatToShow()
public boolean getExpandEntityReferences()
DTMIterator.getExpandEntityReferences()
public int nextNode()
DTMIterator.nextNode()
public int previousNode()
DTMIterator.previousNode()
public void detach()
DTMIterator.detach()
public void allowDetachToRelease(boolean allowRelease)
DTMIterator.allowDetachToRelease(boolean)
public int getCurrentNode()
DTMIterator.getCurrentNode()
public boolean isFresh()
DTMIterator.isFresh()
public void setShouldCacheNodes(boolean b)
DTMIterator.setShouldCacheNodes(boolean)
public boolean isMutable()
DTMIterator.isMutable()
public int getCurrentPos()
DTMIterator.getCurrentPos()
public void runTo(int index)
DTMIterator.runTo(int)
public void setCurrentPos(int i)
DTMIterator.setCurrentPos(int)
public int item(int index)
DTMIterator.item(int)
public void setItem(int node, int index)
DTMIterator.setItem(int, int)
public int getLength()
DTMIterator.getLength()
public DTMIterator cloneWithReset() throws java.lang.CloneNotSupportedException
DTMIterator.cloneWithReset()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public boolean isDocOrdered()
DTMIterator.isDocOrdered()
public int getAxis()
DTMIterator.getAxis()
public int getAnalysisBits()
PathComponent.getAnalysisBits()
public void fixupVariables(java.util.Vector vars, int globalsSize)
Expression.fixupVariables(Vector, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |