org.apache.xpath.patterns
Class StepPattern
java.lang.Object
|
+--org.apache.xpath.Expression
|
+--org.apache.xpath.patterns.NodeTest
|
+--org.apache.xpath.patterns.StepPattern
- Direct Known Subclasses:
- AncestorStepPattern, FunctionPattern
- public class StepPattern
- extends NodeTest
- implements SubContextList
Constructor Summary |
StepPattern(int whatToShow)
|
StepPattern(int whatToShow,
java.lang.String namespace,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
StepPattern
public StepPattern(int whatToShow,
java.lang.String namespace,
java.lang.String name)
StepPattern
public StepPattern(int whatToShow)
calcTargetString
public void calcTargetString()
getTargetString
public java.lang.String getTargetString()
setRelativePathPattern
public void setRelativePathPattern(StepPattern expr)
getPredicate
public Expression getPredicate(int i)
getPredicateCount
public final int getPredicateCount()
setPredicates
public void setPredicates(Expression[] predicates)
executeStep
public XObject executeStep(XPathContext xctxt)
throws SAXException
getProximityPosition
public int getProximityPosition(XPathContext xctxt)
- Specified by:
- getProximityPosition in interface SubContextList
getLastPos
public int getLastPos(XPathContext xctxt)
- Specified by:
- getLastPos in interface SubContextList
executeRelativePathPattern
public XObject executeRelativePathPattern(XPathContext xctxt)
throws SAXException
execute
public XObject execute(XPathContext xctxt)
throws SAXException
- Overrides:
- execute in class NodeTest
getMatchScore
public double getMatchScore(XPathContext xctxt,
Node context)
throws SAXException
- Get the match score of the given node.
- Parameters:
context
- The current source tree context node.
Copyright © 2000 Apache XML Project. All Rights Reserved.