|
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
Field Summary | |
protected LocPathIterator |
m_lpi
The owning location path iterator. |
protected int[] |
m_proximityPositions
An array of counts that correspond to the number of predicates the step contains. |
Fields inherited from class weblogic.apache.xpath.patterns.NodeTest |
m_whatToShow,
SCORE_NODETEST,
SCORE_NONE,
SCORE_NSWILD,
SCORE_OTHER,
SCORE_QNAME,
SHOW_BYFUNCTION,
SHOW_NAMESPACE,
SUPPORTS_PRE_STRIPPING,
WILD |
Fields inherited from class weblogic.apache.xpath.Expression |
m_slocator |
Constructor Summary | |
PredicatedNodeTest()
Construct an AxesWalker. |
|
PredicatedNodeTest(LocPathIterator locPathIterator)
Construct an AxesWalker using a LocPathIterator. |
Method Summary | |
short |
acceptNode(org.w3c.dom.Node n)
Test whether a specified node is visible in the logical view of a TreeWalker or NodeIterator. |
boolean |
canTraverseOutsideSubtree()
Tell if this expression or it's subexpressions can traverse outside the current subtree. |
java.lang.Object |
clone()
Get a cloned AxesWalker. |
protected void |
countProximityPosition(int i)
Count forward one proximity position. |
abstract int |
getLastPos(XPathContext xctxt)
Get the index of the last node that can be itterated to. |
LocPathIterator |
getLocPathIterator()
Get the owning location path iterator. |
int |
getPredicateCount()
Get the number of predicates that this walker has. |
int |
getPredicateIndex()
Get which predicate is executing. |
int |
getProximityPosition()
Get the current sub-context position. |
protected int |
getProximityPosition(int predicateIndex)
Get the current sub-context position. |
int |
getProximityPosition(XPathContext xctxt)
Get the current sub-context position. |
protected void |
initPredicateInfo(Compiler compiler,
int opPos)
Init predicate info. |
void |
initProximityPosition(int i)
Init the proximity position to zero for a forward axes. |
boolean |
isReverseAxes()
Tells if this is a reverse axes. |
protected java.lang.String |
nodeToString(org.w3c.dom.Node n)
Diagnostics. |
void |
resetProximityPositions()
Reset the proximity positions counts. |
void |
setLocPathIterator(LocPathIterator li)
Set the location path iterator owner for this walker. |
void |
setPredicateCount(int count)
Set the number of predicates that this walker has. |
Methods inherited from class weblogic.apache.xpath.patterns.NodeTest |
calcScore,
debugWhatToShow,
execute,
execute,
getDefaultScore,
getLocalName,
getNamespace,
getWhatToShow,
initNodeTest,
initNodeTest |
Methods inherited from class weblogic.apache.xpath.Expression |
assert,
error,
setSourceLocator,
warn |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected LocPathIterator m_lpi
protected transient int[] m_proximityPositions
Constructor Detail |
public PredicatedNodeTest(LocPathIterator locPathIterator)
locPathIterator
- non-null reference to the parent iterator.public PredicatedNodeTest()
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public int getPredicateCount()
public void setPredicateCount(int count)
count
- The number of predicates, which must be equal or less
than the existing count.protected void initPredicateInfo(Compiler compiler, int opPos) 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.public int getProximityPosition()
public int getProximityPosition(XPathContext xctxt)
xctxt
- The XPath runtime context.public abstract int getLastPos(XPathContext xctxt)
xctxt
- XPath runtime context.protected int getProximityPosition(int predicateIndex)
predicateIndex
- The index of the predicate where the proximity
should be taken from.public void resetProximityPositions()
public void initProximityPosition(int i) throws javax.xml.transform.TransformerException
i
- The index into the m_proximityPositions array.protected void countProximityPosition(int i)
i
- The index into the m_proximityPositions array, where the increment
will occur.public boolean isReverseAxes()
public int getPredicateIndex()
protected java.lang.String nodeToString(org.w3c.dom.Node n)
n
- Node to give diagnostic information about, or null.public short acceptNode(org.w3c.dom.Node n)
n
- The node to check to see if it passes the filter or not.public LocPathIterator getLocPathIterator()
public void setLocPathIterator(LocPathIterator li)
li
- non-null reference to the owning location path iterator.public boolean canTraverseOutsideSubtree()
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |