org.apache.xpath.patterns
Class ContextMatchStepPattern
java.lang.Object
org.apache.xpath.Expression
org.apache.xpath.patterns.NodeTest
org.apache.xpath.patterns.StepPattern
org.apache.xpath.patterns.ContextMatchStepPattern
- All Implemented Interfaces:
- Serializable, SourceLocator, SubContextList, ExpressionNode, ExpressionOwner, XPathVisitable
public class ContextMatchStepPattern
- extends StepPattern
Special context node pattern matcher.
- See Also:
- Serialized Form
Methods inherited from class org.apache.xpath.patterns.StepPattern |
calcScore, calcTargetString, callVisitors, canTraverseOutsideSubtree, deepEquals, execute, execute, fixupVariables, getAxis, getExpression, getLastPos, getMatchScore, getPredicate, getPredicateCount, getPredicates, getProximityPosition, getRelativePathPattern, getTargetString, setAxis, setExpression, setPredicates, setRelativePathPattern, toString |
Methods inherited from class org.apache.xpath.patterns.NodeTest |
debugWhatToShow, getDefaultScore, getLocalName, getNamespace, getNodeTypeTest, getStaticScore, getWhatToShow, initNodeTest, initNodeTest, setLocalName, setNamespace, setStaticScore, setWhatToShow |
Methods inherited from class org.apache.xpath.Expression |
asIterator, asIteratorRaw, asNode, assertion, bool, error, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstr |
ContextMatchStepPattern
public ContextMatchStepPattern(int axis,
int paxis)
- Construct a ContextMatchStepPattern.
execute
public XObject execute(XPathContext xctxt)
throws TransformerException
- Execute this pattern step, including predicates.
- Overrides:
execute
in class StepPattern
- Parameters:
xctxt
- XPath runtime context.
- Returns:
NodeTest.SCORE_NODETEST
,
NodeTest.SCORE_NONE
,
NodeTest.SCORE_NSWILD
,
NodeTest.SCORE_QNAME
, or
NodeTest.SCORE_OTHER
.
- Throws:
TransformerException
executeRelativePathPattern
public XObject executeRelativePathPattern(XPathContext xctxt,
StepPattern prevStep)
throws TransformerException
- Execute the match pattern step relative to another step.
- Parameters:
xctxt
- The XPath runtime context.
NEEDSDOC @param prevStep
- Returns:
NodeTest.SCORE_NODETEST
,
NodeTest.SCORE_NONE
,
NodeTest.SCORE_NSWILD
,
NodeTest.SCORE_QNAME
, or
NodeTest.SCORE_OTHER
.
- Throws:
TransformerException
Copyright ? 2005 Apache XML Project. All Rights Reserved.