org.apache.xpath.patterns

Class ContextMatchStepPattern

Implemented Interfaces:
ExpressionOwner, java.io.Serializable, ExpressionNode, SourceLocator, SubContextList, 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.NodeTest

SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_OTHER, SCORE_QNAME, SHOW_BYFUNCTION, SUPPORTS_PRE_STRIPPING, WILD

Constructor Summary

ContextMatchStepPattern(int axis, int paxis)
Construct a ContextMatchStepPattern.

Method Summary

XObject
execute(XPathContext xctxt)
Execute this pattern step, including predicates.
XObject
executeRelativePathPattern(XPathContext xctxt, StepPattern prevStep)
Execute the match pattern step relative to another step.

Methods inherited from class org.apache.xpath.patterns.StepPattern

calcScore, calcTargetString, callVisitors, canTraverseOutsideSubtree, deepEquals, execute, 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

callVisitors, debugWhatToShow, deepEquals, execute, execute, execute, fixupVariables, 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, canTraverseOutsideSubtree, deepEquals, error, execute, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, fixupVariables, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstr

Constructor Details

ContextMatchStepPattern

public ContextMatchStepPattern(int axis,
                               int paxis)
Construct a ContextMatchStepPattern.
Parameters:

Method Details

execute

public XObject execute(XPathContext xctxt)
            throws TransformerException
Execute this pattern step, including predicates.
Overrides:
execute in interface StepPattern
Parameters:
xctxt - XPath runtime context.

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

Copyright B) 2004 Apache XML Project. All Rights Reserved.