org.apache.xpath.patterns

Class ContextMatchStepPattern

public class ContextMatchStepPattern extends StepPattern

Special context node pattern matcher.
Constructor Summary
ContextMatchStepPattern(int axis, int paxis)
Construct a ContextMatchStepPattern.
Method Summary
XObjectexecute(XPathContext xctxt)
Execute this pattern step, including predicates.
XObjectexecuteRelativePathPattern(XPathContext xctxt, StepPattern prevStep)
Execute the match pattern step relative to another step.

Constructor Detail

ContextMatchStepPattern

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

Method Detail

execute

public XObject execute(XPathContext xctxt)
Execute this pattern step, including predicates.

Parameters: xctxt XPath runtime context.

Returns: SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_QNAME, or SCORE_OTHER.

Throws: javax.xml.transform.TransformerException

executeRelativePathPattern

public XObject executeRelativePathPattern(XPathContext xctxt, StepPattern prevStep)
Execute the match pattern step relative to another step.

Parameters: xctxt The XPath runtime context. NEEDSDOC @param prevStep

Returns: SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_QNAME, or SCORE_OTHER.

Throws: javax.xml.transform.TransformerException

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