Package 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
-
Field Summary
Fields inherited from class org.apache.xpath.patterns.StepPattern
m_axisFields inherited from class org.apache.xpath.patterns.NodeTest
m_name, m_whatToShow, SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_OTHER, SCORE_QNAME, SHOW_BYFUNCTION, SUPPORTS_PRE_STRIPPING, WILD -
Constructor Summary
Constructors Constructor Description ContextMatchStepPattern(int axis, int paxis)Construct a ContextMatchStepPattern. -
Method Summary
Modifier and Type Method Description XObjectexecute(XPathContext xctxt)Execute this pattern step, including predicates.XObjectexecuteRelativePathPattern(XPathContext xctxt, StepPattern prevStep)Execute the match pattern step relative to another step.Methods inherited from class org.apache.xpath.patterns.StepPattern
calcScore, calcTargetString, callSubtreeVisitors, callVisitors, canTraverseOutsideSubtree, deepEquals, execute, execute, executePredicates, executeRelativePathPattern, fixupVariables, getAxis, getExpression, getLastPos, getMatchScore, getPredicate, getPredicateCount, getPredicates, getProximityPosition, getRelativePathPattern, getTargetString, setAxis, setExpression, setPredicates, setRelativePathPattern, toStringMethods inherited from class org.apache.xpath.patterns.NodeTest
debugWhatToShow, getDefaultScore, getLocalName, getNamespace, getNodeTypeTest, getStaticScore, getWhatToShow, initNodeTest, initNodeTest, setLocalName, setNamespace, setStaticScore, setWhatToShowMethods 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, isSameClass, isStableNumber, num, warn, xstr
-
Constructor Details
-
ContextMatchStepPattern
public ContextMatchStepPattern(int axis, int paxis)Construct a ContextMatchStepPattern.
-
-
Method Details
-
execute
Execute this pattern step, including predicates.- Overrides:
executein classStepPattern- Parameters:
xctxt- XPath runtime context.- Returns:
NodeTest.SCORE_NODETEST,NodeTest.SCORE_NONE,NodeTest.SCORE_NSWILD,NodeTest.SCORE_QNAME, orNodeTest.SCORE_OTHER.- Throws:
TransformerException
-
executeRelativePathPattern
public XObject executeRelativePathPattern(XPathContext xctxt, StepPattern prevStep) throws TransformerExceptionExecute 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, orNodeTest.SCORE_OTHER.- Throws:
TransformerException
-