|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xpath.Expression | +--weblogic.apache.xpath.patterns.NodeTest | +--weblogic.apache.xpath.axes.PredicatedNodeTest | +--weblogic.apache.xpath.axes.AxesWalker
Serves as common interface for axes Walkers, and stores common state variables.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
protected int |
m_axis
The traversal axis from where the nodes will be filtered. |
protected AxesWalker |
m_nextWalker
The next walker in the location step chain. |
protected weblogic.apache.xml.dtm.DTMAxisTraverser |
m_traverser
The DTM inner traversal class, that corresponds to the super axis. |
Fields inherited from class weblogic.apache.xpath.axes.PredicatedNodeTest |
m_foundLast,
m_lpi,
m_predCount,
m_proximityPositions |
Fields inherited from class weblogic.apache.xpath.patterns.NodeTest |
m_name,
m_whatToShow,
SCORE_NODETEST,
SCORE_NONE,
SCORE_NSWILD,
SCORE_OTHER,
SCORE_QNAME,
SHOW_BYFUNCTION,
SUPPORTS_PRE_STRIPPING,
WILD |
Fields inherited from class weblogic.apache.xpath.Expression |
m_slocator |
Constructor Summary | |
AxesWalker(LocPathIterator locPathIterator,
int axis)
Construct an AxesWalker using a LocPathIterator. |
Method Summary | |
java.lang.Object |
clone()
Get a cloned AxesWalker. |
int |
getAxis()
Returns the axis being iterated, if it is known. |
int |
getCurrentNode()
The node at which the TreeWalker is currently positioned. |
weblogic.apache.xml.dtm.DTM |
getDTM(int node)
Get the DTM for this walker. |
int |
getLastPos(XPathContext xctxt)
Get the index of the last node that can be itterated to. |
protected int |
getNextNode()
Get the next node in document order on the axes. |
AxesWalker |
getNextWalker()
Get the next walker in the location step chain. |
AxesWalker |
getPrevWalker()
Get the previous walker reference in the location step chain. |
int |
getRoot()
The root node of the TreeWalker, as specified in setRoot(int root). |
void |
init(Compiler compiler,
int opPos,
int stepType)
Initialize an AxesWalker during the parse of the XPath expression. |
boolean |
isDocOrdered()
Returns true if all the nodes in the iteration well be returned in document order. |
int |
nextNode()
Moves the TreeWalker to the next visible node in document
order relative to the current node, and returns the new node. |
void |
setDefaultDTM(weblogic.apache.xml.dtm.DTM dtm)
Set the DTM for this walker. |
void |
setNextWalker(AxesWalker walker)
Set the next walker in the location step chain. |
void |
setPrevWalker(AxesWalker walker)
Set or clear the previous walker reference in the location step chain. |
void |
setRoot(int root)
Set the root node of the TreeWalker. |
WalkingIterator |
wi()
|
Methods inherited from class weblogic.apache.xpath.axes.PredicatedNodeTest |
acceptNode,
canTraverseOutsideSubtree,
countProximityPosition,
fixupVariables,
getLocPathIterator,
getPredicateCount,
getPredicateIndex,
getProximityPosition,
getProximityPosition,
getProximityPosition,
initPredicateInfo,
initProximityPosition,
isReverseAxes,
nodeToString,
resetProximityPositions,
setLocPathIterator,
setPredicateCount |
Methods inherited from class weblogic.apache.xpath.patterns.NodeTest |
calcScore,
debugWhatToShow,
execute,
execute,
execute,
getDefaultScore,
getLocalName,
getNamespace,
getNodeTypeTest,
getStaticScore,
getWhatToShow,
initNodeTest,
initNodeTest,
setLocalName,
setNamespace,
setStaticScore,
setWhatToShow |
Methods inherited from class weblogic.apache.xpath.Expression |
asIterator,
asNode,
assertion,
bool,
error,
executeCharsToContentHandler,
isNodesetExpr,
isStableNumber,
num,
setSourceLocator,
warn,
xstr |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected AxesWalker m_nextWalker
protected int m_axis
protected weblogic.apache.xml.dtm.DTMAxisTraverser m_traverser
Constructor Detail |
public AxesWalker(LocPathIterator locPathIterator, int axis)
locPathIterator
- non-null reference to the parent iterator.Method Detail |
public final WalkingIterator wi()
public void init(Compiler compiler, int opPos, int stepType) throws javax.xml.transform.TransformerException
compiler
- The Compiler object that has information about this
walker in the op map.opPos
- The op code position of this location step.stepType
- The type of location step.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public int getRoot()
public void setRoot(int root)
root
- The context node of this step.public final int getCurrentNode()
public void setNextWalker(AxesWalker walker)
walker
- Reference to AxesWalker derivative, or may be null.public AxesWalker getNextWalker()
public void setPrevWalker(AxesWalker walker)
walker
- Reference to previous walker reference in the location
step chain, or null.public AxesWalker getPrevWalker()
protected int getNextNode()
public int nextNode()
TreeWalker
to the next visible node in document
order relative to the current node, and returns the new node. If the
current node has no next node, or if the search for nextNode attempts
to step upward from the TreeWalker's root node, returns
null
, and retains the current node.
null
if the current node has no
next node in the TreeWalker's logical view.public int getLastPos(XPathContext xctxt)
xctxt
- XPath runtime context.public void setDefaultDTM(weblogic.apache.xml.dtm.DTM dtm)
dtm
- Non-null reference to a DTM.public weblogic.apache.xml.dtm.DTM getDTM(int node)
public boolean isDocOrdered()
public int getAxis()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs70 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |